diff --git a/htdocs/telephonie/stats/distributeurs/resultats.php b/htdocs/telephonie/stats/distributeurs/resultats.php index 9fde6a31592..69d84ce86f1 100644 --- a/htdocs/telephonie/stats/distributeurs/resultats.php +++ b/htdocs/telephonie/stats/distributeurs/resultats.php @@ -42,7 +42,7 @@ $hselected = $h; $h++; $year = strftime("%Y",time()); - +$total = 0; dolibarr_fiche_head($head, $hselected, "Distributeurs"); print ''; @@ -65,6 +65,7 @@ if ($resql) $var=!$var; print "'; print ''; + $total += $row[0]; } $db->free(); } @@ -72,6 +73,8 @@ else { print $db->error() . ' ' . $sql; } +print ""; +print ''; print '
".$row[1].''.price($row[0]).'
Total'.price($total).'
'; print '';