BugFix: Item search in Production Planning Tool
diff --git a/erpnext/manufacturing/doctype/production_planning_tool/production_planning_tool.js b/erpnext/manufacturing/doctype/production_planning_tool/production_planning_tool.js
index 54aa9a2..0415c91 100644
--- a/erpnext/manufacturing/doctype/production_planning_tool/production_planning_tool.js
+++ b/erpnext/manufacturing/doctype/production_planning_tool/production_planning_tool.js
@@ -33,7 +33,7 @@
cur_frm.fields_dict['pp_details'].grid.get_field('item_code').get_query = function(doc) {
return erpnext.queries.item({
- 'ifnull(tabItem.is_pro_applicable, "No")': 'Yes'
+ 'is_pro_applicable': 'Yes'
});
}
@@ -54,4 +54,4 @@
}
cur_frm.fields_dict.pp_so_details.grid.get_field("customer").get_query =
- cur_frm.fields_dict.customer.get_query;
\ No newline at end of file
+ cur_frm.fields_dict.customer.get_query;