fix: do not check for payment terms details for return invoices.

This commit is contained in:
ljain112
2024-10-15 18:38:42 +05:30
parent 6087a57b0c
commit 6703b7d1ae

View File

@@ -505,7 +505,8 @@ class ReceivablePayableReport:
from `tab{row.voucher_type}` si, `tabPayment Schedule` ps
where
si.name = ps.parent and
si.name = %s
si.name = %s and
si.is_return = 0
order by ps.paid_amount desc, due_date
""",
row.voucher_no,