parent
d219c136c0
commit
cb5616c81f
@ -1,20 +1,29 @@
|
|||||||
<div class="card">
|
<table class="table-auto">
|
||||||
<ul class="list-group list-group-flush">
|
<thead>
|
||||||
|
<tr class="mb-2">
|
||||||
|
<th>Date</th>
|
||||||
|
<th>Item</th>
|
||||||
|
<th>User</th>
|
||||||
|
<th>Desc</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
{% for item in items %}
|
{% for item in items %}
|
||||||
<li class="list-group-item">
|
<tr class="mb-2">
|
||||||
<div class="row">
|
<td class="px-2">{{ item.create_date }}</td>
|
||||||
<p class="col">{{ item.create_date }}</p>
|
<td class="px-2">{{ item.item_name }}</td>
|
||||||
<p class="col">{{ item.item_name }}</p>
|
<td class="px-2">{{ item.user_name }}</td>
|
||||||
<p class="col">{{ item.user_name }}</p>
|
<td class="px-2">
|
||||||
<p class="col">
|
{% match item.item_type %}
|
||||||
{% match item.item_type %} {% when
|
{% when HistoryItemEntry::PositiveAdjustment with (entry) %}
|
||||||
HistoryItemEntry::PositiveAdjustment with (entry) %} {{ entry.amount
|
{{ entry.amount }} @ {{ entry.unit_value }}
|
||||||
}} @ {{ entry.unit_value }} {% when
|
{% when HistoryItemEntry::NegativeAdjustment with (entry) %}
|
||||||
HistoryItemEntry::NegativeAdjustment with (entry) %} {{ entry.amount
|
{{ entry.amount }} {{ entry.reason }}
|
||||||
}} {{ entry.reason }} {% endmatch %}
|
{% endmatch %}
|
||||||
</p>
|
</td>
|
||||||
</div>
|
</tr>
|
||||||
</li>
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
|
||||||
</div>
|
</tbody>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in new issue