Skip to content

Commit

Permalink
fix: Allow backdated repayment cancels for term loans
Browse files Browse the repository at this point in the history
(cherry picked from commit 1377cf4)
  • Loading branch information
deepeshgarg007 authored and mergify[bot] committed Aug 13, 2023
1 parent b2a4175 commit c417365
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,9 @@ def mark_as_unpaid(self):
)

def check_future_accruals(self):
if self.is_term_loan:
return

future_accrual_date = frappe.db.get_value(
"Loan Interest Accrual",
{"posting_date": (">", self.posting_date), "docstatus": 1, "loan": self.against_loan},
Expand Down

0 comments on commit c417365

Please sign in to comment.