From 4f8b13ac575fbf05ea1f4210df79c709a14120de Mon Sep 17 00:00:00 2001 From: Deepesh Garg Date: Fri, 15 Dec 2023 12:46:59 +0530 Subject: [PATCH] chore: Loan Interest Accrual post topup --- .../doctype/loan_interest_accrual/loan_interest_accrual.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)", )