Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mpysiak committed Dec 9, 2024
1 parent 3fe977b commit e1bc9df
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
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.credit_memos.items.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 e1bc9df

Please sign in to comment.