Skip to content

Commit

Permalink
Merge pull request #1381 from fiterlatam/SU-490-update
Browse files Browse the repository at this point in the history
[SU-490]Adelanto de pago con período de gracia / Repayment with Grace…
  • Loading branch information
oluexpert99 authored Dec 11, 2024
2 parents ffec10d + f1ffeed commit 5fccff6
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3114,6 +3114,11 @@ private LoanScheduleDTO rescheduleNextInstallmentsForProgressiveLoans(final Math
processInstallmentsInstallments = fetchRetainedInstallmentsForProgressiveLoans(loan.getRepaymentScheduleInstallments(),
rescheduleFrom, currency);
}
// if processed installements is empty , check for graced installments
if (processInstallmentsInstallments.isEmpty()) {
processInstallmentsInstallments = loan.getRepaymentScheduleInstallments().stream()
.filter(LoanRepaymentScheduleInstallment::isFullyGraced).toList();
}
final List<LoanRepaymentScheduleInstallment> newRepaymentScheduleInstallments = new ArrayList<>();

// Block process the installment and creates the period if it falls
Expand Down

0 comments on commit 5fccff6

Please sign in to comment.