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
| Name | Typ | Pflicht | Beschreibung |
|---|---|---|---|
ProductIndex | Integer | erforderlich | Zero-based index of an existing line item. |
Description | String | erforderlich | BT-160: Item attribute name |
Value | String | erforderlich | BT-161: Item attribute value |
TypeCode | String | optional (Standard: "") | Optional type code of the attribute |
ValueMeasure | String | optional (Standard: "") | Optional measured value of the attribute |
ValueMeasureUnitCode | String | optional (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
Artikelmerkmale, Klassifizierung und Herkunftsland
Zu jeder Rechnungsposition gehören die Artikelinformationen (BG-31) : Name, Beschreibung und Artikelnummern. Darüber hinaus kann die E-Rechnung die Ware genauer beschreiben – mit einer Klassifizierung (BT-158), dem …
„E-Rechnung bereit für den Handel“: Alle 39 VeR-Pflichtfelder mit dem Aloaha ZUGFeRD SDK
Kurz: Der Verband elektronische Rechnung (VeR) hat für die Initiative „E-Rechnung bereit für den Handel“ 39 Felder der EN 16931 festgelegt, die Handelsunternehmen in jeder E-Rechnung erwarten – darunter GLN von …
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.