The loan repayment schedule is calculating the wrong principal when advance payment is done after the loan reschedule is done.
1. Create a loan product as per the shared screenshot
2. Create a loan account and reschedule any installment and make the payment for the rescheduled date
3. Make an advance payment for an installment (for any installment after the rescheduled installment)
when advance payment is done, the system is changing the principal amount, and in turn, the installment is still not completely paid
because of this, the loan is considered overdue even if the payment is done on/before time.
Please find the example screenshot attached of the issue loan with complete explanation and expected result
please do let me know if you need any more clarification