<br />
			<div id="item_inventory_table">
			<b>Lagerbewegung buchen:</b><br>
			
<table border="0" cellpadding="2" cellspacing="1" style="border:1px solid #aaaaaa;background:#cccccc;width:100%;">
<form id="incomming_goods_new_item" method="post" action="">
	<tr>
		<td style="text-align:left;background:#ff9900;width:300px;text-align:left;">
			<label>Aktion</label><br />
			<select id="inventory_type" name="inventory_type">
				<option value="1">Ladenverkauf</option>
				<option value="2">Wareneingang</option>
				<option value="3">Verlust</option>
				<option value="4">Eigenverbrauch</option>
				<option value="5">Onlineverkauf</option>
			</select>
		</td>
		<td style="text-align:left;background:#ff9900;"><label>St&uuml;ck</label><br /><input style="width:50px;" type="text" id="inventory_amount" name="inventory_amount" value="" /></td>
		<td style="text-align:center;background:#ff9900;" colspan="3"><input type="button" id="button_new_inventory" name="add_item" value="Buchung hinzufügen" /></td>
	</tr>
</form>	
</table>
			{if $item_inventory}
				<table border="0" cellpadding="2" cellspacing="2" style="width:100%;border:1px solid #cccccc;">
					<thead>
						<tr style="background:#cccccc;">
							<th style="width:20px;"></th>
							<th>Typ</th>
							<th>Datum</th>
							<th style="text-align:right;">Menge</th>
							<th style="text-align:right;">Summe</th>
						</tr>
					</thead>
					<tbody>
						{foreach from=$item_inventory item=inventory}
						<tr {if $inventory->inventory_object_type_id == 2}style="background:#00ff00;"{/if}>
							<td style="background: #ffffff url({$THEME_DIR}/media/images/{if $inventory->inventory_object_type_id == 2}gruener_pfeil.png{else}roter_pfeil.png{/if}) center center no-repeat;">
								&nbsp;
							</td>
							<td>{$inventory->type_name}</td>
							<td>{$inventory->created}</td>
							<td style="text-align:right;">{$inventory->amount}</td>
							<td style="text-align:right;">{$inventory->price_sum|number_format:"2":",":"."} &euro;</td>
						</tr>
						{/foreach}
					</tbody>
					<tfoot>
						<tr style="background:#cccccc;">
							<th colspan="5" style="text-align:right;font-size:14px;{if $item_data->inventory < 0}color:#ff0000;{/if}">Aktueller Lagerbestand: {$item_data->inventory} St&uuml;ck </th>
						</tr>
					</tfoot>
				</table>
			{else}
				<p>Keine Lagerbest&auml;nde vorhanden</p>
			{/if}
			<div class="edit_endline"></div>		
			<br />		
			