Method EinvoicePaymentTerms():setDueDate() Professional

Sets the payment due date (BT-9).

Syntax
:setDueDate( <xDate> ) --> self
Parameters
<xDate>
The payment due date. 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 payment due date (BT-9). If NIL or an empty value is passed, the due date is removed. If the value is not a valid date specification, this method raises a runtime error.

If an amount is due for payment, the invoice must contain a due date, a payment terms text assigned via :setText() or at least one early payment discount added via :addSkonto(). Otherwise, the method AbstractEinvoice():validate() reports rule BR-CO-25.

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.