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


##########
fineract-loan/src/main/java/org/apache/fineract/portfolio/loanaccount/domain/LoanTransactionRepository.java:
##########
@@ -473,4 +473,22 @@ SELECT CASE WHEN COUNT(lt) > 0 THEN true ELSE false END
     boolean existsNonReversedByLoanAndTypeAndDate(@Param("loan") Loan loan, 
@Param("type") LoanTransactionType type,
             @Param("transactionDate") LocalDate transactionDate);
 
+    @Query("""
+            SELECT lt FROM LoanTransaction lt
+            JOIN lt.loanChargesPaid lcp
+            WHERE lt.loan = :loan
+                AND lt.typeOf = :transactionType
+                AND lcp.loanCharge = :loanCharge
+            """)
+    List<LoanTransaction> 
findRepaymentAtDisbursementTransactionsWithCharge(@Param("loan") Loan loan,

Review Comment:
   Done



-- 
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