Method EinvoiceLineItem():setPeriod() Professional

Sets the invoice line period (BT-26).

Syntax
:setPeriod( <xStart>, <xEnd> ) --> self
Parameters
<xStart>
The start date of the period, or NIL. The date can be specified as a date value or as a character string in the format "YYYY-MM-DD" or "YYYYMMDD".
<xEnd>
The end date of the period, or NIL. The date can be specified as a date value or as a character string in the format "YYYY-MM-DD" or "YYYYMMDD".
Return

This method returns self.

Description

Assigns the invoice line period (BG-26) with its start date (BT-134) and end date (BT-135). If NIL is passed for both <xStart> and <xEnd>, the period is cleared. A runtime error is raised if a date is not in a valid format.

The line period is optional. An invoice must specify the date of supply (rule VAT-226-7). This requirement is fulfilled by a delivery date or an invoicing period of the invoice, or by a line period on every invoice line.

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.