Method DomesticEinvoice():resolveVatCategory() Professional

Resolves the VAT category and rate of an invoice line.

Syntax
:resolveVatCategory( <oLine> ) --> oTaxResult
Parameters
<oLine>
The EinvoiceLineItem() object to process.
Return

A DataObject with the members :Category, :Rate, :ExemptionReason and :ExemptionReasonCode.

Description

Determines the VAT category and the VAT rate which apply to an invoice line in the domestic scenario. The method is called by :toModel() and :validate() for each invoice line.

If the seller applies the small business scheme, every line is assigned the category E (exempt) with the small business statement of the seller's country profile. Otherwise, the category is resolved from the VAT category of the line as follows:

No category - The line is assigned the category Z (zero rated) if its VAT rate is 0. Otherwise, the line is standard-rated with its own VAT rate or, if it has none, with the default rate of the seller's country profile.

"S" - The line is standard-rated with its own VAT rate or, if it has none, with the default rate of the seller's country profile.

"Z" - The line is assigned the category Z with a VAT rate of 0.

"AE" - The line is assigned the category AE (domestic reverse charge) with the exemption reason code VATEX-EU-AE and the domestic reverse charge statement of the seller's country profile.

"E" - The line is assigned the category E (exempt). No statement is provided by the country profile, so the exemption reason must be specified on the line.

Any other category - The category is taken over unchanged, together with the VAT rate of the line (or 0 if it has none) and the exemption reason of the line.

An exemption reason or exemption reason code specified on the line always takes precedence over the values derived from the country profile.

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.