From 08423493b659b11e936cc9e864ff9ec945cf8f25 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Tue, 9 Sep 2003 15:55:49 +0000 Subject: [PATCH] =?UTF-8?q?Mise=20=E0=20jour=20changement=20format=20de=20?= =?UTF-8?q?la=20base=20de=20donn=E9e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/compta/stats/casoc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/compta/stats/casoc.php b/htdocs/compta/stats/casoc.php index 1eaabd4f273..304c4140943 100644 --- a/htdocs/compta/stats/casoc.php +++ b/htdocs/compta/stats/casoc.php @@ -40,7 +40,7 @@ print_titre("Chiffre d'affaire par soci * */ -$sql = "SELECT sum(f.amount) as ca FROM llx_facture as f"; +$sql = "SELECT sum(f.total) as ca FROM llx_facture as f"; if ($socidp) { $sql .= " WHERE f.fk_soc = $socidp"; @@ -60,7 +60,7 @@ print "Total : ".price($catotal).""; if ($catotal == 0) { $catotal = 1; }; -$sql = "SELECT s.nom, s.idp, sum(f.amount) as ca"; +$sql = "SELECT s.nom, s.idp, sum(f.total) as ca"; $sql .= " FROM llx_societe as s,llx_facture as f"; $sql .= " WHERE f.fk_soc = s.idp"; if ($socidp)