Skip to content

Commit

Permalink
fix: term_loan_accrual_pending (#117)
Browse files Browse the repository at this point in the history
  • Loading branch information
anandbaburajan authored Oct 27, 2023
1 parent 05ab366 commit 4f343f0
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,10 @@ def term_loan_accrual_pending(date, loan=None):
filters = {"payment_date": ("<=", date), "is_accrued": 0}

if loan:
filters.update({"parent": loan})
loan_repayment_schedule = frappe.db.get_value(
"Loan Repayment Schedule", {"loan": loan, "status": "Active"}
)
filters.update({"parent": loan_repayment_schedule})

pending_accrual = frappe.db.get_value("Repayment Schedule", filters)

Expand Down

0 comments on commit 4f343f0

Please sign in to comment.