Changing language of VAT on invoice

I have a small question. I understand you can change the language of the invoice using the css style sheets. That works like a charm. Only one thing stays strange. I made an English language invoice for international customers and all goes well except for the VAT. It still says in Dutch ‘inclusief BTW’ . I would like to change that but can’t find how I can do that. Is that something which is easy to do?

Thanks!

Rather than creating your own view template, why not just change your language preference to English when you want an English invoice? You can change it right back.

I know that, but as I have customers in the Netherlands and abroad and sometimes several at a time it’s not really handy changing all the time. Just choosing it when making the invoice is much more convenient…

I understand. The capability you inquired about is not currently available. I was just mentioning a workaround that preserves full functionality. The problem with new view templates, assuming you begin with the default example, is that they are missing much of Manager’s functionality, such as showing amounts already credited. The example is not the template Manager uses. The actual default template is not even written in HTML/CSS.

There is one option.

You could edit HTML template where it is using variable to show inclusief BTW and basically inject some sort of condition… if variable text is inclusief BTW then show Includes BTW instead.

I’m not very familiar with BTW/VAT in Netherlands but why do you charge international customers BTW/VAT? Do you have to?

Thanks. I’ll look at it. I have to charge VAT to all EU customers. Outside of the EU no VAT has to be charged. That’s why…

If you paste here the HTML segment which is printing tax totals on invoice, I will be able to suggest how to re-write it.

Got it!

{% if amounts_include_tax %}
                {% if rounding != 0 %}
                <tr>
                    <td colspan="5" style="text-align: right; padding: 5px 10px">Round off</td>
                    <td style="border: 1px solid #000; text-align: right; padding: 5px 10px; white-space: nowrap">{{ rounding | money }}</td>
                </tr>
                {% endif %}
                <tr>
                    <td colspan="5"  style="text-align: right; padding: 5px 10px; font-weight: bold">Total</td>
                    <td style="border: 1px solid #000; text-align: right; padding: 5px 10px; font-weight: bold; white-space: nowrap">{{ total | money }}</td>
                </tr>
                {% for tax_component in tax_components %}
                <tr>
                    <td colspan="5"  style="text-align: right; padding: 5px 10px">{{ tax_component.code }}</td>
                    <td style="border: 1px solid #000; text-align: right; padding: 5px 10px; white-space: nowrap">{{ tax_component.amount | money }}</td>
                </tr>
              {% endfor %}
              {% else %}
                {% assign tax_components_count = tax_components | size %}
                {% if tax_components_count > 0 %}
                <tr>
                  <td colspan="5" style="text-align: right; padding: 5px 10px; font-weight: bold">Subtotal</td>
                  <td style="border: 1px solid #000; text-align: right; padding: 5px 10px; font-weight: bold; white-space: nowrap">{{ subtotal | money }}</td>
                </tr>
                {% endif %}
                {% for tax_component in tax_components %}
                <tr>
                    <td colspan="5"  style="text-align: right; padding: 5px 10px">{{ tax_component.code }}</td>
                    <td style="border: 1px solid #000; text-align: right; padding: 5px 10px; white-space: nowrap">{{ tax_component.amount | money }}</td>
                </tr>
                {% endfor %}
                {% if rounding != 0 %}
                <tr>
                    <td colspan="5"  style="text-align: right; padding: 5px 10px">Round off</td>
                    <td style="border: 1px solid #000; text-align: right; padding: 5px 10px; white-space: nowrap">{{ rounding | money }}</td>
                </tr>
                {% endif %}
                <tr>
                    <td colspan="5"  style="text-align: right; padding: 5px 10px; font-weight: bold">Total</td>
                    <td style="border: 1px solid #000; text-align: right; padding: 5px 10px; font-weight: bold; white-space: nowrap">{{ total | money }}</td>
                </tr>
                {% endif %}

This line:

    <td colspan="5"  style="text-align: right; padding: 5px 10px">{{ tax_component.code }}</td>

contains variable {{ tax_component.code }}

Try to rewrite this line as:

    {% assign taxComponentName = tax_component.code %}
    {% if taxComponentName == "inclusief BTW" %}{% assign taxComponentName = "Includes VAT" %}{% endif %}
    <td colspan="5"  style="text-align: right; padding: 5px 10px">{{ taxComponentName }}</td>

Doesn’t seem to change…

Can you show screenshot of the part of invoice which says “inclusief BTW” ? Maybe it says something else.

Of course:

I had already changed the i to I…

See, it says “Inclusief BTW 6%” not “inclusief BTW”

You need to adjust the code I have provided so it looks for “Inclusief BTW 6%”.

Ok, but the percentage can change of course depending on what’s the VAT class…

Ah, but I can make a second line then with 21% probably… (It works now!)

Yeah, that’s right. You need to repeat the middle line multiple times per each tax code.

Thank you very much for the help! works now. Have a good night!