From 96fabfb7db562daf05bb9caa3f08fe3ef9390e3b Mon Sep 17 00:00:00 2001 From: Joe Hunt Date: Thu, 24 Sep 2009 23:43:02 +0000 Subject: [PATCH] Wrong presentation of qty decimals when trans_no != 0 (delivered) --- CHANGELOG.txt | 4 ++++ sales/includes/ui/sales_order_ui.inc | 5 +++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index e7152664..2141f0a0 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -19,6 +19,10 @@ Legend: ! -> Note $ -> Affected files +25-Sep-2009 Joe Hunt +# Wrong presentation of qty decimals when trans_no != 0 (delivered) +$ /sales/includes/ui/sales_order_ui.inc + 24-Sep-2009 Janusz Dobrowolski + Additional fields for secondary phone and/or general notes in customers, cust_branches, shippers, locations and suppliers tables. diff --git a/sales/includes/ui/sales_order_ui.inc b/sales/includes/ui/sales_order_ui.inc index 96c24ef7..5ec8dfcb 100644 --- a/sales/includes/ui/sales_order_ui.inc +++ b/sales/includes/ui/sales_order_ui.inc @@ -185,10 +185,11 @@ function display_order_summary($title, &$order, $editable_items=false) //label_cell($stock_item->item_description, "nowrap" ); label_cell($stock_item->item_description ); - qty_cell($stock_item->qty_dispatched, false, get_qty_dec($stock_item->stock_id)); + $dec = get_qty_dec($stock_item->stock_id); + qty_cell($stock_item->qty_dispatched, false, $dec); if ($order->trans_no!=0) - amount_cell($stock_item->qty_done); + qty_cell($stock_item->qty_done, false, $dec); label_cell($stock_item->units); amount_cell($stock_item->price); -- 2.30.2