sayhaed commented on code in PR #4885:
URL: https://github.com/apache/fineract/pull/4885#discussion_r2261262069


##########
fineract-savings/src/main/java/org/apache/fineract/portfolio/savings/domain/SavingsAccountRepository.java:
##########
@@ -70,4 +72,25 @@ SavingsAccount 
findByIdAndDepositAccountType(@Param("accountId") Long accountId,
 
     @Query("SELECT sa.id FROM SavingsAccount sa WHERE sa.externalId = 
:externalId")
     Long findIdByExternalId(@Param("externalId") ExternalId externalId);
+
+    @Query("""
+            SELECT new 
org.apache.fineract.portfolio.savings.data.SavingsAccrualData(
+                savings.id,
+                savings.accountNumber,
+                savings.accruedTillDate,
+                CASE WHEN apm.financialAccountType = 18 THEN TRUE ELSE FALSE 
END,

Review Comment:
   The number 18 corresponds to the interest_receivables account type. It is 
used to prevent impacting products that were created before this accounting 
entry existed, ensuring that the workflow operates without issues.



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