diff --git a/fineract-provider/src/main/java/org/apache/fineract/organisation/teller/service/TellerWritePlatformServiceJpaImpl.java b/fineract-provider/src/main/java/org/apache/fineract/organisation/teller/service/TellerWritePlatformServiceJpaImpl.java index 98c5a673edd..eba9c8070c5 100644 --- a/fineract-provider/src/main/java/org/apache/fineract/organisation/teller/service/TellerWritePlatformServiceJpaImpl.java +++ b/fineract-provider/src/main/java/org/apache/fineract/organisation/teller/service/TellerWritePlatformServiceJpaImpl.java @@ -353,32 +353,6 @@ private CommandProcessingResult doTransactionForCashier(final Long cashierId, fi final Cashier cashier = this.cashierRepository.findById(cashierId).orElseThrow(() -> new CashierNotFoundException(cashierId)); this.fromApiJsonDeserializer.validateForCashTxnForCashier(command.json()); - - // TODO: can we please remove this whole block?!? this is 20 lines of dead code!!! - final String entityType = command.stringValueOfParameterNamed("entityType"); - if (entityType != null) { - if (entityType.equals("loan account")) { - // TODO : Check if loan account exists - // LoanAccount loan = null; - // if (loan == null) { throw new - // LoanAccountFoundException(entityId); } - } else if (entityType.equals("savings account")) { - // TODO : Check if loan account exists - // SavingsAccount savingsaccount = null; - // if (savingsaccount == null) { throw new - // SavingsAccountNotFoundException(entityId); } - - } - if (entityType.equals("client")) { - // TODO: Check if client exists - // Client client = null; - // if (client == null) { throw new - // ClientNotFoundException(entityId); } - } else { - // TODO : Invalid type handling - } - } - final CashierTransaction cashierTxn = CashierTransaction.fromJson(cashier, command); cashierTxn.setTxnType(txnType.getId());