mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-21 05:59:18 +00:00
BugFix: Item search in Stock UOM Replace Utility
This commit is contained in:
@@ -3,9 +3,11 @@
|
|||||||
|
|
||||||
$.extend(cur_frm.cscript, {
|
$.extend(cur_frm.cscript, {
|
||||||
onload: function() {
|
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() {
|
item_code: function() {
|
||||||
if(cur_frm.doc.item_code) {
|
if(cur_frm.doc.item_code) {
|
||||||
return cur_frm.call({
|
return cur_frm.call({
|
||||||
@@ -14,4 +16,4 @@ $.extend(cur_frm.cscript, {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user