From 3c2673e5280c609c4e840dc5cc7ebb58381fb209 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 21 Aug 2010 17:45:44 +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 af31af6becd..18a2284724f 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 + $objp->amount; + $total = price2num($total + $objp->amount,'MT'); if ($i >= ($nbline - $viewline)) { $var=!$var;