FINERACT-2421: No interest, no interest accrual calculation needed

This commit is contained in:
Adam Saghy
2026-01-23 17:07:58 +01:00
committed by Arnold Gálovics
parent ddc82f1b68
commit 4ebff33792
@@ -470,6 +470,10 @@ public class LoanAccrualsProcessingServiceImpl implements LoanAccrualsProcessing
private void addInterestAccrual(@NonNull final Loan loan, @NonNull final LocalDate tillDate,
final LoanScheduleGenerator scheduleGenerator, @NonNull final LoanRepaymentScheduleInstallment installment,
@NonNull final AccrualPeriodsData accrualPeriods) {
// No interest, no need for calculations
if (!loan.isInterestBearing()) {
return;
}
final LoanTransaction reAgeTransaction = loan.findReAgeTransaction();
final LoanReAgeParameter loanReAgeParameter = reAgeTransaction != null ? reAgeTransaction.getLoanReAgeParameter() : null;