Fixed Company Default Currency in Accounts Browser
This commit is contained in:
parent
c5998ce2da
commit
2380eabb32
@ -34,7 +34,7 @@ class DocType:
|
||||
# pl[r[0]] = flt(flt(inc) - flt(exp))
|
||||
return {'cl':[r[0] for r in ret]}#, 'pl':pl}
|
||||
|
||||
def get_company_currency(self,arg=''):
|
||||
def get_company_currency(self,arg=''):
|
||||
ret = sql("select default_currency from tabCompany where name=%s and docstatus != 2", arg)
|
||||
return ret[0]
|
||||
|
||||
|
@ -208,7 +208,7 @@ pscript.set_ac_head = function(parent_account, r,type) {
|
||||
var callback = function(r,rt) {
|
||||
dcc = r.message;
|
||||
}
|
||||
$c_obj('GL Control', 'get_company_currency', pscript.ab_company_sel.value, callback);
|
||||
$c_obj('GL Control', 'get_company_currency', pscript.ab_company_sel.value, callback);
|
||||
|
||||
d.balance.innerHTML = (dcc ? dcc : sys_defaults.currency)+ ' ' + (r.balance ? fmt_money(r.balance) :'0.00');
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user