Method AbstractEinvoice():setPrecedingInvoice() Professional

Sets the preceding invoice reference (BG-3).

Syntax
:setPrecedingInvoice( <cId>, <xIssueDate> ) --> self
Parameters
<cId>
The number of the preceding invoice.
<xIssueDate>
The issue date of the preceding invoice. 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 reference to a preceding invoice (BG-3). This reference is required for credit notes (type code 381) and corrected invoices (type code 384). The method :validate() reports a warning for rule BR-55 if the reference is missing on such an invoice.

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.