X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=manufacturing%2Fwork_order_entry.php;h=659e9bec41a88228830f5492f19ce43c11c5f082;hb=7d9fe15f85c15572535c5fa4555b9a72e9d93f04;hp=7977a59db19c09485aba6aaa99b2d6800eb4cd74;hpb=569f3733188bdff8d7df940aa88eb425335f7276;p=fa-stable.git 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()) {