BugFix: Item search in Stock UOM Replace Utility
This commit is contained in:
parent
ac87c1d618
commit
6916baa299
@ -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, {
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user