diff --git a/config/app/twig_hooks/admin/order/show.yaml b/config/app/twig_hooks/admin/order/show.yaml index 92a778ef..3ac1e9cc 100644 --- a/config/app/twig_hooks/admin/order/show.yaml +++ b/config/app/twig_hooks/admin/order/show.yaml @@ -62,7 +62,7 @@ sylius_twig_hooks: template: '@SyliusRefundPlugin/admin/order/content/sections/credit_memos/header/title.html.twig' priority: 0 - 'sylius_admin.order.show.content.sections.credit_memos.credit_memos.items.actions': + 'sylius_admin.order.show.content.sections.credit_memos.items.actions': download: template: '@SyliusRefundPlugin/admin/order/content/sections/credit_memos/items/actions/download.html.twig' enabled: '%sylius_refund.pdf_generator.enabled%' diff --git a/templates/admin/credit_memo/show/content/sections/memo_details/table/body/net_value.html.twig b/templates/admin/credit_memo/show/content/sections/memo_details/table/body/net_value.html.twig index 56d23ca8..ebad068e 100644 --- a/templates/admin/credit_memo/show/content/sections/memo_details/table/body/net_value.html.twig +++ b/templates/admin/credit_memo/show/content/sections/memo_details/table/body/net_value.html.twig @@ -1,5 +1,5 @@ {% set item = hookable_metadata.context.item %} - {{ '%0.2f'|format(item.netValue/100) }} + {{ (item.netValue / 100)|number_format(2) }} diff --git a/templates/admin/credit_memo/show/list.html.twig b/templates/admin/credit_memo/show/list.html.twig index d4a29ca8..1285cd44 100644 --- a/templates/admin/credit_memo/show/list.html.twig +++ b/templates/admin/credit_memo/show/list.html.twig @@ -21,7 +21,7 @@ {{ credit_memo.issuedAt|date('d-m-Y') }}
- {% hook 'sylius_admin.order.show.content.sections.credit_memos.credit_memos.item.actions' %} + {% hook 'sylius_admin.order.show.content.sections.credit_memos.item.actions' %}
diff --git a/templates/admin/order/refund/content/sections/form/items/table/body/shipment.html.twig b/templates/admin/order/refund/content/sections/form/items/table/body/shipment.html.twig index de97d91d..95061f7b 100644 --- a/templates/admin/order/refund/content/sections/form/items/table/body/shipment.html.twig +++ b/templates/admin/order/refund/content/sections/form/items/table/body/shipment.html.twig @@ -21,8 +21,8 @@
{{ order.currencyCode|sylius_currency_symbol }}
- {% set inputName = "sylius_refund_shipments["~shipping_adjustment.id~"][amount]" %} - + {% set input_name = "sylius_refund_shipments["~shipping_adjustment.id~"][amount]" %} +