From cb46a2df55fe995cd7cb2f7bb1c570bf97ea16dd Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Mon, 21 Jan 2013 21:58:53 +0530 Subject: [PATCH] accounts_browser: fix for number formatting --- accounts/page/accounts_browser/accounts_browser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/accounts/page/accounts_browser/accounts_browser.py b/accounts/page/accounts_browser/accounts_browser.py index 7c8116c77c..4bcf7a4055 100644 --- a/accounts/page/accounts_browser/accounts_browser.py +++ b/accounts/page/accounts_browser/accounts_browser.py @@ -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