MIFOSX-1163 - corrected accounting entries

This commit is contained in:
Pramod Nuthakki
2014-05-03 02:04:42 +05:30
parent 3677d4eb53
commit 68216e5652
2 changed files with 2 additions and 0 deletions
@@ -177,6 +177,7 @@ public class DepositAccountWritePlatformServiceJpaRepositoryImpl implements Depo
null, AccountTransferType.ACCOUNT_TRANSFER.getValue(), null, null, null, null, account); null, AccountTransferType.ACCOUNT_TRANSFER.getValue(), null, null, null, null, account);
this.accountTransfersWritePlatformService.transferFunds(accountTransferDTO); this.accountTransfersWritePlatformService.transferFunds(accountTransferDTO);
} }
updateExistingTransactionsDetails(account, existingTransactionIds, existingReversedTransactionIds);
} }
// account.processAccountUponActivation(fmt); // account.processAccountUponActivation(fmt);
@@ -159,6 +159,7 @@ public class SavingsAccountWritePlatformServiceJpaRepositoryImpl implements Savi
if (amountForDeposit.isGreaterThanZero()) { if (amountForDeposit.isGreaterThanZero()) {
this.savingsAccountDomainService.handleDeposit(account, fmt, account.getActivationLocalDate(), this.savingsAccountDomainService.handleDeposit(account, fmt, account.getActivationLocalDate(),
amountForDeposit.getAmount(), null); amountForDeposit.getAmount(), null);
updateExistingTransactionsDetails(account, existingTransactionIds, existingReversedTransactionIds);
} }
account.processAccountUponActivation(); account.processAccountUponActivation();
account.validateAccountBalanceDoesNotBecomeNegative(SavingsAccountTransactionType.PAY_CHARGE.name()); account.validateAccountBalanceDoesNotBecomeNegative(SavingsAccountTransactionType.PAY_CHARGE.name());