X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=manufacturing%2Finquiry%2Fbom_cost_inquiry.php;h=40612fe2f54ac6f0f45467452363568c5fb02767;hb=1f3dea6295d48fe11577daf8a9fce40a70b23c55;hp=26795c1498b26ccebf9105401e03469cecc9d6b6;hpb=da8311619dd73feae101d246a1957b972e00cbd2;p=fa-stable.git diff --git a/manufacturing/inquiry/bom_cost_inquiry.php b/manufacturing/inquiry/bom_cost_inquiry.php index 26795c14..40612fe2 100644 --- a/manufacturing/inquiry/bom_cost_inquiry.php +++ b/manufacturing/inquiry/bom_cost_inquiry.php @@ -1,11 +1,21 @@ . +***********************************************************************/ +$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"); include_once($path_to_root . "/includes/ui.inc"); include_once($path_to_root . "/includes/banking.inc"); @@ -17,22 +27,17 @@ if (isset($_GET['stock_id'])) { $_POST['stock_id'] = $_GET['stock_id']; } +if (list_updated('stock_id')) + $Ajax->activate('_page_body'); -start_form(false, true)); -echo "
" . _("Item:") . " "; -stock_bom_items_list('stock_id', $_POST['stock_id'], false, true); - -echo "
"; +start_form(false, true); +start_table(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']); -if ($_POST['stock_id'] != "") -{ - echo "
" . _("All Costs Are In:") . " " . get_company_currency() . "

"; - display_bom($_POST['stock_id']); -} -else -{ //no item entered - echo "

" ._("Enter an item code above, to view the costed bill of material for.") . "

"; -} end_form(); end_page();