mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-25 16:04:46 +00:00
fix: add parenttype condition to payment schedule query in accounts receivable report (backport #46370)
This commit is contained in:
@@ -520,7 +520,7 @@ class ReceivablePayableReport:
|
|||||||
ps.description, ps.paid_amount, ps.discounted_amount
|
ps.description, ps.paid_amount, ps.discounted_amount
|
||||||
from `tab{row.voucher_type}` si, `tabPayment Schedule` ps
|
from `tab{row.voucher_type}` si, `tabPayment Schedule` ps
|
||||||
where
|
where
|
||||||
si.name = ps.parent and
|
si.name = ps.parent and ps.parenttype = '{row.voucher_type}' and
|
||||||
si.name = %s and
|
si.name = %s and
|
||||||
si.is_return = 0
|
si.is_return = 0
|
||||||
order by ps.paid_amount desc, due_date
|
order by ps.paid_amount desc, due_date
|
||||||
|
|||||||
Reference in New Issue
Block a user