FINERACT-1646-backdated-transaction-available-balance-fix
This commit is contained in:
committed by
Aleksandar Vidakovic
parent
998b3ff289
commit
9000b6e826
+2
-7
@@ -390,13 +390,8 @@ public class SavingsAccountAssembler {
|
||||
for (int i = 0; i < account.getTransactions().size(); i++) {
|
||||
SavingsAccountTransactionData savingsAccountTransaction = account.getTransactions().get(i);
|
||||
removalList.add(savingsAccountTransaction);
|
||||
if ((savingsAccountTransaction.isInterestPostingAndNotReversed()
|
||||
|| savingsAccountTransaction.isOverdraftInterestAndNotReversed())
|
||||
&& !savingsAccountTransaction.isReversalTransaction()) {
|
||||
account.getSummary().setRunningBalanceOnPivotDate(savingsAccountTransaction.getRunningBalance());
|
||||
account.setLastSavingsAccountTransaction(savingsAccountTransaction);
|
||||
break;
|
||||
}
|
||||
account.getSummary().setRunningBalanceOnPivotDate(savingsAccountTransaction.getRunningBalance());
|
||||
account.setLastSavingsAccountTransaction(savingsAccountTransaction);
|
||||
}
|
||||
account.getTransactions().removeAll(removalList);
|
||||
} else {
|
||||
|
||||
-1
@@ -264,7 +264,6 @@ public class SavingsAccountReadPlatformServiceImpl implements SavingsAccountRead
|
||||
public List<SavingsAccountData> retrieveAllSavingsDataForInterestPosting(final boolean backdatedTxnsAllowedTill, final int pageSize,
|
||||
final Integer status, final Long maxSavingsId) {
|
||||
LocalDate yesterday = DateUtils.getBusinessLocalDate().minusDays(1);
|
||||
|
||||
String sql = "select " + this.savingAccountMapperForInterestPosting.schema()
|
||||
+ "join (select a.id from m_savings_account a where a.id > ? and a.status_enum = ? limit ?) b on b.id = sa.id ";
|
||||
if (backdatedTxnsAllowedTill) {
|
||||
|
||||
Reference in New Issue
Block a user