From b45a0a05082886f7d63db4cc3616797d8fa1beb1 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Wed, 10 Sep 2003 12:31:07 +0000 Subject: [PATCH] Correction totaux --- htdocs/compta/stats/cumul.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/compta/stats/cumul.php b/htdocs/compta/stats/cumul.php index 9749b17178b..6a825c5c878 100644 --- a/htdocs/compta/stats/cumul.php +++ b/htdocs/compta/stats/cumul.php @@ -39,7 +39,7 @@ print_titre("Chiffres d'affaires en euros HT"); print '
'; -$sql = "SELECT sum(f.amount) as amount , date_format(f.datef,'%Y-%m') as dm"; +$sql = "SELECT sum(f.total) as amount , date_format(f.datef,'%Y-%m') as dm"; $sql .= " FROM llx_facture as f WHERE f.paye = 1"; if ($socidp) { @@ -51,7 +51,7 @@ pt($db, $sql,"Par mois"); print ""; -$sql = "SELECT sum(f.amount) as amount, month(f.datef) as dm"; +$sql = "SELECT sum(f.total) as amount, month(f.datef) as dm"; $sql .= " FROM llx_facture as f WHERE f.paye = 1"; if ($socidp) { @@ -64,7 +64,7 @@ pt($db, $sql,"Mois cumul print "

"; -$sql = "SELECT sum(f.amount) as amount, year(f.datef) as dm"; +$sql = "SELECT sum(f.total) as amount, year(f.datef) as dm"; $sql .= " FROM llx_facture as f WHERE f.paye = 1"; if ($socidp) {