Method EinvoicePaymentTerms():new() Professional

Initializes a new payment terms object.

Syntax
:new( [<oInit>] ) --> self
Parameters
<oInit>
An optional DataObject with the initial values. This defaults to NIL, meaning an empty object is created whose values can be assigned via :setDueDate(), :setText() and :addSkonto().
Return

This method returns self.

Description

Initializes a payment terms object. If <oInit> is specified, the values are taken from its members :DueDate, :Text and :Skonto. All members are optional. The members :DueDate and :Text are assigned via :setDueDate() and :setText(). The member :Skonto can contain an array of DataObjects with the members :Days, :Percent and :BaseAmount. Each element of this array is added via :addSkonto().

If <oInit> is specified but is not an object, this method raises a runtime error.

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.