GetShipFromTradeParty

Methode (Sub)

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

Beschreibung (Originaltext der englischen SDK-Dokumentation): BG-X-30: Reads the deviating sender (ShipFromTradeParty) of the document.

Hinweis: Values that are not set are returned as empty strings.

Deklaration

Public Sub GetShipFromTradeParty(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) 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) Party 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, "IHR-LIZENZSCHLUESSEL")
Dim CompanyName As String = ""
Dim PostCode As String = ""
Dim City As String = ""
Dim Streetline1 As String = ""
alo.GetShipFromTradeParty(CompanyName, PostCode, City, Streetline1)

Aufruf (C#)

var zfStandard = Aloaha_ZUGFeRD.iXML.ZUGFeRDVersion.xInvoice;   // Optional ByRef im Konstruktor: in C# mit ref übergeben
var alo = new Aloaha_ZUGFeRD.XML(Aloaha_ZUGFeRD.iXML.ZUGFeRDProfile.comfort, false, "IHR-LIZENZSCHLUESSEL", ref zfStandard);
string companyName = "";
string postCode = "";
string city = "";
string streetline1 = "";
string streetline2 = "";
string countryCode_2Letter_ISO = "";
string customerNo = "";
string vaT_No = "";
string leitweg_ID = "";
string streetline3 = "";
string globalID = "";
string globalIDSchemeID = "";
alo.GetShipFromTradeParty(ref companyName, ref postCode, ref city, ref streetline1, ref streetline2, ref countryCode_2Letter_ISO, ref customerNo, ref vaT_No, ref leitweg_ID, ref streetline3, ref globalID, ref globalIDSchemeID);

COM-Schnittstelle

GetShipFromTradeParty ist Mitglied der Schnittstelle Aloaha_ZUGFeRD.iXML (Position 221 von 343) 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# werden ByRef-Parameter mit ref übergeben, VB-Eigenschaften mit Parametern heißen get_…/set_…, optionale Parameter können entfallen.