Method EinvoiceLineItem():setKind() Professional

Sets the kind of supply of the line.

Syntax
:setKind( [<cValue>] ) --> self
Parameters
<cValue>
The kind of supply, either "goods" or "service". This defaults to "goods".
Return

This method returns self.

Description

Assigns whether the line is a supply of goods or a service. The kind of supply is used for the automatic resolution of the VAT category if no VAT category is set via :setVatCategory().

In an IntraEuEinvoice(), a goods line resolves to category K (intra-community supply) and a service line resolves to category AE (reverse charge).

In an ExportEinvoice(), a goods line resolves to category G (export outside the EU). A service line is not resolved automatically, so its VAT category must be set explicitly.

A runtime error is raised if a value other than "goods" or "service" is passed.

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.