{% import "@SyliusAdmin/Common/Macro/money.html.twig" as money %} {% set orderShippingPromotionAdjustment = constant('Sylius\\Component\\Core\\Model\\AdjustmentInterface::ORDER_SHIPPING_PROMOTION_ADJUSTMENT') %} {% set shippingAdjustment = constant('Sylius\\Component\\Core\\Model\\AdjustmentInterface::SHIPPING_ADJUSTMENT') %} {% set taxAdjustment = constant('Sylius\\Component\\Core\\Model\\AdjustmentInterface::TAX_ADJUSTMENT') %} {% set orderShippingPromotions = sylius_aggregate_adjustments(order.getAdjustmentsRecursively(orderShippingPromotionAdjustment)) %} {{ 'sylius.ui.tax_total'|trans }}: {{ money.format(order.taxTotal, order.currencyCode) }} {{ 'sylius.ui.items_total'|trans }}: {{ money.format(order.itemsTotal, order.currencyCode) }} {% if not order.adjustments(shippingAdjustment).isEmpty() %}
{{ 'sylius.ui.shipping'|trans }}:
{% for shipment in order.shipments %} {% for adjustment in shipment.adjustments(shippingAdjustment) %}
{{ money.format(adjustment.amount, order.currencyCode) }}
{{ adjustment.label }}:
{% endfor %} {% for adjustment in shipment.adjustments(taxAdjustment) %}
{{ money.format(adjustment.amount, order.currencyCode) }} {% if adjustment.isNeutral %} ({{ 'sylius.ui.included_in_price'|trans }}) {% endif %}
{{ adjustment.label }}:
{% endfor %} {% endfor %}
{% else %}

{{ 'sylius.ui.no_shipping_charges'|trans }}

{% endif %} {% if not orderShippingPromotions is empty %}
{{ 'sylius.ui.shipping_discount'|trans }}:
{% for label, amount in orderShippingPromotions %}
{{ money.format(amount, order.currencyCode) }}
{% endfor %}
{% endif %} {{ 'sylius.ui.shipping_total'|trans }}: {{ money.format(order.shippingTotal, order.currencyCode) }} {% include '@SyliusAdmin/Order/Show/Summary/_totalsPromotions.html.twig' %} {{ 'sylius.ui.order_total'|trans }}: {{ money.format(order.total, order.currencyCode) }}