feat: check for on hold sales order

This commit is contained in:
Mangesh-Khairnar 2019-03-01 16:41:43 +05:30
parent 4f350fcadb
commit 8f7c7a6882

View File

@ -32,6 +32,14 @@ frappe.ui.form.on("Work Order", {
}
});
frm.set_query("sales_order", function() {
return {
filters: {
"status": ["not in", ["Closed", "On Hold"]]
}
}
});
frm.set_query("fg_warehouse", function() {
return {
filters: {