Method AbstractEinvoice():addLineItem() Professional

Adds an invoice line (BG-25).

Syntax
:addLineItem( <xItem> ) --> self
Parameters
<xItem>
The invoice line, specified either as an EinvoiceLineItem object or as a DataObject with the corresponding members. Refer to the method EinvoiceLineItem():from() for details.
Return

This method returns self.

Description

Adds an invoice line (BG-25) to the invoice. Every invoice requires at least one line. The method :validate() reports rule BR-16 if no line has been added.

Lines are numbered in the order in which they are added, unless an identifier is assigned to the line via EinvoiceLineItem:setId().

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.