Class EinvoiceParty() Professional
Represents a party of an electronic invoice.
The EinvoiceParty class represents a seller (BG-4), buyer (BG-7), payee (BG-10) or deliver-to party (BG-13) of an electronic invoice. A party consists of the name, the legal, VAT and tax registration data, the postal address, the contact point and the electronic address.
A party object can be created in two ways. Either a DataObject with the corresponding members is passed to EinvoiceParty():new(), or an empty party is created and filled via the builder methods such as :setName(), :setVatId() and :setAddress(). Each builder method returns the party object, so calls can be chained. Both ways use the same builder methods internally and therefore normalize the data identically. The VAT identification number is stripped of whitespace and converted to upper case, and text values are converted to UTF-8.
The seller is assigned to an invoice via AbstractEinvoice:setSeller(). The buyer, the payee and the deliver-to party are assigned via AbstractEinvoice:addRecipient(). Alternatively, the seller and the buyer can be passed to EinvFactory():createInvoice().
LOCAL oSeller
oSeller := EinvoiceParty():new()
oSeller:setName( "Northwind Inc., Germany" )
oSeller:setVatId( "DE123456789" )
oSeller:setAddress( EinvoiceAddress():new():setLine1("Alexanderplatz 7"):setPostcode("10178"):setCity("Berlin"):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.