{% import '@SyliusAdmin/Common/Macro/money.html.twig' as money %} {% set shipmentRefundType = constant('Sylius\\RefundPlugin\\Model\\RefundType::SHIPMENT') %} {% for shippingAdjustment in order.getAdjustments('shipping') %} {% set shipment = shippingAdjustment.shipment %} {{ 'sylius.ui.shipment'|trans }}: {{ shippingAdjustment.label }} {{ money.format(shipment.adjustmentsTotal, order.currencyCode) }} {% set refundedTotal = unit_refunded_total(shippingAdjustment.id, shipmentRefundType) %} {% if refundedTotal != 0 %}
{{ 'sylius_refund.ui.refunded'|trans }}: {{ money.format(refundedTotal, order.currencyCode) }} {% endif %}
{{ order.currencyCode|sylius_currency_symbol }}
{% set inputName = "sylius_refund_shipments["~shippingAdjustment.id~"][amount]" %}
{% endfor %}