FINERACT-2421: No interest, no interest accrual calculation needed
This commit is contained in:
committed by
Arnold Gálovics
parent
ddc82f1b68
commit
4ebff33792
+4
@@ -470,6 +470,10 @@ public class LoanAccrualsProcessingServiceImpl implements LoanAccrualsProcessing
|
|||||||
private void addInterestAccrual(@NonNull final Loan loan, @NonNull final LocalDate tillDate,
|
private void addInterestAccrual(@NonNull final Loan loan, @NonNull final LocalDate tillDate,
|
||||||
final LoanScheduleGenerator scheduleGenerator, @NonNull final LoanRepaymentScheduleInstallment installment,
|
final LoanScheduleGenerator scheduleGenerator, @NonNull final LoanRepaymentScheduleInstallment installment,
|
||||||
@NonNull final AccrualPeriodsData accrualPeriods) {
|
@NonNull final AccrualPeriodsData accrualPeriods) {
|
||||||
|
// No interest, no need for calculations
|
||||||
|
if (!loan.isInterestBearing()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
final LoanTransaction reAgeTransaction = loan.findReAgeTransaction();
|
final LoanTransaction reAgeTransaction = loan.findReAgeTransaction();
|
||||||
final LoanReAgeParameter loanReAgeParameter = reAgeTransaction != null ? reAgeTransaction.getLoanReAgeParameter() : null;
|
final LoanReAgeParameter loanReAgeParameter = reAgeTransaction != null ? reAgeTransaction.getLoanReAgeParameter() : null;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user