alberto-art3ch commented on code in PR #3752:
URL: https://github.com/apache/fineract/pull/3752#discussion_r1498360099


##########
fineract-provider/src/main/java/org/apache/fineract/accounting/journalentry/service/AccountingProcessorHelper.java:
##########
@@ -573,6 +574,27 @@ public void 
createCashBasedJournalEntriesAndReversalsForSavingsTax(final Office
                 paymentTypeId, savingsId, transactionId, transactionDate, 
amount, isReversal);
     }
 
+    public void 
createAccrualBasedJournalEntriesAndReversalsForSavingsTax(final Office office, 
final String currencyCode,
+            final AccrualAccountsForSavings accountTypeToBeDebited, final 
AccrualAccountsForSavings accountTypeToBeCredited,
+            final Long savingsProductId, final Long paymentTypeId, final Long 
savingsId, final String transactionId,
+            final LocalDate transactionDate, final BigDecimal amount, final 
Boolean isReversal, final List<TaxPaymentDTO> taxDetails) {
+
+        for (TaxPaymentDTO taxPaymentDTO : taxDetails) {
+            if (taxPaymentDTO.getAmount() != null) {
+                if (taxPaymentDTO.getCreditAccountId() == null) {
+                    
createCashBasedCreditJournalEntriesAndReversalsForSavings(office, currencyCode, 
accountTypeToBeCredited.getValue(),

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