mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-22 22:49:19 +00:00
Merge pull request #36624 from frappe/mergify/bp/version-13-hotfix/pr-36614
fix: Allow backdated repayment cancels for term loans (#36614)
This commit is contained in:
@@ -250,6 +250,9 @@ class LoanRepayment(AccountsController):
|
|||||||
)
|
)
|
||||||
|
|
||||||
def check_future_accruals(self):
|
def check_future_accruals(self):
|
||||||
|
if self.is_term_loan:
|
||||||
|
return
|
||||||
|
|
||||||
future_accrual_date = frappe.db.get_value(
|
future_accrual_date = frappe.db.get_value(
|
||||||
"Loan Interest Accrual",
|
"Loan Interest Accrual",
|
||||||
{"posting_date": (">", self.posting_date), "docstatus": 1, "loan": self.against_loan},
|
{"posting_date": (">", self.posting_date), "docstatus": 1, "loan": self.against_loan},
|
||||||
|
|||||||
Reference in New Issue
Block a user