X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=manufacturing%2Finquiry%2Fbom_cost_inquiry.php;h=9b311a7df29aa8b609331d1b4e714aef708797eb;hb=ca45fa23d2d83705e11007acafd52528718ae5aa;hp=4f62c5bf36ff024776c2a677d15e9d478e3d3d41;hpb=21290a4a16ca78fe736f62cf1cb039c06cb53fca;p=fa-stable.git diff --git a/manufacturing/inquiry/bom_cost_inquiry.php b/manufacturing/inquiry/bom_cost_inquiry.php index 4f62c5bf..9b311a7d 100644 --- a/manufacturing/inquiry/bom_cost_inquiry.php +++ b/manufacturing/inquiry/bom_cost_inquiry.php @@ -9,11 +9,11 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the License here . ***********************************************************************/ -$page_security = 2; -$path_to_root="../.."; +$page_security = 'SA_WORKORDERCOST'; +$path_to_root = "../.."; include_once($path_to_root . "/includes/session.inc"); -page(_("Costed Bill Of Material Inquiry")); +page(_($help_context = "Costed Bill Of Material Inquiry")); include_once($path_to_root . "/manufacturing/includes/manufacturing_ui.inc"); include_once($path_to_root . "/includes/manufacturing.inc"); @@ -30,18 +30,13 @@ if (isset($_GET['stock_id'])) if (list_updated('stock_id')) $Ajax->activate('_page_body'); -start_form(); - start_table("class='tablestyle_noborder'"); - start_row(); - echo ''; - stock_bom_items_list('stock_id', null, false, true); - echo ''; - end_table(); - - echo "
"; - - display_heading(_("All Costs Are In:") . " " . get_company_currency()); - display_bom($_POST['stock_id']); +start_form(false, true); +start_table("class='tablestyle_noborder'"); +stock_manufactured_items_list_row(_("Select a manufacturable item:"), 'stock_id', null, false, true); +end_table(); +br(); +display_heading(_("All Costs Are In:") . " " . get_company_currency()); +display_bom($_POST['stock_id']); end_form();