fix in get_currency -- using :Company
This commit is contained in:
parent
cbc124c92b
commit
f83f151ac3
@ -20,7 +20,7 @@ erpnext.get_currency = function(company) {
|
||||
if(!company && cur_frm)
|
||||
company = cur_frm.doc.company;
|
||||
if(company)
|
||||
return wn.boot.company[company].default_currency || wn.boot.sysdefaults.currency;
|
||||
return wn.model.get(":Company", company).default_currency || wn.boot.sysdefaults.currency;
|
||||
else
|
||||
return wn.boot.sysdefaults.currency;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user