Skip to content

Commit

Permalink
Merge pull request #1342 from fiterlatam/fix/FSF-82-QA
Browse files Browse the repository at this point in the history
fix/FSF-82-QA
  • Loading branch information
BrianMuhimbura authored Dec 5, 2024
2 parents 7ed3078 + 84af7d5 commit 7c73468
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.Objects;
import java.util.Set;
import javax.persistence.PersistenceException;
import org.apache.commons.lang3.ObjectUtils;
Expand Down Expand Up @@ -158,7 +157,6 @@
import org.apache.fineract.portfolio.loanproduct.LoanProductConstants;
import org.apache.fineract.portfolio.loanproduct.data.LoanProductData;
import org.apache.fineract.portfolio.loanproduct.domain.LoanProduct;
import org.apache.fineract.portfolio.loanproduct.domain.LoanProductOwnerType;
import org.apache.fineract.portfolio.loanproduct.domain.LoanProductRelatedDetail;
import org.apache.fineract.portfolio.loanproduct.domain.LoanProductRepository;
import org.apache.fineract.portfolio.loanproduct.domain.LoanTransactionProcessingStrategy;
Expand Down Expand Up @@ -2654,8 +2652,7 @@ public CommandProcessingResult approveApplication(final Long loanId, final JsonC
}

LocalDate deriveFirstRepaymentDate;
if (loan.getExpectedFirstRepaymentOnDate() != null
&& Objects.equals(loan.getLoanProduct().getOwnerType(), LoanProductOwnerType.INDIVIDUAL.getValue())) {
if (loan.getExpectedFirstRepaymentOnDate() != null) {
deriveFirstRepaymentDate = loan.getExpectedFirstRepaymentOnDate();
} else {
deriveFirstRepaymentDate = loanScheduleAssembler.deriveFirstRepaymentDate(loan, expectedDisbursementDate, calendar);
Expand Down

0 comments on commit 7c73468

Please sign in to comment.