{% import "helper.twig" as helper %}
{% for order in part.orderdetails %} {% endfor %}
{% trans %}part.supplier.name{% endtrans %} {% trans %}part.supplier.partnr{% endtrans %}
{{ order.supplier.name }} {% if order.supplierProductUrl is not empty %} {{ order.supplierPartNr }} {% else %} {{ order.supplierPartNr }} {% endif %} {% if order.pricedetails is not empty %} {% for detail in order.pricedetails %} {% endfor %}
{% trans %}part.order.minamount{% endtrans %} {% trans %}part.order.price{% endtrans %} {% trans %}part.order.single_price{% endtrans %} {% if part.partUnit %} / 1 {{ part.partUnit.unit }} {% endif %}
{{ detail.MinDiscountQuantity | format_amount(part.partUnit) }} {{ detail.price | format_money(detail.currency) }} / {{ detail.PriceRelatedQuantity | format_amount(part.partUnit) }} {% set tmp = pricedetail_helper.convertMoneyToCurrency(detail.price, detail.currency) %} {% if detail.currency != (app.user.currency ?? null) and tmp is not null and tmp.GreaterThan(0) %} ({{ pricedetail_helper.convertMoneyToCurrency(detail.price, detail.currency, app.user.currency ?? null) | format_money(app.user.currency ?? null) }}) {% endif %} {{ detail.PricePerUnit | format_money(detail.currency) }} {% set tmp = pricedetail_helper.convertMoneyToCurrency(detail.PricePerUnit, detail.currency) %} {% if detail.currency != (app.user.currency ?? null) and tmp is not null and tmp.GreaterThan(0) %} ({{ pricedetail_helper.convertMoneyToCurrency(detail.PricePerUnit, detail.currency, app.user.currency ?? null) | format_money(app.user.currency ?? null) }}) {% endif %}
{% endif %}
{# Action for order information #}