WriteShipToTradePartyItem

Methode (Sub)

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

Beschreibung (aus der SDK-Dokumentation): Sets a deliver-to party (ShipToTradeParty) on an invoice line.

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. Writes a single VAT registration for the line party.

Deklaration

Public Sub WriteShipToTradePartyItem(ByVal ItemID As String, 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

NameTypPflichtBeschreibung
ItemIDStringerforderlichZero-based line item index (passed as string)
CompanyNameStringerforderlichParty name. NOTE: Switches profile to EXTENDED
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. NOTE: Switches profile to EXTENDED
VAT_NoStringoptional (Standard: "")VAT identifier; replaces the tax registrations of the line party with a single entry of type VA
Leitweg_IDStringoptional (Standard: "")Leitweg-ID / buyer reference of this party
Streetline3Stringoptional (Standard: "")Address line 3
GlobalIDStringoptional (Standard: "")Global identifier of the party. NOTE: Switches profile to EXTENDED
GlobalIDSchemeIDStringoptional (Standard: "")Scheme identifier of the global identifier

Aufruf (VB.NET)

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

Artikel mit WriteShipToTradePartyItem

COM-Schnittstelle

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