mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-22 09:53:35 +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
|
@ -24,7 +24,12 @@
|
|||
|
||||
<tr>
|
||||
<td>{% trans %}part.minOrderAmount{% endtrans %}</td>
|
||||
<td>{{ pricedetail_helper.minOrderAmount(part) | amountFormat(part.partUnit) }}</td>
|
||||
<td>{% if pricedetail_helper.minOrderAmount(part) %}
|
||||
{{ pricedetail_helper.minOrderAmount(part) | amountFormat(part.partUnit) }}
|
||||
{% else %}
|
||||
{% trans %}Unknown{% endtrans %}
|
||||
{% endif %}
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
Loading…
Add table
Add a link
Reference in a new issue