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
| Name | Typ | Pflicht | Beschreibung |
|---|---|---|---|
CompanyName | String | erforderlich | (output) BT-70: Deliver to party name |
PostCode | String | erforderlich | (output) Post code |
City | String | erforderlich | (output) City |
Streetline1 | String | erforderlich | (output) Address line 1 |
Streetline2 | String | optional (Standard: "") | (output) Address line 2 |
CountryCode_2Letter_ISO | String | optional (Standard: "") | (output) Country code (ISO 3166-1 alpha-2) |
CustomerNo | String | optional (Standard: "") | (output) BT-71: Deliver to location identifier |
VAT_No | String | optional (Standard: "") | (output) VAT identifier (first tax registration of type VA) |
Leitweg_ID | String | optional (Standard: "") | (output) Leitweg-ID / buyer reference stored for this party |
Streetline3 | String | optional (Standard: "") | (output) Address line 3 |
GlobalID | String | optional (Standard: "") | (output) Global identifier of the party |
GlobalIDSchemeID | String | optional (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
Lieferanschrift in der E-Rechnung angeben (BT-75 bis BT-80)
Werden Waren an eine andere Adresse geliefert als an den Käufer, gehört diese Adresse als Lieferanschrift (BG-15) in die E-Rechnung. Sie ist Teil der Lieferinformationen (BG-13) und besteht aus bis zu drei Adresszeilen, …
Registernummer und globale Kennungen lesen (BT-30, BT-47, BT-71)
E-Rechnungen identifizieren Unternehmen und Orte auf mehreren Wegen: über die Registernummer (Handelsregister o. Ä.) von Verkäufer ( BT-30 ) und Käufer ( BT-47 ) und über globale Kennungen wie GLN oder DUNS, etwa beim …
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.