FINERACT-2412: full term tranche - capitalized income handling

This commit is contained in:
mariiaKraievska
2026-01-28 14:31:06 +01:00
committed by Adam Saghy
parent 4c14715078
commit ba978c591b
2 changed files with 163 additions and 1 deletions
@@ -138,7 +138,8 @@ public final class ProgressiveEMICalculator implements EMICalculator {
.forEach(rp -> rp.setTotalDisbursedAmount(rp.getTotalDisbursedAmount().add(operation.getAmount())));
final int numberOfRepayments = scheduleModel.loanProductRelatedDetail().getNumberOfRepayments();
if (scheduleModel.loanProductRelatedDetail().isAllowFullTermForTranche() && numberOfRepayments > 0) {
if (scheduleModel.loanProductRelatedDetail().isAllowFullTermForTranche() && numberOfRepayments > 0
&& operation.getAction().equals(EmiChangeOperation.Action.DISBURSEMENT)) {
addFullTermTrancheDisbursement(scheduleModel, operation);
} else {
scheduleModel