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)