Fix: Total incorrect
This commit is contained in:
parent
809ae9ef22
commit
403b3b7479
@ -197,7 +197,7 @@ if ($result)
|
||||
while ($i < $num && $i < $conf->liste_limit)
|
||||
{
|
||||
$objp = $db->fetch_object($result);
|
||||
$total+=price($objp->cotisation);
|
||||
$total+=$objp->cotisation;
|
||||
|
||||
$cotisation->ref=$objp->crowid;
|
||||
$cotisation->id=$objp->crowid;
|
||||
|
||||
@ -279,7 +279,7 @@ krsort($Total);
|
||||
foreach ($Total as $key=>$value)
|
||||
{
|
||||
$var=!$var;
|
||||
print "<tr $bc[$var]><td><a href=\"cotisations.php?date_select=$key\">$key</a></td><td align=\"right\">".price($value)."</td><td align=\"right\">".$Number[$key]."</td><td align=\"right\">".price($value/$Number[$key])."</td></tr>\n";
|
||||
print "<tr $bc[$var]><td><a href=\"cotisations.php?date_select=$key\">$key</a></td><td align=\"right\">".price($value)."</td><td align=\"right\">".$Number[$key]."</td><td align=\"right\">".price(price2num($value/$Number[$key],'MT'))."</td></tr>\n";
|
||||
}
|
||||
|
||||
// Total
|
||||
|
||||
Loading…
Reference in New Issue
Block a user