From 05ba3b1b5742c93c433b1156e4e2ce5185ac242b Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Mon, 14 Mar 2005 10:52:30 +0000 Subject: [PATCH] =?UTF-8?q?Modif=20calcul=20de=20la=20marge=20=E0=20partir?= =?UTF-8?q?=20du=20gain?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/telephonie/script/graph-statistiques-clients.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/telephonie/script/graph-statistiques-clients.php b/htdocs/telephonie/script/graph-statistiques-clients.php index 5a385802219..e0a1177b9c4 100644 --- a/htdocs/telephonie/script/graph-statistiques-clients.php +++ b/htdocs/telephonie/script/graph-statistiques-clients.php @@ -107,7 +107,7 @@ foreach ($clients as $client) if ($graphgain->total_cout > 0) { - $marge = ( ($graphgain->total_ca - $graphgain->total_cout) / $graphgain->total_cout * 100); + $marge = ( $graphgain->total_gain / $graphgain->total_cout * 100); } $sql = "INSERT INTO ".MAIN_DB_PREFIX."telephonie_client_stats (fk_client_comm, gain, ca, cout, marge)";