<tbody class="table_order_items">

	<tr>
		
		<td style="width:40px;">
			<a class="button drop_box_button down" title="Artikelstatus setzen"></a>
			<a class="button delete_button delete" title="Artikel l&ouml;schen"></a>
			<input type="hidden" class="is_shippable" value="{$item->shippable}" />
			{if $item->shippable == '0'}
				<img class="shipping_status" src="themes/admin/media/images/red_notice.png" title="nicht lieferbar" />
			{elseif $item->shippable == '1'}
				<img class="shipping_status" src="themes/admin/media/images/green_notice.png" title="lieferbar" />
			{elseif $item->shippable == '2'}
				<img class="shipping_status" src="themes/admin/media/images/orange_notice.png" title="lieferbar ab {$item->available_from} bis {$item->available_till}" />
			{elseif $item->shippable == '3'}
				<img class="shipping_status" src="themes/admin/media/images/orange_notice.png" title="lieferzeit unbekannt" />
			{/if}
		</td>
		
		<td class="pos">
		</td>
		
		<td class="quantity">
			<input class="item_id" type="hidden" name="order_item[item_id][]" value="{$item->id}" />
			<input class="amount_old" type="hidden" name="order_item[amount_old][]" value="1" />
			<input class="amount" type="text" name="order_item[amount][]" value="1" />
		</td>
		
		<td class="item">
			<a href="./index.php?admin_modul=admin_item_editor&action=edit&id={$item->id}" target="_blank">{$item->name}</a>
			<div>
			Art-Nr.: {$item->number}
			</div>
		</td>
		
		<td class="tax_rate">
			<input type="hidden" class="taxes" name="order_item[taxes][]" value="{$item->tax_value}" />
			<span>{$item->tax}</span> %
		</td>
		
		<td class="price">
			<input type="text" name="order_item[price][]" class="item_price_edit" value="{if $item->shop_bargain_price_1 > 0}{if $show_with_tax == '1'}{$item->bargain_price_1_tax}{else}{$item->shop_bargain_price_1}{/if}{else}{if $show_with_tax == '1'}{$item->price_1_tax}{else}{$item->shop_price_1}{/if}{/if}" />
			
			&euro;
		</td>
		
		<td class="total">
			{if $show_with_tax == '1'}
				{if $item->shop_bargain_price_1 > 0}
					<span>{$item->bargain_price_1_tax|number_format:"4":".":""}</span>
				{else}	
					<span>{$item->price_1_tax|number_format:"4":".":""}</span>
				{/if}
			{else}
				{if $item->shop_bargain_price_1 > 0}
					<span>{$item->shop_bargain_price_1|number_format:"4":".":""}</span>
				{else}	
					<span>{$item->shop_price_1|number_format:"4":".":""}</span>
				{/if}
			{/if}
			
			&euro;
		</td>
		
	</tr>
	
	<tr class="hidable" style="display:hidden;">
	
		<td colspan="3"></td>
		
		<td>
			<select name="order_item[variant1][]" class="order_item_variant_1">
			{foreach $item->price_variants_1 as $variant}
				<option value="{$variant}">{$variant}</option>
			{/foreach}
			</select>
		</td>
		
		<td colspan="2">
			<select name="order_item[variant2][]" class="order_item_variant_2">
			{foreach $item->price_variants_2 as $variant}
				<option value="{$variant}">{$variant}</option>
			{/foreach}
			</select>
		</td>
		
		<td></td>
		
	</tr>
	
	<tr class="hidable" style="display:hidden;">
	
		<td colspan="2">
			<label>Artikel Status</label>
			<select class="item_status" name="order_item[item_status][]">
				<option value="0">-</option>
				<option value="1">nicht lieferbar</option>
				<option value="2">nachliefern</option>
				<option value="3">info</option>
			</select>
		</td>
		
		<td>
			<label>St.</label>
			<select class="backorder_quantity" name="order_item[backorder_quantity][]" readonly="readonly">
				<option value="0">0</option>
				<option value="1">1</option>
			</select>
		</td>
		
		<td colspan="2">
			<label>Kommentar</label>
			<input type="text" name="order_item[item_status_text][]" />
		</td>
		
		<td>
			<label>Datum</label>
			<input class="delivery_date" type="text" name="order_item[delivery_date][]" readonly="readonly" />
		</td>
		
		<td class="inventory">
			<label>Lager</label>
			<span>{if $item->inventory}{$item->inventory}{else}0{/if}</span>
		</td>
		
	</tr>
	
</tbody>
