From 0a29213693b7a907d153d4914e46a08148de8c62 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Mon, 10 Jan 2005 13:22:45 +0000 Subject: [PATCH] Bugfix --- htdocs/telephonie/facture/check.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/telephonie/facture/check.php b/htdocs/telephonie/facture/check.php index f579b326949..8e684a5069e 100644 --- a/htdocs/telephonie/facture/check.php +++ b/htdocs/telephonie/facture/check.php @@ -55,14 +55,14 @@ if ($page == -1) { $page = 0 ; } * */ -$sql = "SELECT distinct(client), sum(montant) "; -$sql .= " FROM telephonie_import_cdr"; +$sql = "SELECT distinct(ligne), sum(montant) "; +$sql .= " FROM ".MAIN_DB_PREFIX."telephonie_import_cdr"; if ($_GET["search_ligne"]) { $sql .= " WHERE f.ligne LIKE '%".$_GET["search_ligne"]."%'"; } -$sql .= " GROUP BY client"; +$sql .= " GROUP BY ligne"; $result = $db->query($sql); if ($result) {