also show prices of the value 0

This commit is contained in:
Matthias 2021-06-20 13:32:52 +02:00
parent 452d2004ce
commit b4412ef575

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 %}
{% if price %}{% include "price.html" with price=price %}{% else %}{% trans 'No price' %}{% endif %} -
{% if price != None %}{% include "price.html" with price=price %}{% else %}{% trans 'No price' %}{% endif %} -
{% endif %}
{{ supplier }}
</option>