[FINERACT-1971] don't send event if the installment is paid

This commit is contained in:
taskain7
2023-10-16 13:31:42 +02:00
committed by Arnold Gálovics
parent c0d0b565cb
commit 4bb9c40cdc
2 changed files with 3 additions and 3 deletions
@@ -81,6 +81,6 @@ public class CheckLoanRepaymentDueBusinessStep implements LoanCOBBusinessStep {
return repaymentDate.minusDays(numberOfDaysBeforeDueDateToRaiseEvent).equals(currentDate)
&& !nonDisbursedStatuses.contains(loan.getStatus())
&& loan.getLoanSummary().getTotalOutstanding().compareTo(BigDecimal.ZERO) > 0
&& repaymentScheduleInstallment.getDue(loan.getCurrency()).isGreaterThanZero();
&& repaymentScheduleInstallment.getTotalOutstanding(loan.getCurrency()).isGreaterThanZero();
}
}