From ed032b32245acbd02a9cdcaf379a06a6a1d2c802 Mon Sep 17 00:00:00 2001 From: Dany Robert Date: Sat, 9 Dec 2023 09:30:17 +0530 Subject: [PATCH] chore: avoid explicit escaping for precision Co-authored-by: Raffael Meyer <14891507+barredterra@users.noreply.github.com> (cherry picked from commit a8949174c878499e14228517abe66050f9b9ddb9) --- 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 35746745f88..7390d3109bb 100644 --- a/erpnext/accounts/utils.py +++ b/erpnext/accounts/utils.py @@ -285,7 +285,7 @@ def get_balance_on( cond.append("""gle.company = %s """ % (frappe.db.escape(company, percent=False))) if account or (party_type and party) or account_type: - precision = frappe.db.escape(get_currency_precision()) + precision = get_currency_precision() if in_account_currency: select_field = ( "sum(round(debit_in_account_currency, %s)) - sum(round(credit_in_account_currency, %s))"