changed to cur_frm.call for get uom details
diff --git a/buying/doctype/purchase_common/purchase_common.js b/buying/doctype/purchase_common/purchase_common.js
index a815cba..b29ccb7 100644
--- a/buying/doctype/purchase_common/purchase_common.js
+++ b/buying/doctype/purchase_common/purchase_common.js
@@ -211,13 +211,11 @@
 	});
 	
 	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);
 			}
 		});