[currency exchange] set the default Currency as To Currency for a new record

This commit is contained in:
Anand Doshi 2013-07-18 13:31:07 +05:30
parent 573b423a6c
commit a45d164140

View File

@ -15,6 +15,12 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
$.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();
},