JohnAlva commented on code in PR #4904:
URL: https://github.com/apache/fineract/pull/4904#discussion_r2250049822


##########
fineract-savings/src/main/java/org/apache/fineract/portfolio/savings/domain/SavingsAccount.java:
##########
@@ -3847,4 +3849,22 @@ public 
List<SavingsAccountTransactionDetailsForPostingPeriod> toSavingsAccountTr
                 .map(transaction -> 
transaction.toSavingsAccountTransactionDetailsForPostingPeriod(this.currency, 
this.allowOverdraft))
                 .toList();
     }
+
+    public void accrualsForSavingsReverse(SavingsAccountTransactionDTO 
transactionDTO, final boolean backdatedTxnsAllowedTill) {

Review Comment:
   This method reverts all accrual transactions on or after the given 
transaction date. It’s used when a backdated transaction is added (like a late 
deposit), so previously posted accruals can be recalculated correctly.
   
   --Example:-- If a deposit is backdated to July 15 and accruals were posted 
on July 15, 20, and 25, those accruals will be reversed to allow correct 
recomputation.



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