Method EinvoiceLineItem():setVatRate() Professional

Sets the VAT rate of the line (BT-152).

Syntax
:setVatRate( <xValue> ) --> self
Parameters
<xValue>
The VAT rate in percent, specified as a numeric value, a character string or an EinvoiceDecimal() object, or NIL to clear the rate.
Return

This method returns self.

Description

Assigns an explicit VAT rate for the line (BT-152) as a percentage. If NIL is passed, the VAT rate is cleared.

The rate is used if the VAT category of the line resolves to standard rate (S). In the scenarios DomesticEinvoice(), IntraEuEinvoice() and ExportEinvoice(), the default rate of the seller profile is used if no rate is set. In a DomesticEinvoice, a line without VAT category and with a rate of zero is treated as zero rated (Z). In a ManualEinvoice(), a standard rated line requires an explicit rate.

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.