chore: avoid explicit escaping for precision

Co-authored-by: Raffael Meyer <14891507+barredterra@users.noreply.github.com>
(cherry picked from commit a8949174c878499e14228517abe66050f9b9ddb9)
This commit is contained in:
Dany Robert 2023-12-09 09:30:17 +05:30 committed by Mergify
parent 8b7900e6a7
commit ed032b3224

View File

@ -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))"