. ***********************************************************************/ $page_security = 2; $path_to_root="../.."; include_once($path_to_root . "/includes/session.inc"); page(_("Costed Bill Of Material Inquiry")); include_once($path_to_root . "/includes/manufacturing.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"); check_db_has_bom_stock_items(_("There are no manufactured or kit items defined in the system.")); if (isset($_GET['stock_id'])) { $_POST['stock_id'] = $_GET['stock_id']; } start_form(); echo "
" . _("Item:") . " "; stock_bom_items_list('stock_id', $_POST['stock_id'], false, true); 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(); ?>