public void processRepayment()

in service/src/main/java/org/apache/fineract/cn/teller/service/internal/processor/PortfolioTransactionHandler.java [76:91]


  public void processRepayment(final String tellerCode, final TellerTransaction tellerTransaction) {
    final Optional<TellerEntity> optionalTellerEntity = this.tellerRepository.findByIdentifier(tellerCode);
    if (optionalTellerEntity.isPresent()) {
      final TellerEntity tellerEntity = optionalTellerEntity.get();

      this.portfolioService.processRepayment(
          tellerTransaction.getProductIdentifier(),
          tellerTransaction.getProductCaseIdentifier(),
          tellerEntity.getTellerAccountIdentifier(),
          tellerTransaction.getAmount()
      );

    } else {
      throw ServiceException.notFound("Teller {0} not found." , tellerCode);
    }
  }