Method EinvoiceParty():setVatId() Professional

Sets the VAT identification number (BT-31/BT-48).

Syntax
:setVatId( <cValue> ) --> self
Parameters
<cValue>
The VAT identification number. The value may contain spaces and lower-case letters.
Return

This method returns self.

Description

Assigns the VAT identification number of the party (BT-31 for the seller, BT-48 for the buyer). Spaces and tab characters are removed from the value and the result is converted to upper case, so a value such as "de 123 456 789" is stored as "DE123456789".

The VAT identification number of the seller is required in almost every scenario. The VAT identification number of the buyer is required whenever an invoice line is resolved to the VAT category intra-community supply (K) or reverse charge (AE). The method AbstractEinvoice():validate() checks the syntax of the VAT identification number and, for intra-community supplies and reverse charge, compares its country prefix with the country of the buyer.

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.