Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mpysiak committed Dec 6, 2024
1 parent 3fe977b commit 72a286b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion config/app/twig_hooks/admin/order/show.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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%'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% set item = hookable_metadata.context.item %}

<td>
{{ '%0.2f'|format(item.netValue/100) }}
{{ (item.netValue / 100)|number_format(2) }}
</td>
2 changes: 1 addition & 1 deletion templates/admin/credit_memo/show/list.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<td>{{ credit_memo.issuedAt|date('d-m-Y') }}</td>
<td>
<div class="ui buttons">
{% hook 'sylius_admin.order.show.content.sections.credit_memos.credit_memos.item.actions' %}
{% hook 'sylius_admin.order.show.content.sections.credit_memos.item.actions' %}
</div>
</td>
</tr>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@

<div class="input-group">
<div class="input-group-text">{{ order.currencyCode|sylius_currency_symbol }}</div>
{% set inputName = "sylius_refund_shipments["~shipping_adjustment.id~"][amount]" %}
<input data-refund-input type="number" step="0.01" class="form-control" name="{{ inputName }}" {% if not can_unit_be_refunded(shipping_adjustment.id, shipment_refund_type) %} disabled{% endif %}/>
{% set input_name = "sylius_refund_shipments["~shipping_adjustment.id~"][amount]" %}
<input data-refund-input type="number" step="0.01" class="form-control" name="{{ input_name }}" {% if not can_unit_be_refunded(shipping_adjustment.id, shipment_refund_type) %} disabled{% endif %}/>
</div>
</td>
<td class="aligned collapsing">
Expand Down

0 comments on commit 72a286b

Please sign in to comment.