From 737e9db4db93a06cf908439abbfdd22fa49ef8f6 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Wed, 5 Dec 2012 18:26:28 +0530 Subject: [PATCH] changed to cur_frm.call for get uom details --- buying/doctype/purchase_common/purchase_common.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/buying/doctype/purchase_common/purchase_common.js b/buying/doctype/purchase_common/purchase_common.js index a815cba91b..b29ccb7191 100644 --- a/buying/doctype/purchase_common/purchase_common.js +++ b/buying/doctype/purchase_common/purchase_common.js @@ -211,13 +211,11 @@ cur_frm.cscript.uom = function(doc, cdt, cdn, args) { }); if(d.item_code && d.uom) { - wn.call({ + cur_frm.call({ method: "buying.doctype.purchase_common.purchase_common.get_uom_details", args: { args: args }, + child: d, callback: function(r) { - d = locals[cdt][cdn]; - $.extend(d, r.message); - refresh_field(cur_frm.cscript.fname); cur_frm.cscript.calc_amount(doc, 2); } });