refactor: better variable name

(cherry picked from commit 1a90c0d031)
This commit is contained in:
ruthra kumar
2025-06-05 11:29:48 +05:30
committed by Mergify
parent 2d2ca049fa
commit d9b36ea37c

View File

@@ -350,7 +350,7 @@ class ReceivablePayableReport:
"""
frappe.db.sql(build_balance)
res = frappe.db.sql(
balances = frappe.db.sql(
f"""select
name,
voucher_type,
@@ -371,7 +371,7 @@ class ReceivablePayableReport:
from `{self.proc._voucher_balance_name}` group by name order by posting_date;""",
as_dict=True,
)
for x in res:
for x in balances:
if self.filters.get("ignore_accounts"):
key = (x.voucher_type, x.voucher_no, x.party)
else: