From 72e78df0fc892f5ca6b771428630c75960bfbae4 Mon Sep 17 00:00:00 2001 From: logoutdhaval <100835289+logoutdhaval@users.noreply.github.com> Date: Wed, 7 Sep 2022 15:51:42 +0530 Subject: [PATCH] FINERACT-1728:Issue with interest posting fix (#2574) Co-authored-by: Dhaval Maniyar --- .../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); }