adamsaghy commented on code in PR #4885: URL: https://github.com/apache/fineract/pull/4885#discussion_r2272698803
########## 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: Its better for readability ;) -- 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