accounts_browser: fix for number formatting

This commit is contained in:
Rushabh Mehta 2013-01-21 21:58:53 +05:30
parent f6f8ddac30
commit cb46a2df55

View File

@ -52,6 +52,6 @@ def get_children():
currency = webnotes.conn.sql("select default_currency from `tabCompany` where name = %s", company)[0][0]
for each in acc:
bal = get_balance_on(each.get("value"))
each['balance'] = currency + ' ' + fmt_money(bal)
each['balance'] = currency + ' ' + str(bal or 0)
return acc