Skip to content

Commit

Permalink
fix: Simultaneous BPLOC Payments
Browse files Browse the repository at this point in the history
  • Loading branch information
deepeshgarg007 committed Oct 21, 2024
1 parent fc02be4 commit 62b0dfc
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -847,9 +847,10 @@ 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()
accrual_doc = frappe.get_doc("Loan Interest Accrual", accrual.name, for_update=True)
if accrual_doc.docstatus == 1:
accrual_doc.flags.ignore_links = True
accrual_doc.cancel()

if is_npa:
interest_amount = 0
Expand Down

0 comments on commit 62b0dfc

Please sign in to comment.