<?php
/**
 * @copyright (c) Kufer Software GmbH, Oderstraße 7, D-84453 Mühldorf
 */

namespace Kufer\Web\KuferTools\Dozent\KursUebersicht\Detailsreiter\Termine\TerminAbrechnen;

class TerminAbrechnenNachAbsendenController extends TerminAbrechnenController
{
  private $useCaseResponse;

  public function __construct($pUseCaseResponse)
  {
    $this->useCaseResponse = $pUseCaseResponse;
  }

  protected function getRequestObj()
  {
    $requestObj = new TerminAbrechnenRequest();
    $requestObj->knr = $this->useCaseResponse->knr;
    $requestObj->kursTagIds = $this->useCaseResponse->kursTagIds;
    $requestObj->kursTagIdsStr = $this->useCaseResponse->kursTagIdsStr;
    $requestObj->readonly = $this->useCaseResponse->readonly;
    $requestObj->mailsVersandt = $this->useCaseResponse->mailsVersandt;

    
    $requestObj->abrechnung = $this->useCaseResponse->abrechnung;
    $requestObj->honorarSatz1 = $this->useCaseResponse->honorarSatz1;
    $requestObj->honorarSatz2 = $this->useCaseResponse->honorarSatz2;
    $requestObj->honorarSatz3 = $this->useCaseResponse->honorarSatz3;
    $requestObj->stundenAnzahl1 = $this->useCaseResponse->stundenAnzahl1;
    $requestObj->stundenAnzahl2 = $this->useCaseResponse->stundenAnzahl2;
    $requestObj->stundenAnzahl3 = $this->useCaseResponse->stundenAnzahl3;
    $requestObj->honorarBetrag1 = $this->useCaseResponse->honorarBetrag1;
    $requestObj->honorarBetrag2 = $this->useCaseResponse->honorarBetrag2;
    $requestObj->honorarBetrag3 = $this->useCaseResponse->honorarBetrag3;
    $requestObj->honorarGesamt = $this->useCaseResponse->honorarGesamt;
    $requestObj->iban = $this->useCaseResponse->iban;
    $requestObj->bic = $this->useCaseResponse->bic;
    $requestObj->bankbez = $this->useCaseResponse->bankbez;
    $requestObj->steuernr = $this->useCaseResponse->steuernr;
    $requestObj->bemerkung = $this->useCaseResponse->bemerkung;
    $requestObj->isAbgesandt = true;

    return $requestObj;
  }
}