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)";