From c92cc6541cac3c079defa4311ea73210bd98476c Mon Sep 17 00:00:00 2001 From: Joe Hunt Date: Thu, 2 Jul 2009 07:51:09 +0000 Subject: [PATCH] Always show 0.00 in debit column when using display_debit_or_credit --- CHANGELOG.txt | 4 ++++ includes/ui/ui_view.inc | 1 + 2 files changed, 5 insertions(+) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 724714b8..59a1946e 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -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 diff --git a/includes/ui/ui_view.inc b/includes/ui/ui_view.inc index 4cf763ab..e2233c02 100644 --- a/includes/ui/ui_view.inc +++ b/includes/ui/ui_view.inc @@ -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); -- 2.30.2