<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>

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


	<foreach items="Items" var="item">
		<row>
			<col align="right" width="4">{{item.Quantity}}x </col>
			<col align="left" wrap="true">{{item.Description}}</col>
			<col align="right">{{item.PriceDisplay}}</col>
		</row>
		<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">
		<row>
			<col align="left" wrap="true">{{DiscountInfo.Description}}</col>
			<col align="right">{{DiscountInfo.Amount:F2}} {{DiscountInfo.Currency}}</col>
		</row>
		<line />
	</if>

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

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

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

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

	<line />

	<row>
		<col align="left">Bedient von:</col>
		<col align="right">{{WaiterName}}</col>
	</row>
	<if test="Terminal">
		<row>
			<col align="left">Terminal:</col>
			<col align="right">{{Terminal}}</col>
		</row>
	</if>
	<row>
		<col align="left">Tisch:</col>
		<col align="right">{{TableNumber}}</col>
	</row>
	<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>
		<row>
			<col align="left">{{tr.TransactionDateTime:dd.MM.yyyy}}</col>
			<col align="right">{{tr.TransactionDateTime:HH:mm:ss}}</col>
		</row>
		<row>
			<col align="left">Trm-Id:</col>
			<col align="right">{{tr.TerminalId}}</col>
		</row>
		<row>
			<col align="left">AID:</col>
			<col align="right">{{tr.AID}}</col>
		</row>
		<row>
			<col align="left">Trx. Seq-Cnt:</col>
			<col align="right">{{tr.TransactionSeqCount}}</col>
		</row>
		<row>
			<col align="left">Trx. Ref-No:</col>
			<col align="right">{{tr.TransactionRefNo}}</col>
		</row>
		<row>
			<col align="left">Auth. Code:</col>
			<col align="right">{{tr.AuthCode}}</col>
		</row>
		<row>
			<col align="left">Acq-Id:</col>
			<col align="right">{{tr.AcquirerId}}</col>
		</row>
		<row>
			<col align="left">EFT {{tr.Currency}}:</col>
			<col align="right">{{tr.EftAmount:F2}}</col>
		</row>
		<row>
			<col align="left">Trinkgeld {{tr.Currency}}:</col>
			<col align="right">{{tr.TipAmount:F2}}</col>
		</row>
		<row>
			<col align="left">Total-EFT {{tr.Currency}}:</col>
			<col align="right">{{tr.TotalEftAmount:F2}}</col>
		</row>
		<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>
