chore: avoid explicit escaping for precision
Co-authored-by: Raffael Meyer <14891507+barredterra@users.noreply.github.com>
This commit is contained in:
parent
383a4b132e
commit
a8949174c8
@ -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))"
|
||||
|
Loading…
x
Reference in New Issue
Block a user