FINERACT-2280: Interest pause breaks repayment schedule while loan is added with interest rate zero

This commit is contained in:
Soma Sörös
2025-05-16 14:25:06 +02:00
committed by Adam Saghy
parent cd03dc020e
commit 9ab08ec428
3 changed files with 87 additions and 17 deletions
@@ -184,6 +184,11 @@ public class InterestPauseWritePlatformServiceImpl implements InterestPauseWrite
"Interest pause is only supported for progressive loans.");
}
if (!loan.isInterestBearing()) {
throw new GeneralPlatformDomainRuleException("loan.must.be.interest.bearing",
"Interest pause is only supported for interest bearing loans.");
}
if (!loan.getLoanRepaymentScheduleDetail().isInterestRecalculationEnabled()) {
throw new GeneralPlatformDomainRuleException("loan.must.have.recalculate.interest.enabled",
"Interest pause is only supported for loans with recalculate interest enabled.");