From b13109069cf7d1b9e05cc7be764461dd9fe1c47e Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Sat, 8 Nov 2003 17:14:36 +0000 Subject: [PATCH] =?UTF-8?q?Comptabilise=20les=20commandes=20valid=E9es?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/product/stats/index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/product/stats/index.php b/htdocs/product/stats/index.php index 41ff7612e6b..956fc121018 100644 --- a/htdocs/product/stats/index.php +++ b/htdocs/product/stats/index.php @@ -32,9 +32,9 @@ llxHeader(); print_fiche_titre('Statistiques commandes', $mesg); print ''; -print ''; +print ''; -$sql = "SELECT count(*), date_format(date_commande,'%Y') as dm, sum(total_ht) FROM llx_commande GROUP BY dm DESC"; +$sql = "SELECT count(*), date_format(date_commande,'%Y') as dm, sum(total_ht) FROM llx_commande WHERE fk_statut > 0 GROUP BY dm DESC "; if ($db->query($sql)) { $num = $db->num_rows();
AnnéeNb de commandeSomme des factures
AnnéeNb de commandeSomme des commandes