mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-22 18:03:37 +02:00
Fixed exception on parts without minorderamount.
This commit is contained in:
parent
59c981ad0d
commit
c4fe9d9fb5
1 changed files with 25 additions and 20 deletions
|
@ -2,29 +2,34 @@
|
||||||
|
|
||||||
<table class="table table-striped table-hover table-sm w-100">
|
<table class="table table-striped table-hover table-sm w-100">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr> {# Creation date #}
|
<tr> {# Creation date #}
|
||||||
<td>{% trans %}createdAt{% endtrans %}</td>
|
<td>{% trans %}createdAt{% endtrans %}</td>
|
||||||
<td>{{ part.addedDate | localizeddate("long")}}</td>
|
<td>{{ part.addedDate | localizeddate("long")}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr> {# Last modified date #}
|
<tr> {# Last modified date #}
|
||||||
<td>{% trans %}lastModified{% endtrans %}</td>
|
<td>{% trans %}lastModified{% endtrans %}</td>
|
||||||
<td>{{ part.lastModified | localizeddate("long")}}</td>
|
<td>{{ part.lastModified | localizeddate("long")}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr> {# ID #}
|
<tr> {# ID #}
|
||||||
<td>{% trans %}id.label{% endtrans %}</td>
|
<td>{% trans %}id.label{% endtrans %}</td>
|
||||||
<td>{{ part.iD }} ({{ part.iDString}})</td>
|
<td>{{ part.iD }} ({{ part.iDString}})</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr> {# Favorite status #}
|
<tr> {# Favorite status #}
|
||||||
<td>{% trans %}part.isFavorite{% endtrans %}</td>
|
<td>{% trans %}part.isFavorite{% endtrans %}</td>
|
||||||
<td>{{ helper.boolean(part.favorite) }}</td>
|
<td>{{ helper.boolean(part.favorite) }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td>{% trans %}part.minOrderAmount{% endtrans %}</td>
|
<td>{% trans %}part.minOrderAmount{% endtrans %}</td>
|
||||||
<td>{{ pricedetail_helper.minOrderAmount(part) | amountFormat(part.partUnit) }}</td>
|
<td>{% if pricedetail_helper.minOrderAmount(part) %}
|
||||||
</tr>
|
{{ pricedetail_helper.minOrderAmount(part) | amountFormat(part.partUnit) }}
|
||||||
|
{% else %}
|
||||||
|
{% trans %}Unknown{% endtrans %}
|
||||||
|
{% endif %}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
Loading…
Add table
Add a link
Reference in a new issue