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 "Date"; print "Type"; print "Montant "; + if (! $obj->paye) + { + print " "; + } print "\n"; $var=True; @@ -430,7 +444,11 @@ else print ""; print "".strftime("%d %B %Y",$objp->dp)."\n"; print "$objp->paiement_type $objp->num_paiement\n"; - print ''.price($objp->amount)."$_MONNAIE\n"; + print ''.price($objp->amount)."$_MONNAIE\n"; + if (! $obj->paye) + { + print 'Del'; + } print ""; $total = $total + $objp->amount; $i++;