From e8533d15b3439fe28b04264032e25d190e3b6ad0 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Tue, 1 Jul 2014 19:46:22 +0530 Subject: [PATCH] Hotfix: Get Balance query --- 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 160514bfe5..60a755b440 100644 --- a/erpnext/accounts/utils.py +++ b/erpnext/accounts/utils.py @@ -82,7 +82,7 @@ def get_balance_on(account=None, date=None): and ac.lft >= %s and ac.rgt <= %s )""" % (acc.lft, acc.rgt)) else: - cond.append("""gle.account = "%s" """ % (account.replace('"', '\"'), )) + cond.append("""gle.account = "%s" """ % (account.replace('"', '\\"'), )) bal = frappe.db.sql(""" SELECT sum(ifnull(debit, 0)) - sum(ifnull(credit, 0))