Skip to content

Commit

Permalink
SU-530 spotless check applied
Browse files Browse the repository at this point in the history
  • Loading branch information
Faheem Ahmad committed Dec 21, 2024
1 parent 7553a66 commit ec0e352
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -333,12 +333,13 @@ private LoanScheduleModel generate(final MathContext mc, final LoanApplicationTe
Integer ignoreInstallment = loanApplicationTerms.getNumberOfInstallmentsToIgnore();
// SU-530 commenting below code for now because the implementation is not correct.
// 1. Grace interest should not be added to outstanding balance.
// 2. Implementation of checkbox on product level to calculate interest from disbursement date or from grace period end date is violated here
// 2. Implementation of checkbox on product level to calculate interest from disbursement date or from grace
// period end date is violated here
// because this check has never been implemented. For now cumulatingInterestPaymentDueToGrace should be 0
// if (ignoreInstallment != null && ignoreInstallment < periodNumber) {
// outstandingBalance = outstandingBalance.plus(cumulatingInterestPaymentDueToGrace);
// cumulatingInterestPaymentDueToGrace = Money.zero(currency);
// }
// if (ignoreInstallment != null && ignoreInstallment < periodNumber) {
// outstandingBalance = outstandingBalance.plus(cumulatingInterestPaymentDueToGrace);
// cumulatingInterestPaymentDueToGrace = Money.zero(currency);
// }
cumulatingInterestPaymentDueToGrace = Money.zero(currency);
final TreeMap<LocalDate, Money> principalVariation = mergeVariationsToMap(loanApplicationTerms, scheduleParams);
final Map<LocalDate, Money> compoundingMap = scheduleParams.getCompoundingMap();
Expand Down

0 comments on commit ec0e352

Please sign in to comment.