[minor] [fix] [issue] #617

This commit is contained in:
Anand Doshi 2013-07-19 15:33:11 +05:30
parent 648fd16e98
commit 6fa5e42b40
2 changed files with 2 additions and 2 deletions

View File

@ -163,7 +163,7 @@ cur_frm.cscript.account = function(doc,dt,dn) {
method: "accounts.utils.get_balance_on",
args: {account: d.account, date: doc.posting_date},
callback: function(r) {
d.balance = format_currency(r.message, erpnext.get_currency(doc.company));
d.balance = r.message;
refresh_field('balance', d.name, 'entries');
}
});

View File

@ -119,7 +119,7 @@ def get_balance_on(account=None, date=None):
bal = -bal
# if bal is None, return 0
return bal or 0
return flt(bal)
@webnotes.whitelist()
def add_ac(args=None):