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();