FINERACT-1728:Issue with interest posting fix (#2574)

Co-authored-by: Dhaval Maniyar <dhavalmaniyar@Dhavals-MacBook-Pro.local>
This commit is contained in:
logoutdhaval
2022-09-07 15:51:42 +05:30
committed by GitHub
co-authored by Dhaval Maniyar
parent 34aefd5d72
commit 72e78df0fc
@@ -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);
}