adamsaghy commented on code in PR #3973:
URL: https://github.com/apache/fineract/pull/3973#discussion_r1680881448
##########
fineract-provider/src/main/java/org/apache/fineract/accounting/journalentry/service/AccrualBasedAccountingProcessorForSavings.java:
##########
@@ -182,9 +182,16 @@ else if
(savingsTransactionDTO.getTransactionType().isInterestPosting()) {
else if (savingsTransactionDTO.getTransactionType().isAccrual()) {
// Post journal entry for Accrual Recognition
if
(savingsTransactionDTO.getAmount().compareTo(BigDecimal.ZERO) > 0) {
-
this.helper.createCashBasedJournalEntriesAndReversalsForSavings(office,
currencyCode,
-
AccrualAccountsForSavings.INTEREST_ON_SAVINGS.getValue(),
AccrualAccountsForSavings.INTEREST_PAYABLE.getValue(),
- savingsProductId, paymentTypeId, savingsId,
transactionId, transactionDate, amount, isReversal);
+ if (feePayments.size() > 0 || penaltyPayments.size() > 0) {
Review Comment:
Seems you are trying to support fees and penalties, so i reckon the PR
should involve accrual handling for them as well.
--
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]