jon/jon/templates/entry/index.html
2023-08-22 13:14:56 +02:00

38 lines
1.2 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 cart %}
<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>
{% endblock %}