added handling for no supplier price

This commit is contained in:
Matthias 2021-06-19 23:46:31 +02:00
parent 15804f873b
commit 452d2004ce

View File

@ -54,7 +54,7 @@
<option value="{{ supplier.id }}"{% if part.order_supplier == supplier.id %} selected="selected"{% endif %}>
{% if show_price %}
{% call_method supplier 'get_price' part.order_quantity as price %}
{% include "price.html" with price=price %} -
{% if price %}{% include "price.html" with price=price %}{% else %}{% trans 'No price' %}{% endif %} -
{% endif %}
{{ supplier }}
</option>