From fc02be40910c6908b476d6c11b153d8177898e8b Mon Sep 17 00:00:00 2001 From: Deepesh Garg Date: Mon, 21 Oct 2024 16:35:26 +0530 Subject: [PATCH] fix: Ignore link on accrual reversal --- .../doctype/loan_interest_accrual/loan_interest_accrual.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lending/loan_management/doctype/loan_interest_accrual/loan_interest_accrual.py b/lending/loan_management/doctype/loan_interest_accrual/loan_interest_accrual.py index 3794a1d5..11b74a60 100644 --- a/lending/loan_management/doctype/loan_interest_accrual/loan_interest_accrual.py +++ b/lending/loan_management/doctype/loan_interest_accrual/loan_interest_accrual.py @@ -848,6 +848,7 @@ def reverse_loan_interest_accruals( for accrual in accruals: accrual_doc = frappe.get_doc("Loan Interest Accrual", accrual.name) + accrual_doc.flags.ignore_links = True accrual_doc.cancel() if is_npa: