From ec0e35214857dd9280f69b50627ac4856fd0e90e Mon Sep 17 00:00:00 2001 From: Faheem Ahmad Date: Sun, 22 Dec 2024 02:36:29 +0500 Subject: [PATCH] SU-530 spotless check applied --- .../AbstractCumulativeLoanScheduleGenerator.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/loanschedule/domain/AbstractCumulativeLoanScheduleGenerator.java b/fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/loanschedule/domain/AbstractCumulativeLoanScheduleGenerator.java index df3036feb5b..70213e3a94e 100644 --- a/fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/loanschedule/domain/AbstractCumulativeLoanScheduleGenerator.java +++ b/fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/loanschedule/domain/AbstractCumulativeLoanScheduleGenerator.java @@ -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 principalVariation = mergeVariationsToMap(loanApplicationTerms, scheduleParams); final Map compoundingMap = scheduleParams.getCompoundingMap();