X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=manufacturing%2Fmanage%2Fbom_edit.php;h=742c2b1a8c5f72e2ac6ad028949bd5e37587f2ca;hb=ff3ad68ec5da00d6e906fdaad3a4df3658709ff3;hp=e771878c41e48bf38e048afa9421953208ec249f;hpb=54d84ff9a67620ab38c676cdbcf87853632724f0;p=fa-stable.git diff --git a/manufacturing/manage/bom_edit.php b/manufacturing/manage/bom_edit.php index e771878c..742c2b1a 100644 --- a/manufacturing/manage/bom_edit.php +++ b/manufacturing/manage/bom_edit.php @@ -9,11 +9,11 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the License here . ***********************************************************************/ -$page_security = 9; -$path_to_root="../.."; +$page_security = 'SA_BOM'; +$path_to_root = "../.."; include_once($path_to_root . "/includes/session.inc"); -page(_("Bill Of Materials")); +page(_($help_context = "Bill Of Materials")); include_once($path_to_root . "/includes/date_functions.inc"); include_once($path_to_root . "/includes/ui.inc"); @@ -213,7 +213,7 @@ if ($Mode == 'RESET') //-------------------------------------------------------------------------------------------------- -start_form(false, true); +start_form(); start_form(false, true); start_table("class='tablestyle_noborder'"); @@ -235,10 +235,8 @@ if (get_post('stock_id') != '') start_form(); display_bom_items($selected_parent); -//end_form(); //-------------------------------------------------------------------------------------- echo '
'; -// start_form(false, true); start_table($table_style2); @@ -268,7 +266,7 @@ start_form(); label_cell(_("Component:")); echo ""; - stock_component_items_list('component', $selected_parent, null, false, true); + echo stock_component_items_list('component', $selected_parent, null, false, true); if (get_post('_component_update')) { $Ajax->activate('quantity'); @@ -285,7 +283,7 @@ start_form(); qty_row(_("Quantity:"), 'quantity', null, null, null, $dec); end_table(1); - submit_add_or_update_center($selected_id == -1, '', true); + submit_add_or_update_center($selected_id == -1, '', 'both'); end_form(); } // ----------------------------------------------------------------------------------