X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=manufacturing%2Fmanage%2Fbom_edit.php;h=35230ddb5ab0a70ccb489d1e7be0adbb0d1ee8a2;hb=27457e8b66b9ebd588cb515f03ca622f78fafc03;hp=aee79dd9b2c2de101d2efb3afa407bf5ed36c2d8;hpb=5b8f4c4b4aa8cf996bc071f116bfce1273200fa2;p=fa-stable.git diff --git a/manufacturing/manage/bom_edit.php b/manufacturing/manage/bom_edit.php index aee79dd9..35230ddb 100644 --- a/manufacturing/manage/bom_edit.php +++ b/manufacturing/manage/bom_edit.php @@ -19,8 +19,6 @@ include_once($path_to_root . "/includes/date_functions.inc"); include_once($path_to_root . "/includes/ui.inc"); include_once($path_to_root . "/includes/data_checks.inc"); -include_once($path_to_root . "/includes/manufacturing.inc"); - check_db_has_bom_stock_items(_("There are no manufactured or kit items defined in the system.")); check_db_has_workcentres(_("There are no work centres defined in the system. BOMs require at least one work centre be defined.")); @@ -29,44 +27,19 @@ simple_page_mode(true); $selected_component = $selected_id; //-------------------------------------------------------------------------------------------------- -//if (isset($_GET["NewItem"])) -//{ -// $_POST['stock_id'] = $_GET["NewItem"]; -//} if (isset($_GET['stock_id'])) { $_POST['stock_id'] = $_GET['stock_id']; $selected_parent = $_GET['stock_id']; } -/* selected_parent could come from a post or a get */ -/*if (isset($_GET["selected_parent"])) -{ - $selected_parent = $_GET["selected_parent"]; -} -else if (isset($_POST["selected_parent"])) -{ - $selected_parent = $_POST["selected_parent"]; -} -*/ -/* selected_component could also come from a post or a get */ -/*if (isset($_GET["selected_component"])) -{ - $selected_component = $_GET["selected_component"]; -} -else -{ - $selected_component = get_post("selected_component", -1); -} -*/ - //-------------------------------------------------------------------------------------------------- function display_bom_items($selected_parent) { $result = get_bom($selected_parent); div_start('bom'); - start_table(TABLESTYLE, "width=60%"); + start_table(TABLESTYLE, "width='60%'"); $th = array(_("Code"), _("Description"), _("Location"), _("Work Centre"), _("Quantity"), _("Units"),'',''); table_header($th); @@ -170,7 +143,10 @@ start_row(); stock_manufactured_items_list_cells(_("Select a manufacturable item:"), 'stock_id', null, false, true); end_row(); if (list_updated('stock_id')) +{ + $selected_id = -1; $Ajax->activate('_page_body'); +} end_table(); br(); @@ -219,7 +195,7 @@ start_form(); echo ""; end_row(); } - hidden('stock_id', $selected_parent); +// hidden('stock_id', $selected_parent); locations_list_row(_("Location to Draw From:"), 'loc_code', null); workcenter_list_row(_("Work Centre Added:"), 'workcentre_added', null);