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
| Name | Typ | Pflicht | Beschreibung |
|---|---|---|---|
CompanyName | String | erforderlich | Party name |
PostCode | String | erforderlich | Post code |
City | String | erforderlich | City |
Streetline1 | String | erforderlich | Address line 1 |
Streetline2 | String | optional (Standard: "") | Address line 2 |
CountryCode_2Letter_ISO | String | optional (Standard: "") | Country code (ISO 3166-1 alpha-2; other lengths are ignored) |
CustomerNo | String | optional (Standard: "") | Party identifier |
VAT_No | String | optional (Standard: "") | VAT identifier (added as tax registration of type VA) |
Leitweg_ID | String | optional (Standard: "") | Leitweg-ID / buyer reference of this party |
Streetline3 | String | optional (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.