diff --git a/src/Resources/views/Download/creditMemo.html.twig b/src/Resources/views/Download/creditMemo.html.twig index 902b7646..d07d08f3 100644 --- a/src/Resources/views/Download/creditMemo.html.twig +++ b/src/Resources/views/Download/creditMemo.html.twig @@ -32,7 +32,7 @@ - {{ 'sylius_refund.ui.issued_at'|trans }}: {{ creditMemo.issuedAt|date('Y-m-d H:i:s') }}
+ {{ 'sylius_refund.ui.issued_at'|trans([], 'messages', creditMemo.localeCode) }}: {{ creditMemo.issuedAt|date('Y-m-d H:i:s') }}
@@ -45,7 +45,7 @@ - + - - - - - - - - - + + + + + + + + + {% for item in creditMemo.lineItems %} @@ -103,7 +103,7 @@ - + @@ -111,9 +111,9 @@ {% if creditMemo.taxItems|length > 0 %} - - - + + + {% for item in creditMemo.taxItems %}
- {{ 'sylius_refund.ui.buyer'|trans }}
+ {{ 'sylius_refund.ui.buyer'|trans([], 'messages', creditMemo.localeCode) }}
{{ from.fullName }}
{% if from.company %}{{ from.company }}
{% endif %} {{ from.street }}
@@ -55,7 +55,7 @@
{% if to != null %} - {{ 'sylius_refund.ui.seller'|trans }}
+ {{ 'sylius_refund.ui.seller'|trans([], 'messages', creditMemo.localeCode) }}
{% if to.company %}{{ to.company }}
{% endif %} {% if to.street %}{{ to.street }}
{% endif %} {% if to.city %}{{ to.city }}
{% endif %} @@ -72,19 +72,19 @@ {% endif %}
{{ 'sylius_refund.ui.credit_memo'|trans }} #{{ creditMemo.number }}{{ 'sylius_refund.ui.credit_memo'|trans([], 'messages', creditMemo.localeCode) }} #{{ creditMemo.number }}
{{ 'sylius_refund.ui.no'|trans }}{{ 'sylius.ui.name'|trans }}{{ 'sylius.ui.quantity'|trans }}{{ 'sylius_refund.ui.unit_net_price'|trans }}{{ 'sylius_refund.ui.net_value'|trans }}{{ 'sylius_refund.ui.tax_rate'|trans }}{{ 'sylius_refund.ui.tax_amount'|trans }}{{ 'sylius_refund.ui.gross_value'|trans }}{{ 'sylius.ui.currency'|trans }}{{ 'sylius_refund.ui.no'|trans([], 'messages', creditMemo.localeCode) }}{{ 'sylius.ui.name'|trans([], 'messages', creditMemo.localeCode) }}{{ 'sylius.ui.quantity'|trans([], 'messages', creditMemo.localeCode) }}{{ 'sylius_refund.ui.unit_net_price'|trans([], 'messages', creditMemo.localeCode) }}{{ 'sylius_refund.ui.net_value'|trans([], 'messages', creditMemo.localeCode) }}{{ 'sylius_refund.ui.tax_rate'|trans([], 'messages', creditMemo.localeCode) }}{{ 'sylius_refund.ui.tax_amount'|trans([], 'messages', creditMemo.localeCode) }}{{ 'sylius_refund.ui.gross_value'|trans([], 'messages', creditMemo.localeCode) }}{{ 'sylius.ui.currency'|trans([], 'messages', creditMemo.localeCode) }}
{{ 'sylius.ui.total'|trans }}:{{ 'sylius.ui.total'|trans([], 'messages', creditMemo.localeCode) }}: {{ '%0.2f'|format(creditMemo.total/100) }} {{ creditMemo.currencyCode }}
{{ 'sylius_refund.ui.tax_rate'|trans }}{{ 'sylius_refund.ui.tax_amount'|trans }}{{ 'sylius.ui.currency'|trans }}{{ 'sylius_refund.ui.tax_rate'|trans([], 'messages', creditMemo.localeCode) }}{{ 'sylius_refund.ui.tax_amount'|trans([], 'messages', creditMemo.localeCode) }}{{ 'sylius.ui.currency'|trans([], 'messages', creditMemo.localeCode) }}