<receipt>
  <line align="center">{{CompanyName}}</line>
  <line align="center">{{Address1}}</line>
  <line align="center">{{Address2}}</line>
  <line align="center">{{Phone}}</line>
  <line />
  <line />

  <if test="IsDebtor">
    <line>Debitorenrechnung</line>
  </if>

  <columns left="{{ReceiptLabel}}" right="{{DateTime:HH:mm dd.MM.yyyy}}" bold="true" />
  <line>Guests: {{Guests}}</line>
  <line />

  <foreach items="Items" var="item">
    <columns left="{{item.Quantity}}x {{item.Description}}" right="{{item.PriceDisplay}}" wrap="true" />
    <foreach items="item.SubItems" var="sub">
      <line>  - {{sub}}</line>
    </foreach>
  </foreach>

  <line />
  <line align="right">---------</line>
  <line />

  <line align="center" big="true" bold="true">Summe:  {{Total:F2}} {{Currency}}</line>
  <line />

  <if test="TotalInAlternateCurrency">
    <line align="right">{{TotalInAlternateCurrency:F2}} {{AlternateCurrency}}</line>
    <line />
  </if>

  <if test="DiscountInfo">
    <columns left="{{DiscountInfo.Description}}" right="{{DiscountInfo.Amount:F2}} {{DiscountInfo.Currency}}" wrap="true" />
    <line />
  </if>

  <foreach items="SplitPayments" var="sp">
    <line align="right">{{sp.PaymentMethod}}: {{sp.Amount:F2}} {{sp.Currency}}</line>
  </foreach>
  <if test="HasSplitPayments">
    <line />
  </if>

  <columns left="{{PaymentMethod}}" right="{{PaymentAmount:F2}} {{Currency}}" bold="true" />
  <line />

  <foreach items="TaxBreakdown" var="tax">
    <if test="$first">
      <row>
        <col width="10" align="left">MwSt  %</col>
        <col width="10" align="right">  Brutto</col>
        <col width="10" align="right">  Netto</col>
        <col align="right">MwSt</col>
      </row>
    </if>
    <row>
      <col width="10" align="left">{{tax.Category}}:{{tax.Rate}}%</col>
      <col width="10" align="right">{{tax.Gross:F2}} {{tax.Currency}}</col>
      <col width="10" align="right">{{tax.Net:F2}} {{tax.Currency}}</col>
      <col align="right">{{tax.TaxAmount:F2}} {{tax.Currency}}</col>
    </row>
  </foreach>

  <if test="!HasTaxableCategories">
    <line>Nicht mehrwertsteuerpflichtig</line>
  </if>

  <line />

  <columns left="Bedient von:" right="{{WaiterName}}" />
  <if test="Terminal">
    <columns left="Terminal:" right="{{Terminal}}" />
  </if>
  <columns left="Tisch:" right="{{TableNumber}}" />
  <line />
  <line />

  <line align="center">{{VatNumber}}</line>
  <line />

  <foreach items="TerminalReceipts" var="tr">
    <line align="center">{{tr.ReceiptType}}</line>
    <line align="center">{{tr.BookingType}}</line>
    <line align="center">{{tr.PaymentSystem}}</line>
    <line>{{tr.TransactionNumber}}</line>
    <columns left="{{tr.TransactionDateTime:dd.MM.yyyy}}" right="{{tr.TransactionDateTime:HH:mm:ss}}" />
    <columns left="Trm-Id:" right="{{tr.TerminalId}}" />
    <columns left="AID:" right="{{tr.AID}}" />
    <columns left="Trx. Seq-Cnt:" right="{{tr.TransactionSeqCount}}" />
    <columns left="Trx. Ref-No:" right="{{tr.TransactionRefNo}}" />
    <columns left="Auth. Code:" right="{{tr.AuthCode}}" />
    <columns left="Acq-Id:" right="{{tr.AcquirerId}}" />
    <columns left="EFT {{tr.Currency}}:" right="{{tr.EftAmount:F2}}" />
    <columns left="Trinkgeld {{tr.Currency}}:" right="{{tr.TipAmount:F2}}" />
    <columns left="Total-EFT {{tr.Currency}}:" right="{{tr.TotalEftAmount:F2}}" />
    <separator />
    <line />
  </foreach>

  <line align="center">{{ThankYouMessage}}</line>
  <line align="center">{{GoodbyeMessageLine1}}</line>
  <line align="center">{{GoodbyeMessageLine2}}</line>

  <if test="IsDebtor">
    <line />
    <line />
    <line />
    <separator />
    <line>Unterschrift</line>
  </if>
</receipt>
