I want to display my tax registration number based on which customer is in the invoice.
basically i sell to customers in EU and Canada and in the invoice theme i want to make it ‘automatically’ show the tax number of my business based on the customer.
So i created the following custom fields:
Basically, the idea is that i have two custom fields for my business to store the registration number and custom fields at Customer level to indicate which of the vat or hst number to show.
I have problem configuring the team as i am not very familiar with the syntax. This is what i have so far, but it gives me a null error:
{% for field in business.custom_fields %}
{% if (field.label == 'VAT Number' && custom_fields['Show VAT Number'] == 'Yes') %}
<div>{{ field.label }} {{ field.text }}</div>
{% endif %}
{% if( field.label == 'HST Reg. No' && custom_fields['Show HST Number'] == 'Yes' ) %}
<div>{{ field.label }} {{ field.text }}</div>
{% endif %}
{% endfor %}