First order details draft

This commit is contained in:
Fabian Wunsch 2024-09-05 15:41:00 +02:00
parent 1a0fab0615
commit 62754bdbf3
13 changed files with 170 additions and 7 deletions

View file

@ -10,6 +10,8 @@
{{ form_row(form.category) }}
{{ form_row(form.tags) }}
{{ form_row(form.minAmount) }}
{{ form_row(form.orderAmount) }}
{{ form_row(form.orderDate) }}
{{ form_row(form.footprint) }}

View file

@ -76,6 +76,17 @@
{% if part.expiredAmountSum > 0 %}
<span title="{% trans %}part_lots.is_expired{% endtrans %}" class="text-muted">(+{{ part.expiredAmountSum }})</span>
{% endif %}
{% if part.orderAmount > 0 %}
(+
<span title="{% trans %}orderstock.label{% endtrans %}">{{ part.orderAmount | format_amount(part.partUnit) }}</span>
{% if part.orderDate %}
@
<span class="badge bg-info mb-1" title="{% trans %}part.filter.orderDate{% endtrans %}">
<i class="fas fa-calendar-alt fa-fw"></i> {{ part.orderDate | format_date() }}<br>
</span>
{% endif %}
)
{% endif %}
/
<span title="{% trans %}mininstock.label{% endtrans %}">{{ part.minAmount | format_amount(part.partUnit) }}</span>
</span>

View file

@ -66,6 +66,8 @@
<div class="tab-pane pt-3" id="filter-stocks" role="tabpanel" aria-labelledby="filter-stocks-tab" tabindex="0">
{{ form_row(filterForm.storelocation) }}
{{ form_row(filterForm.minAmount) }}
{{ form_row(filterForm.orderAmount) }}
{{ form_row(filterForm.orderDelivery) }}
{{ form_row(filterForm.amountSum) }}
{{ form_row(filterForm.lessThanDesired) }}
{{ form_row(filterForm.lotCount) }}
@ -150,4 +152,4 @@
{{ form_end(filterForm) }}
</div>
</div>
</div>
</div>