From 8c4a02b78090a3738964692cd6aaacfb2e450072 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Fri, 2 Apr 2004 14:15:20 +0000 Subject: [PATCH] =?UTF-8?q?Ajout=20le=20total=20des=20factures=20impay=E9e?= =?UTF-8?q?s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/compta/index.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/htdocs/compta/index.php b/htdocs/compta/index.php index d8fd3206daf..5e07fc3eb74 100644 --- a/htdocs/compta/index.php +++ b/htdocs/compta/index.php @@ -249,6 +249,7 @@ if ( $db->query($sql) ) print ''; print ''; $var = True; + $total = 0; while ($i < $num) { $obj = $db->fetch_object( $i); @@ -257,8 +258,10 @@ if ( $db->query($sql) ) print ' '.$obj->facnumber.''; print ''; print ''; + $total += $obj->total_ttc; $i++; } + print ''; print "
Factures impayées
'.$obj->nom.''.price($obj->total_ttc).'
'.price($obj->total_ttc).'

"; } $db->free();