From 9019d6f0a7383fc100999404a337bc78d38aba87 Mon Sep 17 00:00:00 2001 From: Brian Muhimbura Date: Sun, 22 Dec 2024 22:16:43 +0300 Subject: [PATCH] feature/FBR-741 (#1424) * FBR-741 * FBR-742-FORECLOSURE PROJECTION * FBR-742-FORECLOSURE PROJECTION * FBR-742-FORECLOSURE PROJECTION * FBR-742-FORECLOSURE PROJECTION --- .../loanaccount/service/LoanReadPlatformServiceImpl.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/service/LoanReadPlatformServiceImpl.java b/fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/service/LoanReadPlatformServiceImpl.java index 77169a3538..20fafd7955 100644 --- a/fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/service/LoanReadPlatformServiceImpl.java +++ b/fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/service/LoanReadPlatformServiceImpl.java @@ -2432,7 +2432,8 @@ public LoanTransactionData retrieveLoanForeclosureTemplate(final Long loanId, fi this.context.authenticatedUser(); final Loan loan = this.loanRepositoryWrapper.findOneWithNotFoundDetection(loanId, true); - if (!isProjection) loan.validateForForeclosure(transactionDate); + if (!Boolean.TRUE.equals(isProjection)) + loan.validateForForeclosure(transactionDate); final MonetaryCurrency currency = loan.getCurrency(); final ApplicationCurrency applicationCurrency = this.applicationCurrencyRepository.findOneWithNotFoundDetection(currency);