projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added two new helpers date_comp, sql_date_comp.
[fa-stable.git]
/
manufacturing
/
work_order_release.php
diff --git
a/manufacturing/work_order_release.php
b/manufacturing/work_order_release.php
index edacd995bed8565b87362381f265450be3f15aba..7e0f54f2262617f069872f357892951f6f0fef03 100644
(file)
--- a/
manufacturing/work_order_release.php
+++ b/
manufacturing/work_order_release.php
@@
-22,7
+22,7
@@
include_once($path_to_root . "/manufacturing/includes/manufacturing_ui.inc");
$js = "";
if ($use_popup_windows)
$js .= get_js_open_window(800, 500);
$js = "";
if ($use_popup_windows)
$js .= get_js_open_window(800, 500);
-if (
$use_date_picker
)
+if (
user_use_date_picker()
)
$js .= get_js_date_picker();
page(_($help_context = "Work Order Release to Manufacturing"), false, false, "", $js);
$js .= get_js_date_picker();
page(_($help_context = "Work Order Release to Manufacturing"), false, false, "", $js);
@@
-52,7
+52,10
@@
function can_process($myrow)
}
// make sure item has components
}
// 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_error(_("This Work Order cannot be released. The selected item to manufacture does not have a bom."));
set_focus('stock_id');
@@
-72,6
+75,7
@@
if (isset($_POST['release']))
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"));
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();
$Ajax->activate('_page_body');
end_page();
@@
-111,4
+115,3
@@
end_form();
end_page();
end_page();
-?>
\ No newline at end of file