From 0450c0b282d6ab78de9d279b38509ac81d945211 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Tue, 9 Aug 2005 13:14:21 +0000 Subject: [PATCH] Correction calcul de marge --- htdocs/telephonie/stats/ProcessGraphClients.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/telephonie/stats/ProcessGraphClients.class.php b/htdocs/telephonie/stats/ProcessGraphClients.class.php index 0e9a89bad05..fcd52871f89 100644 --- a/htdocs/telephonie/stats/ProcessGraphClients.class.php +++ b/htdocs/telephonie/stats/ProcessGraphClients.class.php @@ -122,7 +122,7 @@ class ProcessGraphClients if ($graphgain->total_cout > 0) { - $marge = ( $graphgain->total_gain / $graphgain->total_cout * 100); + $marge = ( $graphgain->total_gain / $graphgain->total_ca * 100); } $sql = "INSERT INTO ".MAIN_DB_PREFIX."telephonie_client_stats (fk_client_comm, gain, ca, cout, marge)";