FINERACT-1728:Issue with interest posting fix (#2574)
Co-authored-by: Dhaval Maniyar <dhavalmaniyar@Dhavals-MacBook-Pro.local>
This commit is contained in:
co-authored by
Dhaval Maniyar
parent
34aefd5d72
commit
72e78df0fc
+1
-3
@@ -68,9 +68,7 @@ public class SavingsAccountInterestPostingServiceImpl implements SavingsAccountI
|
|||||||
|
|
||||||
if (backdatedTxnsAllowedTill && savingsAccountData.getSummary().getInterestPostedTillDate() != null) {
|
if (backdatedTxnsAllowedTill && savingsAccountData.getSummary().getInterestPostedTillDate() != null) {
|
||||||
interestPostedToDate = Money.of(savingsAccountData.getCurrency(), savingsAccountData.getSummary().getTotalInterestPosted());
|
interestPostedToDate = Money.of(savingsAccountData.getCurrency(), savingsAccountData.getSummary().getTotalInterestPosted());
|
||||||
SavingsAccountTransactionData savingsAccountTransactionData = retrieveLastTransactions(savingsAccountData);
|
savingsAccountData.setStartInterestCalculationDate(savingsAccountData.getSummary().getInterestPostedTillDate());
|
||||||
LocalDate lastTransactionDate = savingsAccountTransactionData.getTransactionDate();
|
|
||||||
savingsAccountData.setStartInterestCalculationDate(lastTransactionDate.plusDays(1));
|
|
||||||
} else {
|
} else {
|
||||||
savingsAccountData.setStartInterestCalculationDate(startInterestDate);
|
savingsAccountData.setStartInterestCalculationDate(startInterestDate);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user