diff --git a/buying/doctype/purchase_common/purchase_common.js b/buying/doctype/purchase_common/purchase_common.js index e93d34ed736..e54319dd058 100644 --- a/buying/doctype/purchase_common/purchase_common.js +++ b/buying/doctype/purchase_common/purchase_common.js @@ -129,7 +129,7 @@ erpnext.buying.BuyingController = erpnext.TransactionController.extend({ }, callback: function(r) { if(!r.exc) { - me.import_ref_rate(me.frm.doc, cdt, cdn); + me.frm.script_manager.trigger("import_ref_rate", cdt, cdn); } } }); diff --git a/selling/doctype/sales_common/sales_common.js b/selling/doctype/sales_common/sales_common.js index 9c11eeab7ef..a0ba0dfd3e2 100644 --- a/selling/doctype/sales_common/sales_common.js +++ b/selling/doctype/sales_common/sales_common.js @@ -202,7 +202,7 @@ erpnext.selling.SellingController = erpnext.TransactionController.extend({ }, callback: function(r) { if(!r.exc) { - me.ref_rate(me.frm.doc, cdt, cdn); + me.frm.script_manager.trigger("ref_rate", cdt, cdn); } } });