Merge pull request #4329 from anandpdoshi/int-float-not-null
[enhancement] Int, Currency, Float, Percent as not null and default to 0
diff --git a/erpnext/accounts/utils.py b/erpnext/accounts/utils.py
index 29ff15b..05b771a 100644
--- a/erpnext/accounts/utils.py
+++ b/erpnext/accounts/utils.py
@@ -65,7 +65,7 @@
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()