Method ManualEinvoice():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 manual scenario. The method is called by :toModel() and :validate() for each invoice line.

Unlike the automatic scenarios, the category is never derived from the kind of the line or from the countries of the seller and the buyer. Instead, the VAT category of the line is used as follows:

No category - No category is resolved. In this case, all members of the result are NIL, and :validateScenario() reports a "MANUAL" error.

"S" - The line is standard-rated with its own VAT rate. The default rate of the seller's country profile is not used.

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

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

"K" - The line is assigned the category K (intra-community supply) with the exemption reason code VATEX-EU-IC and the intra-community statement of the seller's country profile.

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

"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.

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.