Implement some more python features
This commit is contained in:
@@ -7,47 +7,47 @@
|
||||
<legend>Inventareintrag {{ item.item_id }}</legend>
|
||||
<table>
|
||||
<tr>
|
||||
<th style="text-align: left;">ID</th>
|
||||
<th class="--align-left">ID</th>
|
||||
<td>{{ item.item_id }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="text-align: left;">Barcode</th>
|
||||
<th class="--align-left">Barcode</th>
|
||||
<td><code>{{ item.item_barcode }}</code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="text-align: left;">Name</th>
|
||||
<th class="--align-left">Name</th>
|
||||
<td>{{ item.name }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="text-align: left;">Einkaufspreis (Netto)</th>
|
||||
<th class="--align-left">Einkaufspreis (Netto)</th>
|
||||
<td>{{ format_currency(item.unit_price) }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="text-align: left;">Kaufdatum</th>
|
||||
<th class="--align-left">Kaufdatum</th>
|
||||
<td>{{ format_date(item.bought) }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="text-align: left;">Gruppe</th>
|
||||
<th class="--align-left">Gruppe</th>
|
||||
<td>{{ item.group_name }} ({{ item.item_group }})</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="text-align: left;">Inventar</th>
|
||||
<th class="--align-left">Inventar</th>
|
||||
<td>{{ item.units_left }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="text-align: left;">Korrekturen</th>
|
||||
<th class="--align-left">Korrekturen</th>
|
||||
<td>{{ item.correction_delta }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="text-align: left;">Eingekauft</th>
|
||||
<th class="--align-left">Eingekauft</th>
|
||||
<td>{{ item.sales_units }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="text-align: left;">Raum</th>
|
||||
<th class="--align-left">Raum</th>
|
||||
<td>{{ item.location_name }} ({{ item.location }})</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="text-align: left;">Aktiv?</th>
|
||||
<th class="--align-left">Aktiv?</th>
|
||||
<td>{{ format_bool(item.available) }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -72,18 +72,18 @@
|
||||
<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 class="--align-right">{{ 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>
|
||||
<td>{{ format_bool(snack.snack_available) }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
</fieldset>
|
||||
|
||||
<fieldset>
|
||||
<legend>Aktive Inventareinträge mit Barcode <code>{{ item.item_barcode }}</code> in {{ item.location_name }}</legend>
|
||||
<legend>Inventareinträge mit Barcode <code>{{ item.item_barcode }}</code> in {{ item.location_name }}</legend>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
@@ -93,23 +93,31 @@
|
||||
<th>Einkaufspreis (Netto)</th>
|
||||
<th>Kaufdatum</th>
|
||||
<th>Gruppe</th>
|
||||
<th>Inventar</th>
|
||||
<th>Korrekturen</th>
|
||||
<th>Eingekauft</th>
|
||||
<th>Raum</th>
|
||||
<th>Korrekturen</th>
|
||||
<th>Inventar</th>
|
||||
<th title="Aktive Snackeinträge">AS</th>
|
||||
<th>Aktiv?</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 class="--align-right">{{ 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>
|
||||
<td class="--align-right">{{ item.sales_units }}</td>
|
||||
<td class="--align-right">{% if item.correction_delta > 0 %}+{% endif %}{{ item.correction_delta }}</td>
|
||||
<td class="--align-right">{{ item.units_left }}</td>
|
||||
<td class="--centered">
|
||||
{% if item.active_mappings != 0 %}
|
||||
{{ item.active_mappings_array | join(", ") }}
|
||||
{% else %}
|
||||
-
|
||||
{% endif %}
|
||||
</td>
|
||||
<td class="--centered">{{ format_bool(item.available) }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
|
||||
Reference in New Issue
Block a user