addDesignatedProductClassification

Methode (Sub)

addDesignatedProductClassification ist eine Methode der Klasse Aloaha_ZUGFeRD.XML im Aloaha ZUGFeRD SDK. Sie betrifft BT-158 (Kennung der Artikelklassifizierung).

Beschreibung (Originaltext der englischen SDK-Dokumentation): BT-158-00: Adds an item classification to an invoice line.

Hinweis: Can be called several times per line; each call appends a classification. Ignored if the index is out of range.

Deklaration

Public Sub addDesignatedProductClassification(ByVal Index As Integer, ByVal ClassCode As String, ByVal listID As String, ByVal listVersionID As String, Optional ByVal ClassName As String = "")

Parameter

NameTypPflichtBeschreibung
IndexIntegererforderlichZero-based line item index
ClassCodeStringerforderlichBT-158: Item classification identifier
listIDStringerforderlichBT-158-1: Scheme identifier
listVersionIDStringerforderlichBT-158-2: Scheme version identifier
ClassNameStringoptional (Standard: "")BT-X-13: Classification name. NOTE: Switches profile to EXTENDED

Aufruf (VB.NET)

Dim alo As New Aloaha_ZUGFeRD.XML(Aloaha_ZUGFeRD.iXML.ZUGFeRDProfile.comfort, False, "IHR-LIZENZSCHLUESSEL")
Dim Index As Integer = 0
Dim ClassCode As String = ""
Dim listID As String = ""
Dim listVersionID As String = ""
alo.addDesignatedProductClassification(Index, ClassCode, listID, listVersionID)

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);
int index = 0;
string classCode = "";
string listID = "";
string listVersionID = "";
alo.addDesignatedProductClassification(index, classCode, listID, listVersionID);

Business Terms (EN 16931)

Artikel mit addDesignatedProductClassification

COM-Schnittstelle

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

Quelle: XML-Dokumentationskommentare des Aloaha ZUGFeRD SDK (xml.vb). Gleiche Signatur in VB6/VBA über COM. In C# werden ByRef-Parameter mit ref übergeben, VB-Eigenschaften mit Parametern heißen get_…/set_…, optionale Parameter können entfallen.