commit | af2b39891e097bf1db55e549410c331377c92595 | [log] [tgz] |
---|---|---|
author | Yugandhara <yugandhara.b@indictranstech.com> | Sat Feb 15 16:01:41 2020 +0530 |
committer | Yugandhara <yugandhara.b@indictranstech.com> | Sat Feb 15 16:01:41 2020 +0530 |
tree | 6270dd471e8244889e9ed18a6c397ffb5ce66142 | |
parent | ad645afeb2b20c11222f5b0b55ac15c088ade718 [diff] |
fix: Changes done to get valid sales order list on sales order child table of production plan
diff --git a/erpnext/manufacturing/doctype/production_plan/production_plan.js b/erpnext/manufacturing/doctype/production_plan/production_plan.js index 2b168d1..4e92ee2 100644 --- a/erpnext/manufacturing/doctype/production_plan/production_plan.js +++ b/erpnext/manufacturing/doctype/production_plan/production_plan.js
@@ -296,3 +296,11 @@ } } }); + +cur_frm.fields_dict['sales_orders'].grid.get_field("sales_order").get_query = function(doc, cdt, cdn) { + return{ + filters: [ + ['Sales Order','docstatus', '=' ,1] + ] + } +}; \ No newline at end of file