Method EinvoiceParty():from() Professional

Converts a value into a party object.

Syntax
:from( <xParty> ) --> oParty
Parameters
<xParty>
The party, specified either as an EinvoiceParty object or as a DataObject with the corresponding members. Refer to the method :init() for a list of the supported members. If NIL is passed, an empty party is created.
Return

An EinvoiceParty object.

Description

Returns an EinvoiceParty object for the value passed. If <xParty> is already an EinvoiceParty object, it is returned unchanged. Otherwise, a new party is created via EinvoiceParty():new( xParty ). This allows a DataObject with the corresponding members to be used wherever a party is expected, for example in EinvFactory():createInvoice(), AbstractEinvoice:setSeller() and AbstractEinvoice:addRecipient().

If <xParty> 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.