This is an automated email from the ASF dual-hosted git repository.

manojvm pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/fineract.git


The following commit(s) were added to refs/heads/develop by this push:
     new 72e78df0f FINERACT-1728:Issue with interest posting fix (#2574)
72e78df0f is described below

commit 72e78df0fc892f5ca6b771428630c75960bfbae4
Author: logoutdhaval <[email protected]>
AuthorDate: Wed Sep 7 15:51:42 2022 +0530

    FINERACT-1728:Issue with interest posting fix (#2574)
    
    Co-authored-by: Dhaval Maniyar <[email protected]>
---
 .../savings/service/SavingsAccountInterestPostingServiceImpl.java     | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git 
a/fineract-provider/src/main/java/org/apache/fineract/portfolio/savings/service/SavingsAccountInterestPostingServiceImpl.java
 
b/fineract-provider/src/main/java/org/apache/fineract/portfolio/savings/service/SavingsAccountInterestPostingServiceImpl.java
index 41137ca74..344dd2bc0 100644
--- 
a/fineract-provider/src/main/java/org/apache/fineract/portfolio/savings/service/SavingsAccountInterestPostingServiceImpl.java
+++ 
b/fineract-provider/src/main/java/org/apache/fineract/portfolio/savings/service/SavingsAccountInterestPostingServiceImpl.java
@@ -68,9 +68,7 @@ public class SavingsAccountInterestPostingServiceImpl 
implements SavingsAccountI
 
         if (backdatedTxnsAllowedTill && 
savingsAccountData.getSummary().getInterestPostedTillDate() != null) {
             interestPostedToDate = Money.of(savingsAccountData.getCurrency(), 
savingsAccountData.getSummary().getTotalInterestPosted());
-            SavingsAccountTransactionData savingsAccountTransactionData = 
retrieveLastTransactions(savingsAccountData);
-            LocalDate lastTransactionDate = 
savingsAccountTransactionData.getTransactionDate();
-            
savingsAccountData.setStartInterestCalculationDate(lastTransactionDate.plusDays(1));
+            
savingsAccountData.setStartInterestCalculationDate(savingsAccountData.getSummary().getInterestPostedTillDate());
         } else {
             
savingsAccountData.setStartInterestCalculationDate(startInterestDate);
         }

Reply via email to