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
| Name | Typ | Pflicht | Beschreibung |
|---|---|---|---|
ItemID | String | erforderlich | Zero-based line item index (passed as string) |
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; replaces the tax registrations of the line party with a single entry of type VA |
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, LicenseKey)
' …
alo.WriteShipToTradePartyItem(ItemID, CompanyName, PostCode, City, Streetline1)
Artikel mit WriteShipToTradePartyItem
Innergemeinschaftlichen Rechnung und ShipToTradeParty, BT-80
Bei einer innergemeinschaftlichen Rechnung und dem CategoryCode K bei der Umsatzsteuer erhält man häufig von Validatoren die folgenden Fehler: [BR-IC-12]-In an Invoice with a VAT breakdown (BG-23)…
F: Warum warnt der Validator vor einem leeren ApplicableHeaderTradeDelivery (PEPPOL-EN16931-R008)?
Kurz: Die Warnung PEPPOL-EN16931-R008 („Document MUST not contain empty elements“) beim Element ApplicableHeaderTradeDelivery bedeutet: Der Lieferblock ist vorhanden, aber leer. Der Block ist im Schema Pflicht und muss …
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.