fixed underline in db pager for sortable columns.
[fa-stable.git] / manufacturing / inquiry / bom_cost_inquiry.php
1 <?php
2
3 $page_security = 2;
4 $path_to_root="../..";
5 include_once($path_to_root . "/includes/session.inc");
6
7 page(_("Costed Bill Of Material Inquiry"));
8
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");
13
14 check_db_has_bom_stock_items(_("There are no manufactured or kit items defined in the system."));
15
16 if (isset($_GET['stock_id']))
17 {
18         $_POST['stock_id'] = $_GET['stock_id'];
19
20
21 start_form(false, true));
22 echo "<center> " . _("Item:") . " ";    
23 stock_bom_items_list('stock_id', $_POST['stock_id'], false, true);
24
25 echo "<hr>";
26
27 if ($_POST['stock_id'] != "")
28 {
29         echo "<center>" . _("All Costs Are In:") . " " . get_company_currency() . "<br><br>";
30         display_bom($_POST['stock_id']);
31
32 else 
33 { //no item entered
34         echo "<p>" ._("Enter an item code above, to view the costed bill of material for.") . "</p>";
35 }       
36 end_form();
37
38 end_page();
39 ?>