fix: Allow backdated repayment cancels for term loans

This commit is contained in:
Deepesh Garg
2023-08-12 20:01:04 +05:30
parent 62bc75a917
commit 1377cf4cf1

View File

@@ -246,6 +246,9 @@ class LoanRepayment(AccountsController):
)
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},