removed postJournalEntries call for close

This commit is contained in:
Pramod Nuthakki
2013-08-27 15:51:10 +05:30
parent 99bddc9f27
commit 52be32fbdf
@@ -400,11 +400,7 @@ public class SavingsAccountWritePlatformServiceJpaRepositoryImpl implements Savi
final AppUser user = this.context.authenticatedUser();
this.savingsAccountTransactionDataValidator.validateClosing(command);
final SavingsAccount account = this.savingAccountAssembler.assembleFrom(savingsId);
final List<Long> existingTransactionIds = new ArrayList<Long>();
final List<Long> existingReversedTransactionIds = new ArrayList<Long>();
final Map<String, Object> changes = account.close(user, command, DateUtils.getLocalDateOfTenant());
if (!changes.isEmpty()) {
this.savingAccountRepository.save(account);
@@ -416,8 +412,6 @@ public class SavingsAccountWritePlatformServiceJpaRepositoryImpl implements Savi
}
}
postJournalEntries(account, existingTransactionIds, existingReversedTransactionIds);
return new CommandProcessingResultBuilder() //
.withEntityId(savingsId) //
.withOfficeId(account.officeId()) //