Skip to content

Commit

Permalink
bug #308 [Admin][Translation] fix : use admin locale instead of invoi…
Browse files Browse the repository at this point in the history
…ce (BastienGoze)

This PR was merged into the main branch.

Discussion
----------

| Q               | A                                                            |
|-----------------|--------------------------------------------------------------|
| Branch?         | main             |
| Bug fix?        | yes                                                       |
| New feature?    | no                                                    |
| BC breaks?      | no                                                       |
| Deprecations?   | no |
| Related tickets |                 |
| License         | MIT                                                          |

Fix in Admin Show Invoice : use admin locale instead of invoice

Commits
-------

2783d94 used admin locale instead of invoice
  • Loading branch information
GSadee authored Apr 23, 2024
2 parents 5324393 + 2783d94 commit 248ff44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Resources/views/Invoice/show.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
</tr>
<tr>
<th colspan="8" class="right aligned">
<strong>{{ 'sylius_invoicing_plugin.ui.taxes_total'|trans([], 'messages', invoice.localeCode) }}</strong>:
<strong>{{ 'sylius_invoicing_plugin.ui.taxes_total'|trans }}</strong>:
</th>
<th id="invoice-tax-total" class="right aligned" {{ sylius_test_html_attribute('invoice-taxes-total') }}>
{{ '%0.2f'|format(invoice.taxesTotal/100) }}
Expand Down

0 comments on commit 248ff44

Please sign in to comment.