diff --git a/erpnext/stock/doctype/stock_entry/stock_entry.js b/erpnext/stock/doctype/stock_entry/stock_entry.js index c7810fd0399..1135bc708f8 100644 --- a/erpnext/stock/doctype/stock_entry/stock_entry.js +++ b/erpnext/stock/doctype/stock_entry/stock_entry.js @@ -445,10 +445,11 @@ cur_frm.cscript.item_code = function(doc, cdt, cdn) { args: args, callback: function(r) { if(r.message) { + var d = locals[cdt][cdn]; $.each(r.message, function(k, v) { d[k] = v; }); - refresh_field('items'); + refresh_field("items"); } } });