BugFix: Item search in Production Planning Tool

This commit is contained in:
Anand Doshi 2014-04-26 12:14:00 +05:30
parent 6916baa299
commit 4c90bae16d

View File

@ -33,7 +33,7 @@ cur_frm.cscript.download_materials_required = function(doc, cdt, cdn) {
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.customer.get_query = function(doc,cdt,cdn) {
}
cur_frm.fields_dict.pp_so_details.grid.get_field("customer").get_query =
cur_frm.fields_dict.customer.get_query;
cur_frm.fields_dict.customer.get_query;