From ce1f6a73e22588b7e274af5d4d302f7d64deb59c Mon Sep 17 00:00:00 2001 From: Yugandhara Date: Sat, 15 Feb 2020 16:31:53 +0530 Subject: [PATCH] fix: Changes done to get valid sales order list on production plan form(#20609) --- .../manufacturing/doctype/production_plan/production_plan.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/manufacturing/doctype/production_plan/production_plan.js b/erpnext/manufacturing/doctype/production_plan/production_plan.js index d400d59a134..96e5cd57c35 100644 --- a/erpnext/manufacturing/doctype/production_plan/production_plan.js +++ b/erpnext/manufacturing/doctype/production_plan/production_plan.js @@ -297,7 +297,7 @@ frappe.ui.form.on("Material Request Plan Item", { } }); -cur_frm.fields_dict['sales_orders'].grid.get_field("sales_order").get_query = function(doc) { +cur_frm.fields_dict['sales_orders'].grid.get_field("sales_order").get_query = function() { return{ filters: [ ['Sales Order','docstatus', '=' ,1]