Added VAT number to invoice PDFs (#2978)

* Added VAT number to invoice PDFs

* Update src/modules/Invoice/pdf_template/default-pdf.twig

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Yağızhan Burak YakarandCopilot authored and GitHub committed 2025-10-29 00:46:27 -07:00
1 parent 74f3c26053
commit 37a75fdc1a
2 files changed
+5 -1

No files matched your search

+2
View File
@@ -1580,6 +1580,7 @@ class Service implements InjectionAwareInterface
'Address 3' => $invoice['seller']['address_3'],
'Phone' => $invoice['seller']['phone'],
'Email' => $invoice['seller']['email'],
'VAT Number' => $invoice['seller']['company_vat'],
];
foreach ($sourceData as $label => $data) {
@@ -1604,6 +1605,7 @@ class Service implements InjectionAwareInterface
'Zip' => $invoice['buyer']['zip'],
'Country' => $invoice['buyer']['country'],
'Phone' => $invoice['buyer']['phone'],
'VAT Number' => $invoice['buyer']['company_vat'],
];
foreach ($sourceData as $label => $data) {
@@ -39,6 +39,7 @@
{% for key, value in seller %}
{% if key == 'Name' %}<b>{% endif %}
{% if key == 'Phone' %} {{ 'Phone'|trans }} :{% endif %}
{% if key == 'VAT Number' %} {{ 'VAT Number'|trans }} :{% endif %}
{{ value }}<br>
{% if key == 'Name' %}</b>{% endif %}
{% endfor %}
@@ -50,7 +51,8 @@
<p>
{% for key, value in buyer %}
{% if key == 'Company' %}<b>{% endif %}
{% if key == 'Phone '%} {{ 'Phone'|trans }} :{% endif %}
{% if key == 'Phone' %} {{ 'Phone'|trans }} :{% endif %}
{% if key == 'VAT Number' %} {{ 'VAT Number'|trans }} :{% endif %}
{{ value }}<br>
{% if key == 'Company' %}</b>{% endif %}
{% endfor %}