BugFix: Item search in Stock UOM Replace Utility

This commit is contained in:
Anand Doshi 2014-04-26 11:59:28 +05:30
parent ac87c1d618
commit 6916baa299

View File

@ -3,9 +3,11 @@
$.extend(cur_frm.cscript, {
onload: function() {
cur_frm.set_query("item_code", erpnext.queries.item);
cur_frm.set_query("item_code", function() {
return erpnext.queries.item({"is_stock_item": "Yes"});
});
},
item_code: function() {
if(cur_frm.doc.item_code) {
return cur_frm.call({
@ -14,4 +16,4 @@ $.extend(cur_frm.cscript, {
});
}
}
});
});