Fixed Company Default Currency in Accounts Browser

This commit is contained in:
Ravi Dey 2011-06-28 14:55:50 +05:30
parent c5998ce2da
commit 2380eabb32
2 changed files with 2 additions and 2 deletions

View File

@ -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]

View File

@ -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');
}