refactor: better variable name

This commit is contained in:
ruthra kumar
2025-06-05 11:29:48 +05:30
parent c5e35cc330
commit 1a90c0d031

View File

@@ -352,7 +352,7 @@ class ReceivablePayableReport:
"""
frappe.db.sql(build_balance)
res = frappe.db.sql(
balances = frappe.db.sql(
f"""select
name,
voucher_type,
@@ -373,7 +373,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: