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.
32 lines
1.0 KiB
32 lines
1.0 KiB
<table
|
|
class="w-full text-left text-sm rtl:text-right"
|
|
hx-get="/item/{{item_id}}/adjustments"
|
|
hx-trigger="new-adjustment from:body"
|
|
hx-swap="outerHTML"
|
|
>
|
|
<thead
|
|
class="bg-gray-50 text-xs uppercase text-gray-700 dark:bg-gray-700 dark:text-gray-400"
|
|
>
|
|
<tr>
|
|
<th class="px-6 py-3" scope="col">Date</th>
|
|
<th class="px-6 py-3" scope="col">Amount</th>
|
|
<th class="px-6 py-3" scope="col">Reason</th>
|
|
<th class="px-6 py-3" scope="col">Unit Value</th>
|
|
<th class="px-6 py-3" scope="col">Running Total</th>
|
|
<th class="px-6 py-3" scope="col">Running Value</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for item in adjustments %}
|
|
<tr>
|
|
<td class="px-6 py-4">{{ item.date }}</td>
|
|
<td class="px-6 py-4">{{ item.amount }}</td>
|
|
<td class="px-6 py-4">{{ item.reason }}</td>
|
|
<td class="px-6 py-4">{{ item.unit_value }}</td>
|
|
<td class="px-6 py-4">{{ item.tally }}</td>
|
|
<td class="px-6 py-4">{{ item.tally_value }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|