From 8f7c7a6882355ab2c0375840198c392a1c7c5fd2 Mon Sep 17 00:00:00 2001 From: Mangesh-Khairnar Date: Fri, 1 Mar 2019 16:41:43 +0530 Subject: [PATCH] feat: check for on hold sales order --- erpnext/manufacturing/doctype/work_order/work_order.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/erpnext/manufacturing/doctype/work_order/work_order.js b/erpnext/manufacturing/doctype/work_order/work_order.js index 8a8a6c900c..007cafc10b 100644 --- a/erpnext/manufacturing/doctype/work_order/work_order.js +++ b/erpnext/manufacturing/doctype/work_order/work_order.js @@ -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: {