diff --git a/setup/doctype/currency_exchange/currency_exchange.js b/setup/doctype/currency_exchange/currency_exchange.js index 02cba115f03..f10bdf01ffe 100644 --- a/setup/doctype/currency_exchange/currency_exchange.js +++ b/setup/doctype/currency_exchange/currency_exchange.js @@ -15,6 +15,12 @@ // along with this program. If not, see . $.extend(cur_frm.cscript, { + onload: function() { + if(cur_frm.doc.__islocal) { + cur_frm.set_value("to_currency", wn.defaults.get_global_default("currency")); + } + }, + refresh: function() { cur_frm.cscript.set_exchange_rate_label(); },