diff --git a/htdocs/compta/facture.php3 b/htdocs/compta/facture.php3 index 11d67a3687f..090f4880257 100644 --- a/htdocs/compta/facture.php3 +++ b/htdocs/compta/facture.php3 @@ -65,7 +65,17 @@ if ($action == 'add_paiement') $acc = new Account($db, $HTTP_POST_VARS["accountid"]); $acc->addline($datepaye, $paiementid, $label, $amount, $num_paiement); +} +/* + * + */ +if ($action == 'del_paiement') +{ + $paiement = new Paiement($db); + $paiement->id = $paiementid; + $paiement->delete(); + $action = ''; } /* * @@ -420,6 +430,10 @@ else print "