Wrong presentation of qty decimals when trans_no != 0 (delivered)
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Thu, 24 Sep 2009 23:43:02 +0000 (23:43 +0000)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Thu, 24 Sep 2009 23:43:02 +0000 (23:43 +0000)
CHANGELOG.txt
sales/includes/ui/sales_order_ui.inc

index e7152664b21d094d1eff1cc4ca3c9a98f081fa3e..2141f0a0cf6a368a93794404b298a40c3cd84940 100644 (file)
@@ -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.
index 96c24ef76079514ab79f16fc1d073d30498dee70..5ec8dfcb1d22a06769c527efd1f46ba6196f0fe0 100644 (file)
@@ -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);