Merged changes from main branch up to 2.1.3.
[fa-stable.git] / manufacturing / inquiry / bom_cost_inquiry.php
index 4f62c5bf36ff024776c2a677d15e9d478e3d3d41..8faae1ccbf9728464abee9e081bd90cfe7be9bce 100644 (file)
@@ -30,18 +30,13 @@ if (isset($_GET['stock_id']))
 if (list_updated('stock_id'))
                $Ajax->activate('_page_body');
 
-start_form();
-    start_table("class='tablestyle_noborder'");
-       start_row();
-       echo '<td>';
-       stock_bom_items_list('stock_id', null, false, true);
-       echo '</td>';
-       end_table();
-       
-       echo "<hr>";
-
-       display_heading(_("All Costs Are In:") . " " . get_company_currency());
-       display_bom($_POST['stock_id']);
+start_form(false, true);
+start_table("class='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']);
 
 end_form();