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

(cherry picked from commit 6703b7d1ae)
This commit is contained in:
ljain112
2024-10-15 18:38:42 +05:30
committed by Mergify
parent 36fdd540c0
commit fd63ace6c7

View File

@@ -500,7 +500,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,