diff --git a/htdocs/telephonie/stats/contrats/index.php b/htdocs/telephonie/stats/contrats/index.php index 3e1d8abef27..db2e2235def 100644 --- a/htdocs/telephonie/stats/contrats/index.php +++ b/htdocs/telephonie/stats/contrats/index.php @@ -49,7 +49,7 @@ $sql .= " , ".MAIN_DB_PREFIX."telephonie_societe_ligne as l"; $sql .= " WHERE f.fk_ligne = l.rowid"; $sql .= " AND l.fk_contrat = c.rowid"; - +$sql .= " AND c.isfacturable = 'oui'"; $sql .= " GROUP BY date_format(f.date, '%Y%m'), c.mode_paiement"; $sql .= " ORDER BY date_format(f.date, '%Y%m') DESC"; $sql .= " LIMIT 10";