From 41319b6ef156d22bbf1817bf81308f74726e89f0 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 21 Aug 2010 17:42:41 +0000 Subject: [PATCH] Fix in coloring negative amounts --- htdocs/compta/bank/account.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/compta/bank/account.php b/htdocs/compta/bank/account.php index bfd1aba5858..d6a996368b0 100644 --- a/htdocs/compta/bank/account.php +++ b/htdocs/compta/bank/account.php @@ -488,7 +488,7 @@ if ($account || $_GET["ref"]) while ($i < $num) { $objp = $db->fetch_object($result); - $total = $total + $objp->amount; + $total = $total + price2num($objp->amount,'MT'); if ($i >= ($nbline - $viewline)) { $var=!$var; @@ -636,7 +636,7 @@ if ($account || $_GET["ref"]) // Balance if ($action != 'search') { - if (price2num($total,'MT') >= 0) + if ($total >= 0) { print ' '.price($total).''; }