Modif calcul de la marge à partir du gain
This commit is contained in:
parent
b5eb9a34e4
commit
05ba3b1b57
@ -107,7 +107,7 @@ foreach ($clients as $client)
|
|||||||
|
|
||||||
if ($graphgain->total_cout > 0)
|
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)";
|
$sql = "INSERT INTO ".MAIN_DB_PREFIX."telephonie_client_stats (fk_client_comm, gain, ca, cout, marge)";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user