Show in part info page whether price is inclusive VAT or not
Some checks failed
Build assets artifact / Build assets artifact (push) Has been cancelled
Docker Image Build / docker (push) Has been cancelled
Docker Image Build (FrankenPHP) / docker (push) Has been cancelled
Static analysis / Static analysis (push) Has been cancelled
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.2, mysql) (push) Has been cancelled
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.3, mysql) (push) Has been cancelled
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.4, mysql) (push) Has been cancelled
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.5, mysql) (push) Has been cancelled
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.2, postgres) (push) Has been cancelled
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.3, postgres) (push) Has been cancelled
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.4, postgres) (push) Has been cancelled
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.5, postgres) (push) Has been cancelled
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.2, sqlite) (push) Has been cancelled
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.3, sqlite) (push) Has been cancelled
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.4, sqlite) (push) Has been cancelled
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.5, sqlite) (push) Has been cancelled

This commit is contained in:
Jan Böhmer 2026-02-08 22:09:36 +01:00
parent 5a47b15c97
commit 4740b6d19e
3 changed files with 52 additions and 29 deletions

View file

@ -241,3 +241,11 @@
{{ datetime|format_datetime }} {{ datetime|format_datetime }}
{% endif %} {% endif %}
{% endmacro %} {% endmacro %}
{% macro vat_text(bool) %}
{% if bool === true %}
({% trans %}prices.incl_vat{% endtrans %})
{% elseif bool === false %}
({% trans %}prices.excl_vat{% endtrans %})
{% endif %}
{% endmacro %}

View file

@ -39,6 +39,7 @@
</thead> </thead>
<tbody> <tbody>
{% for detail in order.pricedetails %} {% for detail in order.pricedetails %}
{# @var detail App\Entity\PriceInformations\Pricedetail #}
<tr> <tr>
<td> <td>
@ -50,6 +51,7 @@
{% if detail.currency != (app.user.currency ?? null) and tmp is not null and tmp.GreaterThan(0) %} {% if detail.currency != (app.user.currency ?? null) and tmp is not null and tmp.GreaterThan(0) %}
<span class="text-muted">({{ pricedetail_helper.convertMoneyToCurrency(detail.price, detail.currency, app.user.currency ?? null) | format_money(app.user.currency ?? null) }})</span> <span class="text-muted">({{ pricedetail_helper.convertMoneyToCurrency(detail.price, detail.currency, app.user.currency ?? null) | format_money(app.user.currency ?? null) }})</span>
{% endif %} {% endif %}
<small class="text-muted">{{- helper.vat_text(detail.includesVAT) -}}</small>
</td> </td>
<td> <td>
{{ detail.PricePerUnit | format_money(detail.currency) }} {{ detail.PricePerUnit | format_money(detail.currency) }}
@ -57,6 +59,7 @@
{% if detail.currency != (app.user.currency ?? null) and tmp is not null and tmp.GreaterThan(0) %} {% if detail.currency != (app.user.currency ?? null) and tmp is not null and tmp.GreaterThan(0) %}
<span class="text-muted">({{ pricedetail_helper.convertMoneyToCurrency(detail.PricePerUnit, detail.currency, app.user.currency ?? null) | format_money(app.user.currency ?? null) }})</span> <span class="text-muted">({{ pricedetail_helper.convertMoneyToCurrency(detail.PricePerUnit, detail.currency, app.user.currency ?? null) | format_money(app.user.currency ?? null) }})</span>
{% endif %} {% endif %}
<small class="text-muted">{{- helper.vat_text(detail.includesVAT) -}}</small>
</td> </td>
</tr> </tr>
{% endfor %} {% endfor %}

View file

@ -12443,5 +12443,17 @@ Buerklin-API Authentication server:
<target>Prices include VAT</target> <target>Prices include VAT</target>
</segment> </segment>
</unit> </unit>
<unit id="GUsVh5T" name="prices.incl_vat">
<segment>
<source>prices.incl_vat</source>
<target>Incl. VAT</target>
</segment>
</unit>
<unit id="3ipwaVQ" name="prices.excl_vat">
<segment>
<source>prices.excl_vat</source>
<target>Excl. VAT</target>
</segment>
</unit>
</file> </file>
</xliff> </xliff>