5 include_once($path_to_root . "/includes/session.inc");
7 page(_("Costed Bill Of Material Inquiry"));
9 include_once($path_to_root . "/includes/manufacturing.inc");
10 include_once($path_to_root . "/includes/ui.inc");
11 include_once($path_to_root . "/includes/banking.inc");
12 include_once($path_to_root . "/includes/data_checks.inc");
14 check_db_has_bom_stock_items(_("There are no manufactured or kit items defined in the system."));
16 if (isset($_GET['stock_id']))
18 $_POST['stock_id'] = $_GET['stock_id'];
21 start_form(false, true));
22 echo "<center> " . _("Item:") . " ";
23 stock_bom_items_list('stock_id', $_POST['stock_id'], false, true);
27 if ($_POST['stock_id'] != "")
29 echo "<center>" . _("All Costs Are In:") . " " . get_company_currency() . "<br><br>";
30 display_bom($_POST['stock_id']);
34 echo "<p>" ._("Enter an item code above, to view the costed bill of material for.") . "</p>";