From ca2474ff262bd54b358a18b2f1396f8f15465031 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Fri, 18 Feb 2005 12:24:30 +0000 Subject: [PATCH] =?UTF-8?q?On=20ne=20comptabilise=20plus=20les=20lignes=20?= =?UTF-8?q?rejet=E9es?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/telephonie/stats/commerciaux/commercial.php | 1 + htdocs/telephonie/stats/commerciaux/index.php | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/htdocs/telephonie/stats/commerciaux/commercial.php b/htdocs/telephonie/stats/commerciaux/commercial.php index eff13fefe03..4c659c42194 100644 --- a/htdocs/telephonie/stats/commerciaux/commercial.php +++ b/htdocs/telephonie/stats/commerciaux/commercial.php @@ -66,6 +66,7 @@ if ($_GET["commid"]) $sql .= " FROM ".MAIN_DB_PREFIX."telephonie_societe_ligne as l"; $sql .= " WHERE l.fk_commercial = ".$comm->id; $sql .= " AND date_commande IS NOT NULL"; + $sql .= " AND l.statut <> 7"; $sql .= " GROUP BY date_format(date_commande,'%Y/%m') DESC"; $result = $db->query($sql); diff --git a/htdocs/telephonie/stats/commerciaux/index.php b/htdocs/telephonie/stats/commerciaux/index.php index c7dda59496e..066921c8c5f 100644 --- a/htdocs/telephonie/stats/commerciaux/index.php +++ b/htdocs/telephonie/stats/commerciaux/index.php @@ -55,7 +55,9 @@ print 'Nomquery($sql); if ($result)