X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=manufacturing%2Finquiry%2Fbom_cost_inquiry.php;h=9b8f9d21db61406ef715f524119c9aa1d63bc1e3;hb=e9ad9e87f5eb2682d2e91c93134250fd8a8d2ad9;hp=02b25d4a977599992924e135c2d94d4d46e3afb0;hpb=a5242af68e65661edb7175412444dce536a7f311;p=fa-stable.git diff --git a/manufacturing/inquiry/bom_cost_inquiry.php b/manufacturing/inquiry/bom_cost_inquiry.php index 02b25d4a..9b8f9d21 100644 --- a/manufacturing/inquiry/bom_cost_inquiry.php +++ b/manufacturing/inquiry/bom_cost_inquiry.php @@ -9,13 +9,13 @@ 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 . "/includes/manufacturing.inc"); +include_once($path_to_root . "/manufacturing/includes/manufacturing_ui.inc"); include_once($path_to_root . "/includes/ui.inc"); include_once($path_to_root . "/includes/banking.inc"); include_once($path_to_root . "/includes/data_checks.inc"); @@ -26,23 +26,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); +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']); -echo "
"; - -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(); -?>