43 lines
1.5 KiB
HTML
43 lines
1.5 KiB
HTML
{% extends "base.html" %}
|
|
|
|
{% block content %}
|
|
<a href="/entry/new-order">Neuer Auftrag</a>
|
|
<h2>Aufträge</h2>
|
|
<table>
|
|
<tr>
|
|
<th>Barcode</th>
|
|
<th>Name</th>
|
|
<th>Eingekauft</th>
|
|
<th>Gruppe</th>
|
|
<th>Raum</th>
|
|
<th>Steuergruppe</th>
|
|
<th>EK-Preis (Netto)</th>
|
|
<th>VK-Preis (Brutto)</th>
|
|
<th>Aktionen</th>
|
|
</tr>
|
|
{% for cart_item in current_user.data.orders %}
|
|
<tr>
|
|
<td><code>{{ cart_item.barcode }}</code></td>
|
|
<td>{{ cart_item.name }}</td>
|
|
<td class="--align-right">{{ cart_item.sales_units }}</td>
|
|
<td class="--align-right">{{ cart_item.group_name }} ({{ cart_item.group_id }})</td>
|
|
<td class="--align-right">{{ cart_item.location_name }} ({{ cart_item.location_id }})</td>
|
|
<td class="--align-right">{{ cart_item.tax_group_description }} ({{ cart_item.tax_group_id }})</td>
|
|
<td class="--align-right">{{ format_currency(cart_item.net_unit_price) }}</td>
|
|
<td class="--align-right">{{ format_currency(cart_item.gross_unit_price) }}</td>
|
|
<td>
|
|
<form method="POST" action="/entry/delete-order">
|
|
<input type="hidden" name="order-index" value="{{ loop.index0 }}">
|
|
<button>Löschen</button>
|
|
</form>
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
<form method="POST" action="/entry/add-new-items">
|
|
<input type="checkbox" name="i-know-what-im-doing" id="i-know-what-im-doing">
|
|
<label for="i-know-what-im-doing">I weiß, was ich tue</label>
|
|
<button>Neue Einträge anlegen</button>
|
|
</form>
|
|
{% endblock %}
|