Fix in coloring negative amounts

This commit is contained in:
Laurent Destailleur 2010-08-21 17:44:41 +00:00
parent 41319b6ef1
commit 5df86f8a50

View File

@ -472,8 +472,6 @@ if ($account || $_GET["ref"])
$result = $db->query($sql);
if ($result)
{
$total = 0;
$now=dol_now('tzserver');
$nows=dol_date('Ymd',$now);
@ -488,7 +486,7 @@ if ($account || $_GET["ref"])
while ($i < $num)
{
$objp = $db->fetch_object($result);
$total = $total + price2num($objp->amount,'MT');
$total = price2num($total + $objp->amount,'MT');
if ($i >= ($nbline - $viewline))
{
$var=!$var;