From fe8d107731d924ee1f8e2a00be09afa714a1f0ce Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Fri, 22 May 2015 18:04:35 +0530 Subject: [PATCH] stock entry: get item details --- erpnext/stock/doctype/stock_entry/stock_entry.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/erpnext/stock/doctype/stock_entry/stock_entry.js b/erpnext/stock/doctype/stock_entry/stock_entry.js index c7810fd039..1135bc708f 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"); } } });