adamsaghy commented on code in PR #6109:
URL: https://github.com/apache/fineract/pull/6109#discussion_r3550161398


##########
fineract-working-capital-loan/src/main/java/org/apache/fineract/portfolio/workingcapitalloan/repository/WorkingCapitalLoanTransactionRepository.java:
##########
@@ -89,4 +90,11 @@ BigDecimal sumBreachRelevantPaid(@Param("wcLoanId") Long 
wcLoanId,
             @Param("transactionTypes") Collection<LoanTransactionType> 
transactionTypes, @Param("fromDate") LocalDate fromDate,
             @Param("toDate") LocalDate toDate);
 
+    @Query("""
+            SELECT t.transactionDate, SUM(t.transactionAmount)
+            FROM WorkingCapitalLoanTransaction t
+            WHERE t.reversed = FALSE
+            GROUP BY t.transactionDate
+            """)
+    List<TransactionDateAndAmountHolder> fetchTransactionDateAndAmount();

Review Comment:
   Also nice catch: seems like i got distracted yesterday to miss all these 
filters :D 



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