AddItemAllowancePercent

Methode (Sub)

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

Beschreibung (aus der SDK-Dokumentation): Sets the percentage of the item price discount / charge (on the gross price) of an invoice line.

Hinweis: Writes CalculationPercent of the first gross price allowance / charge of the line and sets the profile to Extended.

Deklaration

Public Sub AddItemAllowancePercent(ByVal Itemno As Integer, ByVal AllowancePercent As String)

Parameter

NameTypPflichtBeschreibung
ItemnoIntegererforderlichZero-based index of the line item. Ignored if out of range
AllowancePercentStringerforderlichDiscount / charge percentage (normalized to 2 decimals). Ignored if empty

Aufruf (VB.NET)

Dim alo As New Aloaha_ZUGFeRD.XML(Aloaha_ZUGFeRD.iXML.ZUGFeRDProfile.comfort, False, LicenseKey)
' …
alo.AddItemAllowancePercent(Itemno, AllowancePercent)

Quelle: XML-Dokumentationskommentare des Aloaha ZUGFeRD SDK (xml.vb). Gleiche Signatur in VB6/VBA über COM; in C# mit Semikolon.