From 120ea62acc1ea2be9b19c4e795e24aed0bbc43e6 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Thu, 19 Nov 2015 14:24:39 +0530 Subject: [PATCH] [fix] get_balance_on: convert date to string --- erpnext/accounts/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/accounts/utils.py b/erpnext/accounts/utils.py index c2ada13bed..b58882f238 100644 --- a/erpnext/accounts/utils.py +++ b/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()