AddItemAllowanceBasisAmount

Methode (Sub)

AddItemAllowanceBasisAmount ist eine Methode der Klasse Aloaha_ZUGFeRD.XML im Aloaha ZUGFeRD SDK.

Beschreibung (Originaltext der englischen SDK-Dokumentation): Sets the base amount of the item price discount / charge (on the gross price) of an invoice line.

Hinweis: Writes BasisAmount of the first gross price allowance / charge of the line.

Deklaration

Public Sub AddItemAllowanceBasisAmount(ByVal Itemno As Integer, ByVal AllowanceBasisAmount As String)

Parameter

NameTypPflichtBeschreibung
ItemnoIntegererforderlichZero-based index of the line item. Ignored if out of range
AllowanceBasisAmountStringerforderlichBase amount of the discount / charge (normalized to 4 decimals). Ignored if empty

Aufruf (VB.NET)

Dim alo As New Aloaha_ZUGFeRD.XML(Aloaha_ZUGFeRD.iXML.ZUGFeRDProfile.comfort, False, "IHR-LIZENZSCHLUESSEL")
Dim Itemno As Integer = 0
Dim AllowanceBasisAmount As String = ""
alo.AddItemAllowanceBasisAmount(Itemno, AllowanceBasisAmount)

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 itemno = 0;
string allowanceBasisAmount = "";
alo.AddItemAllowanceBasisAmount(itemno, allowanceBasisAmount);

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.