Fixed exception on parts without minorderamount.

This commit is contained in:
Jan Böhmer 2019-09-02 18:58:21 +02:00
parent 59c981ad0d
commit c4fe9d9fb5

View file

@ -24,7 +24,12 @@
<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) %}
{{ pricedetail_helper.minOrderAmount(part) | amountFormat(part.partUnit) }}
{% else %}
{% trans %}Unknown{% endtrans %}
{% endif %}
</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>