FINERACT-352 fix showing penalties after last loan's installment

This commit is contained in:
lionel
2017-01-12 11:11:50 -03:00
parent 4fb7794a45
commit 392dff0cd1
@@ -2375,7 +2375,6 @@ public class LoanWritePlatformServiceJpaRepositoryImpl implements LoanWritePlatf
LoanRepaymentScheduleInstallment newEntry = new LoanRepaymentScheduleInstallment(loan, installments.size() + 1,
lastInstallment.getDueDate(), lastChargeDate, principal, interest, feeCharges, penaltyCharges,
recalculatedInterestComponent, compoundingDetails);
installments.add(newEntry);
loan.addLoanRepaymentScheduleInstallment(newEntry);
}
}
@@ -2960,4 +2959,4 @@ public class LoanWritePlatformServiceJpaRepositoryImpl implements LoanWritePlatf
}
}
}
}