<table class="order">

	<thead>

		<tr>
			<th class="pos">Pos.</th>
			<th class="quantity">St.</th>
			<th class="item">Beschreibung/Art-Nr.</th>
			<th class="tax_rate">MwSt.</th>
			<th class="price">St&uuml;ckpreis</th>
			<th class="total">Gesamtpreis</th>
		</tr>

		<tr>
			<th colspan="6"><hr /></th>
		</tr>

	</thead>

	<tbody>
	{if $order_items}
		{foreach from=$order_items item=item}
			<tr class="item_data_row">

				<td class="pos">
					{$item@index + 1}
				</td>

				<td class="quantity">
					<span>{$item->amount}</span>
				</td>

				<td class="item">
					<span>{$item->item_name}</span>
					<div>
					{if $item->attribute_7 && $item->item_number != $item->attribute_7}
						Art-Nr.:{$item->attribute_7}&nbsp;&nbsp;&nbsp;({$template_text.item_details.old_item_number_title} {$item->item_number})
					{else}
						Art-Nr.: {$item->item_number}
					{/if}
					</div>
				</td>

				<td class="tax_rate">
					<span>{$item->tax_rate} %</span>
				</td>

				<td class="price">
					{if $showtaxes == '0'}
					<span>{$item->price|number_format:2:",":" "} &euro;</span>
					{else}
					<span>{$item->price_with_taxes|number_format:2:",":" "} &euro;</span>
					{/if}
				</td>

				<td class="total">
					{if $showtaxes == '0'}
					<span>{$item->total|number_format:2:",":" "} &euro;</span>
					{else}
					<span>{$item->total_with_taxes|number_format:2:",":" "} &euro;</span>
					{/if}
				</td>

			</tr>

			{if $item->item_status == '1' or $item->item_status == '2' or $item->item_status == '3'}
			<tr>
				<td colspan="2">
				</td>

				<td colspan="3">
					<div>
					{if $item->item_status == '1'}
						{if $item->item_status_text}
							{$item->item_status_text}
						{else}
							nicht lieferbar
						{/if}
					{elseif $item->item_status == '2'}
						{if $item->backorder_quantity}
							{$item->backorder_quantity}
						{/if}

						{if $item->item_status_text}
							{$item->item_status_text}
						{else}
							nachliefern
						{/if}

						{if $item->delivery_date}
							{$item->delivery_date}
						{/if}
					{elseif $item->item_status == '3'}
						{if $item->backorder_quantity}
							{$item->backorder_quantity}
						{/if}

						{if $item->item_status_text}
							{$item->item_status_text}
						{else}
							info
						{/if}

						{if $item->delivery_date}
							{$item->delivery_date}
						{/if}
					{/if}
					</div>
				</td>

				<td>
				</td>

			</tr>
			{/if}

			{if $item->attribute_1_text}
				<tr>
					<td colspan="2">
					</td>

					<td colsapn="3">
						{$item->attribute_1_text}
					</td>

					<td>
					</td>
				</tr>
			{/if}

			{if $item->attribute_2_text}
				<tr>
					<td colspan="2">
					</td>

					<td colsapn="3">
						{$item->attribute_2_text}
					</td>

					<td>
					</td>
				</tr>
			{/if}

			{if $item->user_data}
				<tr>
					<td colspan="2">
					</td>

					<td colsapn="3">
						"{$item->user_data}"
					</td>

					<td>
					</td>
				</tr>
			{/if}

		{/foreach}
	{/if}
	</tbody>

	<tfoot>

		<tr>
			<td colspan="6"><hr /></td>
		</tr>

		<tr class="item_total">
			<td colspan="3"></td>
			<td colspan="3">
				Summe aller Artikel
				<span class="total">
					{if $showtaxes == '0'}
					<span>
						{if $footer->sub}
							{$footer->sub|number_format:2:",":" "}
						{/if}
					</span>
					&euro;
					{else}
					<span>
						{if $footer->sub_with_taxes}
							{$footer->sub_with_taxes|number_format:2:",":" "}
						{/if}
					</span>
					&euro;
					{/if}
				</span>
			</td>
		</tr>
		 {if $order_data->is_eu_order != 1}
		<tr class="tax">
			<td colspan="3"></td>
			{if $order_items}
				{if $showtaxes == '0'}
				<td colspan="3" id="tax_target">
					{foreach $footer->taxes as $key => $value}
						<div class="{$key} without_tax">zzgl. {$key|number_format:2:",":" "}% Mwst. <span class="total"><span>{$value|number_format:2:",":" "}</span> &euro;</span></div>
					{/foreach}
				</td>
				{else}
				<td colspan="4" id="tax_target">
					{foreach $footer->taxes as $key => $value}
						<div class="{$key} with_tax">darin enthaltene Mwst. {$key|number_format:2:",":" "}% <span class="total"><span>{$value|number_format:2:",":" "}</span> &euro;</span></div>
					{/foreach}
				</td>
				{/if}
			{else}
			<td colspan="3" id="tax_target">
			</td>
			{/if}
		</tr>
		{/if}
		{if $footer->shipping_charges != 0}
			<tr class="shipping">
				<td colspan="3"></td>
				<td colspan="3">
					Versandkosten
					<span class="total">
						<span>
							{if $footer->shipping_charges}
								{$footer->shipping_charges|number_format:2:",":" "}
							{/if}
						</span>

						&euro;
					</span>
				</td>
			</tr>
		{/if}
		{if $footer->payment_method_charges != 0}
			<tr class="payment_method">
				<td colspan="3"></td>
				<td colspan="3">
					Zahlungsgeb&uuml;hren
					<span class="total">
						<span>
							{if $footer->payment_method_charges}
								{$footer->payment_method_charges|number_format:2:",":" "}
							{/if}
						</span>

						&euro;
					</span>
				</td>
			</tr>
		{/if}
		{if $footer->gift_certificate_id}
			<tr class="order_total">
				<td colspan="3"></td>
				<td colspan="4">
					<span style="font-weight:bold;">Zwischen Betrag</span>
					<span class="total">
						<span>
							{if $footer->order_total}
								{$footer->order_total|number_format:2:",":" "}
							{/if}
						</span>

						&euro;
					</span>
				</td>
			</tr>

			<tr class="gift_certificate">
				<td colspan="4">
					abzgl. Gutschein {$footer->gift_certificate_code}
					<span class="total">
						<span>
							- {$footer->gift_certificate_total|number_format:"2":".":""}
						</span>

						&euro;
					</span>
				</td>
			</tr>

			<tr class="order_total_after_gift">
				<td colspan="3"></td>
				<td colspan="4">
					<span style="font-weight:bold;">F&auml;lliger Betrag</span>
					<span class="total">
						<span>
								{($footer->order_total - $footer->gift_certificate_total)|number_format:"2":".":""}
						</span>

						&euro;
					</span>
				</td>
			</tr>
		{else}
			<tr class="order_total">
				<td colspan="3"></td>
				<td colspan="3">
					<b>zu zahlender Betrag
					<span class="total">
						<span>
							{if $footer->order_total}
								{$footer->order_total|number_format:2:",":" "}
							{/if}
						</span>

						&euro;
					</span></b>
				</td>
			</tr>
		{/if}

	</tfoot>

</table>
