mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-28 15:41:26 +01:00
fix: loan interest accrual date (#35695)
fix: loan interest accrual date (#35695)
fix: loan interest accrual date
---------
Co-authored-by: Abhinav Raut <abhinav.raut@zerodha.com>
Co-authored-by: Deepesh Garg <deepeshgarg6@gmail.com>
(cherry picked from commit 2a24423ad2)
Co-authored-by: Abhinav Raut <abhinavrautcs@gmail.com>
This commit is contained in:
@@ -290,8 +290,8 @@ def get_last_accrual_date(loan, posting_date):
|
|||||||
# interest for last interest accrual date is already booked, so add 1 day
|
# interest for last interest accrual date is already booked, so add 1 day
|
||||||
last_disbursement_date = get_last_disbursement_date(loan, posting_date)
|
last_disbursement_date = get_last_disbursement_date(loan, posting_date)
|
||||||
|
|
||||||
if last_disbursement_date and getdate(last_disbursement_date) > getdate(
|
if last_disbursement_date and getdate(last_disbursement_date) > add_days(
|
||||||
last_interest_accrual_date
|
getdate(last_interest_accrual_date), 1
|
||||||
):
|
):
|
||||||
last_interest_accrual_date = last_disbursement_date
|
last_interest_accrual_date = last_disbursement_date
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user