[minor] [selling/buying] use script_manager.trigger instead of calling cscript function directly post item details fetch, so that custom code can be executed

This commit is contained in:
Anand Doshi 2013-07-17 14:49:13 +05:30
parent cc04a17030
commit 80166e26cc
2 changed files with 2 additions and 2 deletions

View File

@ -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);
}
}
});

View File

@ -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);
}
}
});