FINERACT-1981: Fix reschedule installment for progressive loans

This commit is contained in:
Oleksii Novikov
2025-12-03 10:14:29 +01:00
committed by Adam Saghy
parent 9e32b3718d
commit c50ed19959
10 changed files with 595 additions and 219 deletions
@@ -76,6 +76,11 @@ public class DefaultScheduledDateGenerator implements ScheduledDateGenerator {
private LocalDate applyLoanTermVariations(final LoanApplicationTerms loanApplicationTerms, final LocalDate scheduledDueDate) {
LocalDate modifiedScheduledDueDate = scheduledDueDate;
if (LoanScheduleType.PROGRESSIVE.equals(loanApplicationTerms.getLoanScheduleType())) {
return modifiedScheduledDueDate;
}
// due date changes should be applied only for that dueDate
if (loanApplicationTerms.getLoanTermVariations() != null) {
if (loanApplicationTerms.getLoanTermVariations().hasDueDateVariation(scheduledDueDate)) {