Always show 0.00 in debit column when using display_debit_or_credit
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Thu, 2 Jul 2009 07:51:09 +0000 (07:51 +0000)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Thu, 2 Jul 2009 07:51:09 +0000 (07:51 +0000)
CHANGELOG.txt
includes/ui/ui_view.inc

index 724714b85edf5fc43fde415c3af3591b0b158cc4..59a1946e55f4e3569281c5a0efdc35e62af79f50 100644 (file)
@@ -19,6 +19,10 @@ Legend:
 ! -> Note
 $ -> Affected files
 
+02-Jul-2009 Joe Hunt
+! Always show 0.00 in debit column when using display_debit_or_credit
+$ /includes/ui/ui_view.inc
+
 01-Jul-2009 Joe Hunt
 ! Small adjustment in /inventory/prices.php to see the calculated prices if they are set.
 $ /inventory/prices.php
index 4cf763ab284523d57c863ce81336882f7667e288..e2233c026bcb4c83a5a44036d4742500a810bde5 100644 (file)
@@ -358,6 +358,7 @@ function view_stock_status_cell($stock_id, $description=null)
 
 function display_debit_or_credit_cells($value)
 {
+       $value = round2($value, user_price_dec());
        if ($value >= 0)
        {
                amount_cell($value);