FINERACT-1450 -fix-for-skipping-instalment

This commit is contained in:
Manoj
2021-12-18 09:50:39 +08:00
committed by Petri Tuomola
parent 5dbde0f2ed
commit eade76ab25
@@ -2237,7 +2237,7 @@ public abstract class AbstractLoanScheduleGenerator implements LoanScheduleGener
do {
actualRepaymentDate = this.scheduledDateGenerator.generateNextRepaymentDate(actualRepaymentDate,
loanApplicationTerms, isFirstRepayment);
if (actualRepaymentDate.isAfter(rescheduleFrom)) {
if (actualRepaymentDate.isAfter(rescheduleFrom) || actualRepaymentDate.isEqual(rescheduleFrom)) {
actualRepaymentDate = lastInstallmentDate;
}
isFirstRepayment = false;