From 606cfa9787e2e21e55d17d552829e94428c0fa94 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Mon, 22 Nov 2004 15:29:01 +0000 Subject: [PATCH] Ajout total --- htdocs/compta/paiement/fiche.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/htdocs/compta/paiement/fiche.php b/htdocs/compta/paiement/fiche.php index a2726db4af6..08192cabaf3 100644 --- a/htdocs/compta/paiement/fiche.php +++ b/htdocs/compta/paiement/fiche.php @@ -110,7 +110,7 @@ if ($db->query($sql)) $num = $db->num_rows(); $i = 0; - + $total = 0; print '
'; print ''; print ''; @@ -131,15 +131,23 @@ if ($db->query($sql)) print ' ' . $objp->facnumber; print "\n"; print ''; - print ""; + print ''; print "\n"; if ($objp->paye == 1) { $allow_delete = 0; } + $total = $total + $objp->amount; $i++; } } + $var=!$var; + print ""; + print ''; + print ''; + print ''; + print "\n"; + print "
'.$langs->trans("Bill").''.$langs->trans("Company").'' . $objp->nom.'".price($objp->amount)."'.price($objp->amount).'
 Total'.price($total).'
\n"; $db->free(); }