WriteShipFromTradeParty
Methode (Sub)
WriteShipFromTradeParty ist eine Methode der Klasse Aloaha_ZUGFeRD.XML im Aloaha ZUGFeRD SDK.
Beschreibung (Originaltext der englischen SDK-Dokumentation): BG-X-30: Sets the deviating sender (ShipFromTradeParty) of the document.
Hinweis: Empty values leave existing data unchanged. If no country is set and VAT_No starts with two non-numeric characters, these are used as country code.
Deklaration
Public Sub WriteShipFromTradeParty(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 = "", Optional ByVal GlobalID As String = "", Optional ByVal GlobalIDSchemeID As String = "")
Parameter
| Name | Typ | Pflicht | Beschreibung |
|---|---|---|---|
CompanyName | String | erforderlich | Party name. NOTE: Switches profile to EXTENDED |
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. NOTE: Switches profile to EXTENDED |
VAT_No | String | optional (Standard: "") | VAT identifier (added as tax registration of type VA). NOTE: Switches profile to EXTENDED |
Leitweg_ID | String | optional (Standard: "") | Leitweg-ID / buyer reference of this party |
Streetline3 | String | optional (Standard: "") | Address line 3 |
GlobalID | String | optional (Standard: "") | Global identifier of the party. NOTE: Switches profile to EXTENDED |
GlobalIDSchemeID | String | optional (Standard: "") | 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.WriteShipFromTradeParty(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 = "";
alo.WriteShipFromTradeParty(companyName, postCode, city, streetline1);
Artikel mit WriteShipFromTradeParty
COM-Schnittstelle
WriteShipFromTradeParty ist Mitglied der Schnittstelle Aloaha_ZUGFeRD.iXML (Position 219 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.