Method EinvoicePaymentTerms():from() Professional

Converts a value into a payment terms object.

Syntax
:from( <xTerms> ) --> oTerms
Parameters
<xTerms>
The payment terms, specified either as an EinvoicePaymentTerms object or as a DataObject with the corresponding members. If NIL is passed, an empty object is created.
Return

An EinvoicePaymentTerms object.

Description

Returns an EinvoicePaymentTerms object for <xTerms>. If <xTerms> is already an EinvoicePaymentTerms object, it is returned unchanged. Otherwise, a new object is created via EinvoicePaymentTerms():new( xTerms ). This allows a DataObject with the corresponding members to be used wherever an EinvoicePaymentTerms object is expected.

The method is used by AbstractEinvoice():setPaymentTerms(). Refer to the method :init() for the supported members. If <xTerms> is neither NIL nor an object, a runtime error is raised.

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.