Skip to content

Commit

Permalink
fix: do not check for payment terms details for return invoices.
Browse files Browse the repository at this point in the history
  • Loading branch information
ljain112 committed Oct 15, 2024
1 parent 6087a57 commit 6703b7d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,8 @@ def get_payment_terms(self, row):
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,
Expand Down

0 comments on commit 6703b7d

Please sign in to comment.