chore: avoid explicit escaping for precision

Co-authored-by: Raffael Meyer <14891507+barredterra@users.noreply.github.com>
This commit is contained in:
Dany Robert 2023-12-09 09:30:17 +05:30 committed by GitHub
parent 383a4b132e
commit a8949174c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -282,7 +282,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))"