[minor] [fix] [issue] #617
This commit is contained in:
parent
648fd16e98
commit
6fa5e42b40
@ -163,7 +163,7 @@ cur_frm.cscript.account = function(doc,dt,dn) {
|
|||||||
method: "accounts.utils.get_balance_on",
|
method: "accounts.utils.get_balance_on",
|
||||||
args: {account: d.account, date: doc.posting_date},
|
args: {account: d.account, date: doc.posting_date},
|
||||||
callback: function(r) {
|
callback: function(r) {
|
||||||
d.balance = format_currency(r.message, erpnext.get_currency(doc.company));
|
d.balance = r.message;
|
||||||
refresh_field('balance', d.name, 'entries');
|
refresh_field('balance', d.name, 'entries');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -119,7 +119,7 @@ def get_balance_on(account=None, date=None):
|
|||||||
bal = -bal
|
bal = -bal
|
||||||
|
|
||||||
# if bal is None, return 0
|
# if bal is None, return 0
|
||||||
return bal or 0
|
return flt(bal)
|
||||||
|
|
||||||
@webnotes.whitelist()
|
@webnotes.whitelist()
|
||||||
def add_ac(args=None):
|
def add_ac(args=None):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user