Including the customer's VAT ID on invoices varies depending in which app you're using to create your invoices. Below you'll find the instructions for the invoicing apps supported by B2B Handsfree.
Order Printer
In your invoice template in the Order Printer app, insert the following code where you want the VAT ID to appear:
{{ attributes.vatid }}
Outside the context of an order you can also access the customer's VAT ID using either of these Liquid code snippets:
{{ customer.metafields.a9design_b2breg.vatid }}
{{ customer.metafields.exemptify.vat_id }}
If the invoice template you are using displays multiple VAT IDs below the order items, then it's possible that the template by default outputs all order attributes, including the two order attributes added to each order by B2B Handsfree. If you want to hide these duplicate VAT IDs in your invoices, you need to make the following modification the the invoice template code:
In the code of the respective template, find a line that looks like this:
{% for attribute in attributes %}
Below that line insert the following code:
{% unless attribute.first == "vatid" or attribute.first == "vat-id" %}
Then look for the first occurrence of the following code a couple of lines further down:
{% endfor %}
Above that line insert the following code:
{% endunless %}
The final code should look something like this (the [...] indicates code that will vary from template to template and should not be changed):
{% for attribute in attributes %}
{% unless attribute.first == "vatid" or attribute.first == "vat-id" %}
[...]
{% endunless %}
{% endfor %}
Save the changes to the template. The duplicate VAT IDs should not be displayed anymore while any other order attributes that may be present in the order will still be shown.
Order Printer Templates / Order Printer Pro / Orderly Print
Order Printer Templates and Orderly Print have a dedicated checkbox for enabling the VAT ID on invoices:
Enable this checkbox and when you copy the template code into Order Printer Pro the customer's VAT ID will show on invoices.
Billbee
For compatibility with Billbee, B2B Handsfree saves the VAT ID in the customer metafield vat_id in the namespace exemptify and the order attribute vat-id. If you use Billbee for creating customer invoices, contact their support regarding how you can integrate the VAT ID on invoices.
Sufio
Sufio reads the VAT ID from the customer note and automatically includes it on invoices. You can read the details on Sufio's website.
β