FINERACT-2114: Interest rate modification

This commit is contained in:
Janos Meszaros
2024-08-22 13:37:02 +02:00
committed by Adam Saghy
parent 80f4627623
commit 1286b1e72f
8 changed files with 227 additions and 9 deletions
@@ -1890,8 +1890,4 @@ public final class LoanApplicationTerms {
this.variationDays += daysToAdd;
}
public LocalDate getLoanEndDate() {
return loanEndDate;
}
}
@@ -331,7 +331,10 @@ public class LoanRescheduleRequestDataValidator {
}
if (rescheduleFromDate != null) {
installment = loan.getRepaymentScheduleInstallment(rescheduleFromDate);
final boolean isProgressiveLoanSchedule = loan.getLoanProductRelatedDetail()
.getLoanScheduleType() == LoanScheduleType.PROGRESSIVE;
installment = isProgressiveLoanSchedule ? loan.getRelatedRepaymentScheduleInstallment(rescheduleFromDate)
: loan.getRepaymentScheduleInstallment(rescheduleFromDate);
if (installment == null) {
dataValidatorBuilder.reset().failWithCodeNoParameterAddedToErrorCode(