}
// make sure item has components
- if (!has_bom($myrow['stock_id']))
+ // We don't need to stop the user to release it if it's and advanced order.
+ // The user know what he is doing.
+
+ if (!has_bom($myrow['stock_id']) && $myrow['type'] != WO_ADVANCED)
{
display_error(_("This Work Order cannot be released. The selected item to manufacture does not have a bom."));
set_focus('stock_id');
display_note(get_trans_view_str(ST_WORKORDER, $selected_id, _("View this Work Order")));
hyperlink_no_params("search_work_orders.php", _("Select another &work order"));
+ br();
$Ajax->activate('_page_body');
end_page();
if (can_process($myrow))
{
- start_table($table_style2);
+ start_table(TABLESTYLE2);
label_row(_("Work Order #:"), $selected_id);
label_row(_("Work Order Reference:"), $myrow["wo_ref"]);