You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
inventory-app/templates/history_item_fragment.html

30 lines
718 B

<table class="table-auto">
<thead>
<tr class="mb-2">
<th>Date</th>
<th>Item</th>
<th>User</th>
<th>Desc</th>
</tr>
</thead>
<tbody>
{% for item in items %}
<tr class="mb-2">
<td class="px-2">{{ item.create_date }}</td>
<td class="px-2">{{ item.item_name }}</td>
<td class="px-2">{{ item.user_name }}</td>
<td class="px-2">
{% match item.item_type %}
{% when HistoryItemEntry::PositiveAdjustment with (entry) %}
{{ entry.amount }} @ {{ entry.unit_value }}
{% when HistoryItemEntry::NegativeAdjustment with (entry) %}
{{ entry.amount }} {{ entry.reason }}
{% endmatch %}
</td>
</tr>
{% endfor %}
</tbody>
</table>

Powered by TurnKey Linux.