GetShipToTradeParty

Methode (Sub)

GetShipToTradeParty ist eine Methode der Klasse Aloaha_ZUGFeRD.XML im Aloaha ZUGFeRD SDK. Sie betrifft BG-13 (Lieferinformationen), BT-70 (Name des Waren- oder Dienstleistungsempfängers), BT-71 (Kennung des Lieferorts).

Beschreibung (aus der SDK-Dokumentation): BG-13: Reads the deliver-to party (ShipToTradeParty) of the document.

Hinweis: Outputs are only overwritten for values present in the document; pass empty strings to receive "" for values that are not set. VAT_No is only assigned if a tax registration of type VA exists.

Deklaration

Public Sub GetShipToTradeParty(ByRef CompanyName As String, ByRef PostCode As String, ByRef City As String, ByRef Streetline1 As String, Optional ByRef Streetline2 As String = "", Optional ByRef CountryCode_2Letter_ISO As String = "", Optional ByRef CustomerNo As String = "", Optional ByRef VAT_No As String = "", Optional ByRef Leitweg_ID As String = "", Optional ByRef Streetline3 As String = "", Optional ByRef GlobalID As String = "", Optional ByRef GlobalIDSchemeID As String = "")

Parameter

NameTypPflichtBeschreibung
CompanyNameStringerforderlich(output) BT-70: Deliver to party name
PostCodeStringerforderlich(output) Post code
CityStringerforderlich(output) City
Streetline1Stringerforderlich(output) Address line 1
Streetline2Stringoptional (Standard: "")(output) Address line 2
CountryCode_2Letter_ISOStringoptional (Standard: "")(output) Country code (ISO 3166-1 alpha-2)
CustomerNoStringoptional (Standard: "")(output) BT-71: Deliver to location identifier
VAT_NoStringoptional (Standard: "")(output) VAT identifier (first tax registration of type VA)
Leitweg_IDStringoptional (Standard: "")(output) Leitweg-ID / buyer reference stored for this party
Streetline3Stringoptional (Standard: "")(output) Address line 3
GlobalIDStringoptional (Standard: "")(output) Global identifier of the party
GlobalIDSchemeIDStringoptional (Standard: "")(output) Scheme identifier of the global identifier

Aufruf (VB.NET)

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

Business Terms (EN 16931)

Artikel mit GetShipToTradeParty

COM-Schnittstelle

GetShipToTradeParty ist Mitglied der Schnittstelle Aloaha_ZUGFeRD.iXML (Position 141 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.