Class EinvoiceCountryProfile() Professional

Class for the country-specific VAT rules of a seller.

Description

The EinvoiceCountryProfile class provides the parts of the VAT handling which depend on the country of the seller and which are not covered by the country-neutral EN 16931 CII XML layer. A country profile contains the following information:

Default rate - The VAT rate which is used for a standard-rated invoice line without an explicit VAT rate.

Known rates - The VAT rates which are considered normal for the country. These rates are only used to report a warning for an unusual VAT rate.

Statements - The legally required invoice statements for the cases of exemption and reverse charge (Art. 226 (11) and (11a) of Directive 2006/112/EC).

Tax number - Whether the national tax number of the seller can be used instead of a VAT identifier.

Extra validation - An optional code block for country-specific checks which are not covered by the EU-wide rules, for example the German small business (Kleinunternehmer) hint.

Built-in profiles for DE, AT and FR are looked up by the country of the seller through EinvoiceProfileRegistry():forCountry(). Most applications therefore do not create a country profile directly. Instead, a custom profile is registered with the EinvoiceProfileRegistry class, or the neutral default profile is used for a country without a registered profile.

Constructors
:new()
Initializes a new country profile.
Methods
:getCountry()
Returns the country code of the profile.
:getDefaultRate()
Returns the default VAT rate.
:getExtraValidate()
Returns the country-specific validation code block.
:getHints()
Returns the warning hints of the profile.
:getKnownRates()
Returns the VAT rates known for the country.
:getTaxNumberSuffices()
Checks whether a tax number can replace a VAT identifier.
:getTexts()
Returns the legally required invoice statements.
:isKnownRate()
Checks whether a VAT rate is known for the country.
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.