From 714ae79a3a7c96ef27a31a268cc0fef42a43e30d Mon Sep 17 00:00:00 2001 From: Joe Hunt Date: Tue, 16 Jun 2009 00:07:48 +0000 Subject: [PATCH] Added Item Code Entry in Work Order Entry and quantity decimals now follows the item --- CHANGELOG.txt | 5 +++++ includes/ui/ui_lists.inc | 11 +++++++++-- manufacturing/work_order_entry.php | 7 ++++++- 3 files changed, 20 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index f5ab1841..4bc0d134 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -19,6 +19,11 @@ Legend: ! -> Note $ -> Affected files +15-Jun-2009 Joe Hunt +! Added Item Code Entry in Work Order Entry and quantity decimals now follows the item +$ /includes/ui/ui_lists.inc + /manufacturing/work_order_entry.php + 14-Jun-2009 Joe Hunt ! Much better presentation of new Balance Sheet, P&L Statement and Monthly Breakdown. $ /gl/includes/db/gl_db_account_types.inc diff --git a/includes/ui/ui_lists.inc b/includes/ui/ui_lists.inc index f136c382..d7e2c964 100644 --- a/includes/ui/ui_lists.inc +++ b/includes/ui/ui_lists.inc @@ -818,8 +818,15 @@ function stock_manufactured_items_list_row($label, $name, $selected_id=null, $all_option=false, $submit_on_change=false) { echo "\n"; - $str = stock_manufactured_items_list_cells($label, $name, $selected_id, - $all_option, $submit_on_change); + if ($label != null) + echo "$label\n"; + echo ""; + $str = stock_items_list($name, $selected_id, $all_option, $submit_on_change, + array('where'=>array("mb_flag = 'M'"), + 'edit_submit' => true)); + //$str = stock_manufactured_items_list_cells($label, $name, $selected_id, + // $all_option, $submit_on_change); + echo "\n"; echo "\n"; return $str; } diff --git a/manufacturing/work_order_entry.php b/manufacturing/work_order_entry.php index 7977a59d..659e9bec 100644 --- a/manufacturing/work_order_entry.php +++ b/manufacturing/work_order_entry.php @@ -391,13 +391,18 @@ if (get_post('released')) } else { - stock_manufactured_items_list_row(_("Item:"), 'stock_id', null); + stock_manufactured_items_list_row(_("Item:"), 'stock_id', null, false, true); + if (list_updated('stock_id')) + $Ajax->activate('quantity'); locations_list_row(_("Destination Location:"), 'StockLocation', null); } if (!isset($_POST['quantity'])) $_POST['quantity'] = qty_format(1, $_POST['stock_id'], $dec); +else + $_POST['quantity'] = qty_format($_POST['quantity'], $_POST['stock_id'], $dec); + if (get_post('type') == wo_types::advanced()) { -- 2.30.2