From: Joe Hunt Date: Thu, 2 Jul 2009 07:51:09 +0000 (+0000) Subject: Always show 0.00 in debit column when using display_debit_or_credit X-Git-Tag: v2.4.2~19^2~1340 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=c92cc6541cac3c079defa4311ea73210bd98476c;p=fa-stable.git Always show 0.00 in debit column when using display_debit_or_credit --- 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);