Correction calcul de marge

This commit is contained in:
Rodolphe Quiedeville 2005-08-09 13:14:21 +00:00
parent c284ba5598
commit 0450c0b282

View File

@ -122,7 +122,7 @@ class ProcessGraphClients
if ($graphgain->total_cout > 0) 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)"; $sql = "INSERT INTO ".MAIN_DB_PREFIX."telephonie_client_stats (fk_client_comm, gain, ca, cout, marge)";