diff --git a/fineract-loan/src/main/java/org/apache/fineract/portfolio/loanaccount/domain/Loan.java b/fineract-loan/src/main/java/org/apache/fineract/portfolio/loanaccount/domain/Loan.java index baf97c99ce7..8293e2a11bf 100644 --- a/fineract-loan/src/main/java/org/apache/fineract/portfolio/loanaccount/domain/Loan.java +++ b/fineract-loan/src/main/java/org/apache/fineract/portfolio/loanaccount/domain/Loan.java @@ -114,7 +114,6 @@ import org.apache.fineract.portfolio.loanaccount.domain.transactionprocessor.LoanRepaymentScheduleTransactionProcessor; import org.apache.fineract.portfolio.loanaccount.domain.transactionprocessor.LoanRepaymentScheduleTransactionProcessor.TransactionCtx; import org.apache.fineract.portfolio.loanaccount.domain.transactionprocessor.MoneyHolder; -import org.apache.fineract.portfolio.loanaccount.exception.ExceedingTrancheCountException; import org.apache.fineract.portfolio.loanaccount.exception.InvalidLoanStateTransitionException; import org.apache.fineract.portfolio.loanaccount.exception.InvalidLoanTransactionTypeException; import org.apache.fineract.portfolio.loanaccount.exception.InvalidRefundDateException; diff --git a/fineract-loan/src/main/java/org/apache/fineract/portfolio/loanaccount/serialization/LoanApplicationTransitionApiJsonValidator.java b/fineract-loan/src/main/java/org/apache/fineract/portfolio/loanaccount/serialization/LoanApplicationTransitionApiJsonValidator.java index b9610198dc1..a395d7b26bd 100644 --- a/fineract-loan/src/main/java/org/apache/fineract/portfolio/loanaccount/serialization/LoanApplicationTransitionApiJsonValidator.java +++ b/fineract-loan/src/main/java/org/apache/fineract/portfolio/loanaccount/serialization/LoanApplicationTransitionApiJsonValidator.java @@ -21,7 +21,6 @@ import com.google.gson.JsonElement; import com.google.gson.reflect.TypeToken; import java.lang.reflect.Type; -import java.math.BigDecimal; import java.time.LocalDate; import java.util.ArrayList; import java.util.Arrays; @@ -56,7 +55,6 @@ private void throwExceptionIfValidationWarningsExist(final List> assembleLoanApproval(AppUser currentUser, BigDecimal approvedLoanAmount = command.bigDecimalValueOfParameterNamed(LoanApiConstants.approvedLoanAmountParameterName); if (approvedLoanAmount != null) { /* - * All the calculations are done based on the principal amount, so it is necessary to set principal - * amount to approved amount + * All the calculations are done based on the principal amount, so it is necessary to set principal amount + * to approved amount */ loan.setApprovedPrincipal(approvedLoanAmount); loan.getLoanRepaymentScheduleDetail().setPrincipal(approvedLoanAmount); @@ -1446,8 +1446,7 @@ public Pair> assembleLoanApproval(AppUser currentUser, if (!actualChanges.isEmpty()) { if (actualChanges.containsKey(LoanApiConstants.approvedLoanAmountParameterName) - || actualChanges.containsKey("recalculateLoanSchedule") - || actualChanges.containsKey("expectedDisbursementDate")) { + || actualChanges.containsKey("recalculateLoanSchedule") || actualChanges.containsKey("expectedDisbursementDate")) { loan.regenerateRepaymentSchedule(loanUtilService.buildScheduleGeneratorDTO(loan, null)); } }