Modif calcul de la marge partir du gain

This commit is contained in:
Rodolphe Quiedeville 2005-03-14 10:52:30 +00:00
parent b5eb9a34e4
commit 05ba3b1b57

View File

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