parent
d219c136c0
commit
cb5616c81f
@ -1,20 +1,29 @@
|
||||
<div class="card">
|
||||
<ul class="list-group list-group-flush">
|
||||
{% for item in items %}
|
||||
<li class="list-group-item">
|
||||
<div class="row">
|
||||
<p class="col">{{ item.create_date }}</p>
|
||||
<p class="col">{{ item.item_name }}</p>
|
||||
<p class="col">{{ item.user_name }}</p>
|
||||
<p class="col">
|
||||
{% match item.item_type %} {% when
|
||||
HistoryItemEntry::PositiveAdjustment with (entry) %} {{ entry.amount
|
||||
}} @ {{ entry.unit_value }} {% when
|
||||
HistoryItemEntry::NegativeAdjustment with (entry) %} {{ entry.amount
|
||||
}} {{ entry.reason }} {% endmatch %}
|
||||
</p>
|
||||
</div>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
<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>
|
||||
|
||||
|
||||
Loading…
Reference in new issue