sayhaed commented on code in PR #4885: URL: https://github.com/apache/fineract/pull/4885#discussion_r2261259284
########## fineract-savings/src/main/java/org/apache/fineract/portfolio/savings/domain/SavingsAccount.java: ########## @@ -939,6 +946,20 @@ private boolean hasOverdraftInterestCalculation() { return isAllowOverdraft() && !MathUtil.isEmpty(getOverdraftLimit()) && !MathUtil.isEmpty(nominalAnnualInterestRateOverdraft); } + public List<SavingsAccountTransaction> retreiveOrderedAccrualTransactions() { + final List<SavingsAccountTransaction> listOfTransactionsSorted = retrieveListOfTransactions(); + + final List<SavingsAccountTransaction> orderedAccrualTransactions = new ArrayList<>(); + + for (final SavingsAccountTransaction transaction : listOfTransactionsSorted) { + if (transaction.isAccrual()) { Review Comment: We are using this for accrual transactions and interval validations. If the period is different, it ensures that it is not posted. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@fineract.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org