addApplicableProductCharacteristics

Methode (Function) · gibt Integer zurück

addApplicableProductCharacteristics ist eine Methode der Klasse Aloaha_ZUGFeRD.XML im Aloaha ZUGFeRD SDK. Sie betrifft BG-32 (Artikelattribute), BT-160 (Artikelattributname), BT-161 (Artikelattributwert).

Beschreibung (Originaltext der englischen SDK-Dokumentation): BG-32: Adds an item attribute (ApplicableProductCharacteristic) to a line item.

Rückgabe: The new number of attributes of that line item, or 0 if the line item does not exist or on error.

Deklaration

Public Function addApplicableProductCharacteristics(ByVal ProductIndex As Integer, ByVal Description As String, ByVal Value As String, Optional ByVal TypeCode As String = "", Optional ByVal ValueMeasure As String = "", Optional ByVal ValueMeasureUnitCode As String = "") As Integer

Parameter

NameTypPflichtBeschreibung
ProductIndexIntegererforderlichZero-based index of an existing line item.
DescriptionStringerforderlichBT-160: Item attribute name
ValueStringerforderlichBT-161: Item attribute value
TypeCodeStringoptional (Standard: "")Optional type code of the attribute
ValueMeasureStringoptional (Standard: "")Optional measured value of the attribute
ValueMeasureUnitCodeStringoptional (Standard: "")Optional unit code of ValueMeasure

Aufruf (VB.NET)

Dim alo As New Aloaha_ZUGFeRD.XML(Aloaha_ZUGFeRD.iXML.ZUGFeRDProfile.comfort, False, "IHR-LIZENZSCHLUESSEL")
Dim ProductIndex As Integer = 0
Dim Description As String = ""
Dim Value As String = ""
Dim ergebnis = alo.addApplicableProductCharacteristics(ProductIndex, Description, Value)

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 productIndex = 0;
string description = "";
string value = "";
var ergebnis = alo.addApplicableProductCharacteristics(productIndex, description, value);

Business Terms (EN 16931)

Artikel mit addApplicableProductCharacteristics

COM-Schnittstelle

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