diff --git a/erpnext/loan_management/doctype/loan_interest_accrual/loan_interest_accrual.py b/erpnext/loan_management/doctype/loan_interest_accrual/loan_interest_accrual.py index a6b91806e78..6e468131461 100644 --- a/erpnext/loan_management/doctype/loan_interest_accrual/loan_interest_accrual.py +++ b/erpnext/loan_management/doctype/loan_interest_accrual/loan_interest_accrual.py @@ -306,7 +306,7 @@ def get_last_accrual_date(loan, posting_date): def get_last_disbursement_date(loan, posting_date): last_disbursement_date = frappe.db.get_value( "Loan Disbursement", - {"docstatus": 1, "against_loan": loan, "posting_date": ("<", posting_date)}, + {"docstatus": 1, "against_loan": loan, "posting_date": ("<=", posting_date)}, "MAX(posting_date)", )