mariiaKraievska commented on code in PR #5486:
URL: https://github.com/apache/fineract/pull/5486#discussion_r2803144363


##########
fineract-loan/src/main/java/org/apache/fineract/portfolio/loanaccount/domain/LoanRepository.java:
##########
@@ -279,4 +279,10 @@ List<Loan> findLoansForAddAccrual(@Param("accountingType") 
AccountingRuleType ac
     @Query(FIND_ALL_LOANS_BEHIND_ON_DISBURSEMENT_DATE)
     List<COBIdAndLastClosedBusinessDate> 
findAllLoansBehindOnDisbursementDate(@Param("cobBusinessDate") LocalDate 
cobBusinessDate,
             @Param("loanIds") List<Long> loanIds, @Param("loanStatuses") 
Collection<LoanStatus> loanStatuses);
+
+    @Query("SELECT CASE WHEN COUNT(l) > 0 THEN TRUE ELSE FALSE END FROM Loan l 
WHERE l.id = :loanId and l.loanRepaymentScheduleDetail.loanScheduleType = 
org.apache.fineract.portfolio.loanaccount.loanschedule.domain.LoanScheduleType.PROGRESSIVE")

Review Comment:
   Should we use import instead?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to