[currency exchange] set the default Currency as To Currency for a new record
This commit is contained in:
parent
573b423a6c
commit
a45d164140
@ -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();
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user