Add python
This commit is contained in:
@@ -0,0 +1,117 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
<h2>Inventareintrag {{ item.item_id }}</h2>
|
||||
|
||||
<fieldset>
|
||||
<legend>Inventareintrag {{ item.item_id }}</legend>
|
||||
<table>
|
||||
<tr>
|
||||
<th style="text-align: left;">ID</th>
|
||||
<td>{{ item.item_id }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="text-align: left;">Barcode</th>
|
||||
<td><code>{{ item.item_barcode }}</code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="text-align: left;">Name</th>
|
||||
<td>{{ item.name }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="text-align: left;">Einkaufspreis (Netto)</th>
|
||||
<td>{{ format_currency(item.unit_price) }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="text-align: left;">Kaufdatum</th>
|
||||
<td>{{ format_date(item.bought) }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="text-align: left;">Gruppe</th>
|
||||
<td>{{ item.group_name }} ({{ item.item_group }})</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="text-align: left;">Inventar</th>
|
||||
<td>{{ item.units_left }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="text-align: left;">Korrekturen</th>
|
||||
<td>{{ item.correction_delta }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="text-align: left;">Eingekauft</th>
|
||||
<td>{{ item.sales_units }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="text-align: left;">Raum</th>
|
||||
<td>{{ item.location_name }} ({{ item.location }})</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="text-align: left;">Aktiv?</th>
|
||||
<td>{{ format_bool(item.available) }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
|
||||
<fieldset>
|
||||
<legend>Snackeinträge für {{ item.item_id }}</legend>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
<th>Barcode</th>
|
||||
<th>Name</th>
|
||||
<th>Verkaufspreis (Brutto)</th>
|
||||
<th>Eintragedatum</th>
|
||||
<th>Steuersatz</th>
|
||||
<th>Raum</th>
|
||||
<th>Aktiv?</th>
|
||||
</tr>
|
||||
{% for snack in snacks %}
|
||||
<tr>
|
||||
<td>{{ snack.snack_id }}</td>
|
||||
<td><code>{{ snack.snack_barcode }}</code></td>
|
||||
<td>{{ snack.snack_name }}</td>
|
||||
<td>{{ format_currency(snack.snack_price) }}</td>
|
||||
<td>{{ format_date(snack.snack_timestamp) }}</td>
|
||||
<td>{{ snack.description }} ({{ snack.tax_group_id }})</td>
|
||||
<td>{{ snack.location_name }} ({{ snack.location_id }})</td>
|
||||
<td>{{ format_bool(snack.active) }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
</fieldset>
|
||||
|
||||
<fieldset>
|
||||
<legend>Aktive Inventareinträge mit Barcode <code>{{ item.item_barcode }}</code> in {{ item.location_name }}</legend>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
<th>Barcode</th>
|
||||
<th>Name</th>
|
||||
<th>Einkaufspreis (Netto)</th>
|
||||
<th>Kaufdatum</th>
|
||||
<th>Gruppe</th>
|
||||
<th>Inventar</th>
|
||||
<th>Korrekturen</th>
|
||||
<th>Eingekauft</th>
|
||||
<th>Raum</th>
|
||||
</tr>
|
||||
{% for item in same_barcode_items %}
|
||||
<tr>
|
||||
<td><a href="/inventory/{{ item.item_id }}">{{ item.item_id }}</a></td>
|
||||
<td><code>{{ item.item_barcode }}</code></td>
|
||||
<td>{{ item.name }}</td>
|
||||
<td>{{ format_currency(item.unit_price) }}</td>
|
||||
<td>{{ format_date(item.bought) }}</td>
|
||||
<td>{{ item.group_name }} ({{ item.item_group }})</td>
|
||||
<td>{{ item.units_left }}</td>
|
||||
<td>{{ item.correction_delta }}</td>
|
||||
<td>{{ item.sales_units }}</td>
|
||||
<td>{{ item.location_name }} ({{ item.location }})</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
</fieldset>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user