Browse Source

[fix] get_balance_on: convert date to string

develop
Anand Doshi 9 years ago
parent
commit
120ea62acc
  1. 2
      erpnext/accounts/utils.py

2
erpnext/accounts/utils.py

@ -65,7 +65,7 @@ def get_balance_on(account=None, date=None, party_type=None, party=None, in_acco
cond = []
if date:
cond.append("posting_date <= '%s'" % frappe.db.escape(date))
cond.append("posting_date <= '%s'" % frappe.db.escape(cstr(date)))
else:
# get balance of all entries that exist
date = nowdate()

Loading…
Cancel
Save