WriteInvoiceeTradeParty

Methode (Sub)

WriteInvoiceeTradeParty ist eine Methode der Klasse Aloaha_ZUGFeRD.XML im Aloaha ZUGFeRD SDK.

Beschreibung (aus der SDK-Dokumentation): Sets the invoicee party (InvoiceeTradeParty), i.e. a party receiving the invoice that differs from the buyer.

Hinweis: Empty values leave existing data unchanged. If no country is set, the country is derived from the first two letters of VAT_No.

Deklaration

Public Sub WriteInvoiceeTradeParty(ByVal CompanyName As String, ByVal PostCode As String, ByVal City As String, ByVal Streetline1 As String, Optional ByVal Streetline2 As String = "", Optional ByVal CountryCode_2Letter_ISO As String = "", Optional ByVal CustomerNo As String = "", Optional ByVal VAT_No As String = "", Optional ByVal Leitweg_ID As String = "", Optional ByVal Streetline3 As String = "")

Parameter

NameTypPflichtBeschreibung
CompanyNameStringerforderlichParty name
PostCodeStringerforderlichPost code
CityStringerforderlichCity
Streetline1StringerforderlichAddress line 1
Streetline2Stringoptional (Standard: "")Address line 2
CountryCode_2Letter_ISOStringoptional (Standard: "")Country code (ISO 3166-1 alpha-2; other lengths are ignored)
CustomerNoStringoptional (Standard: "")Party identifier
VAT_NoStringoptional (Standard: "")VAT identifier (added as tax registration of type VA)
Leitweg_IDStringoptional (Standard: "")Leitweg-ID / buyer reference of this party
Streetline3Stringoptional (Standard: "")Address line 3

Aufruf (VB.NET)

Dim alo As New Aloaha_ZUGFeRD.XML(Aloaha_ZUGFeRD.iXML.ZUGFeRDProfile.comfort, False, LicenseKey)
' …
alo.WriteInvoiceeTradeParty(CompanyName, PostCode, City, Streetline1)

COM-Schnittstelle

WriteInvoiceeTradeParty ist Mitglied der Schnittstelle Aloaha_ZUGFeRD.iXML (Position 142 von 328) und damit auch aus VB6, VBA/Access und anderen COM-Clients über CreateObject("Aloaha_ZUGFeRD.XML") aufrufbar. Neue Mitglieder werden immer am Ende von iXML angefügt, damit bestehende COM-Clients unverändert weiterlaufen; nach einem Update die Typbibliothek neu registrieren.

Quelle: XML-Dokumentationskommentare des Aloaha ZUGFeRD SDK (xml.vb). Gleiche Signatur in VB6/VBA über COM; in C# mit Semikolon.