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
| Name | Typ | Pflicht | Beschreibung |
|---|---|---|---|
Itemno | Integer | erforderlich | Zero-based index of the line item. Ignored if out of range |
AllowanceBasisAmount | String | erforderlich | Base 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);