Method ExportEinvoice():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 export scenario. The method is called by :toModel() and :validate() for each invoice line. The category is resolved from the VAT category of the line as follows:

No category - A line of the kind "goods" is assigned the category G (export) with the exemption reason code VATEX-EU-G and the export statement of the seller's country profile. For any other kind, no category is resolved. In this case, all members of the result are NIL, and :validateScenario() reports a "SCENARIO" error, since a service to a third country requires an explicit VAT category.

"O" - The line is assigned the category O (not subject to VAT) without a VAT rate, with the exemption reason code VATEX-EU-O and the corresponding statement 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.

"G" - The line is assigned the category G (export, Art. 146) with the exemption reason code VATEX-EU-G and the export statement of the seller's country profile.

Any other category - The category is taken over with a VAT rate of 0 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.