SetPayeeTradeParty

Methode (Sub)

SetPayeeTradeParty ist eine Methode der Klasse Aloaha_ZUGFeRD.XML im Aloaha ZUGFeRD SDK. Sie betrifft BG-10 (Zahlungsempfänger), BT-60 (Kennung des Zahlungsempfängers), BT-59 (Firmierung/Name des Zahlungsempfängers).

Beschreibung (aus der SDK-Dokumentation): BG-10: Sets the payee (PayeeTradeParty) of the invoice. Nothing values are treated as empty strings.

Hinweis: Passing a non-empty RoleCode, PersonName, DepartmentName, PhoneNumber, FAXNumber, Street1-3, PostCode, City or Country switches ZUGFeRD_Profile to EXTENDED.

Deklaration

Public Sub SetPayeeTradeParty(ByVal ID As String, ByVal GlobalID As String, ByVal GlobalIDScheme As String, ByVal CompanyName As String, ByVal RoleCode As String, ByVal VAT As String, ByVal PersonName As String, ByVal DepartmentName As String, ByVal PhoneNumber As String, ByVal FAXNumber As String, ByVal email As String, ByVal Street1 As String, ByVal Street2 As String, ByVal Street3 As String, ByVal PostCode As String, ByVal City As String, ByVal Country As String, ByVal CountrySubDivisionName As String)

Parameter

NameTypPflichtBeschreibung
IDStringerforderlichBT-60: Payee identifier
GlobalIDStringerforderlichBT-60: Global identifier of the payee
GlobalIDSchemeStringerforderlichBT-60-1: Scheme of the global identifier (e.g. 0088 for GLN)
CompanyNameStringerforderlichBT-59: Payee name
RoleCodeStringerforderlichRole code of the party (EXTENDED only)
VATStringerforderlichVAT identifier of the payee; stored as the only tax registration with scheme VA
PersonNameStringerforderlichContact person name (EXTENDED only)
DepartmentNameStringerforderlichContact department name (EXTENDED only)
PhoneNumberStringerforderlichContact telephone number (EXTENDED only)
FAXNumberStringerforderlichContact fax number (EXTENDED only)
emailStringerforderlichContact e-mail address
Street1StringerforderlichAddress line 1 (EXTENDED only)
Street2StringerforderlichAddress line 2 (EXTENDED only)
Street3StringerforderlichAddress line 3 (EXTENDED only)
PostCodeStringerforderlichPost code (EXTENDED only)
CityStringerforderlichCity (EXTENDED only)
CountryStringerforderlichCountry code (EXTENDED only)
CountrySubDivisionNameStringerforderlichCountry subdivision / state

Aufruf (VB.NET)

Dim alo As New Aloaha_ZUGFeRD.XML(Aloaha_ZUGFeRD.iXML.ZUGFeRDProfile.comfort, False, LicenseKey)
' …
alo.SetPayeeTradeParty(ID, GlobalID, GlobalIDScheme, CompanyName, RoleCode, VAT, PersonName, DepartmentName, PhoneNumber, FAXNumber, email, Street1, Street2, Street3, PostCode, City, Country, CountrySubDivisionName)

Business Terms (EN 16931)

Artikel mit SetPayeeTradeParty

COM-Schnittstelle

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