MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
***********************************************************************/
-$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 . "/manufacturing/includes/manufacturing_ui.inc");
include_once($path_to_root . "/includes/manufacturing.inc");
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(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();