Class EinvoiceAddress() Professional
Postal address of an invoice party.
The EinvoiceAddress class represents a postal address as defined by the European standard EN 16931. It is used for the seller postal address (BG-5), the buyer postal address (BG-8) and the deliver-to address (BG-15). An address consists of up to three address lines, the post code, the city, the country code and an optional country subdivision.
An address object can be created in two ways. EinvoiceAddress():new() can be called with a DataObject which contains members with the same names as the address fields. Alternatively, an empty address can be created with EinvoiceAddress():new() and filled with the setter methods such as :setLine1(), :setCity() and :setCountryCode(). Both ways call the same setter methods, so the values are normalized identically. The country code is converted to upper case, and character strings are converted to UTF-8 according to the current SET CHARSET setting. Values of other types are stored unchanged.
Only the country code is required to select the tax scenario in EinvFactory():createInvoice(). The remaining fields are address content, although AbstractEinvoice:validate() reports a warning if the city or the post code of the seller or buyer address is missing.
LOCAL oAddr
oAddr := EinvoiceAddress():new()
oAddr:setLine1( "Alexanderplatz 7" )
oAddr:setPostcode( "10178" )
oAddr:setCity( "Berlin" )
oAddr:setCountryCode( "DE" )
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.