mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-25 16:04:46 +00:00
@@ -350,7 +350,7 @@ class ReceivablePayableReport:
|
|||||||
"""
|
"""
|
||||||
frappe.db.sql(build_balance)
|
frappe.db.sql(build_balance)
|
||||||
|
|
||||||
res = frappe.db.sql(
|
balances = frappe.db.sql(
|
||||||
f"""select
|
f"""select
|
||||||
name,
|
name,
|
||||||
voucher_type,
|
voucher_type,
|
||||||
@@ -371,7 +371,7 @@ class ReceivablePayableReport:
|
|||||||
from `{self.proc._voucher_balance_name}` group by name order by posting_date;""",
|
from `{self.proc._voucher_balance_name}` group by name order by posting_date;""",
|
||||||
as_dict=True,
|
as_dict=True,
|
||||||
)
|
)
|
||||||
for x in res:
|
for x in balances:
|
||||||
if self.filters.get("ignore_accounts"):
|
if self.filters.get("ignore_accounts"):
|
||||||
key = (x.voucher_type, x.voucher_no, x.party)
|
key = (x.voucher_type, x.voucher_no, x.party)
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user