Skip to content

Commit

Permalink
fix: Savings and deposit accrual transaction in the future
Browse files Browse the repository at this point in the history
  • Loading branch information
Jose Alberto Hernandez authored and alberto-art3ch committed Aug 29, 2024
1 parent e24e77f commit ca18c90
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,9 @@ private void addAccrualTransactions(SavingsAccount savingsAccount, final LocalDa
List<SavingsAccountTransactionDetailsForPostingPeriod> savingsAccountTransactionDetailsForPostingPeriodList = savingsAccount
.toSavingsAccountTransactionDetailsForPostingPeriodList();
for (final LocalDateInterval periodInterval : postingPeriodIntervals) {
if (DateUtils.isDateInTheFuture(periodInterval.endDate())) {
continue;
}
final boolean isUserPosting = (postedAsOnTransactionDates.contains(periodInterval.endDate()));

final PostingPeriod postingPeriod = PostingPeriod.createFrom(periodInterval, periodStartingBalance,
Expand Down

0 comments on commit ca18c90

Please sign in to comment.