From 5df86f8a50e635af28b300777aa5ced359592d03 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 21 Aug 2010 17:44:41 +0000 Subject: [PATCH] Fix in coloring negative amounts --- htdocs/compta/bank/account.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/htdocs/compta/bank/account.php b/htdocs/compta/bank/account.php index d6a996368b0..b438f4ef59e 100644 --- a/htdocs/compta/bank/account.php +++ b/htdocs/compta/bank/account.php @@ -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;