ReadTradeAllowanceChargesCSV

Methode (Function) · gibt String zurück

ReadTradeAllowanceChargesCSV ist eine Methode der Klasse Aloaha_ZUGFeRD.XML in der Aloaha ZUGFeRD SDK. Sie betrifft BG-20 (Abschläge auf Dokumentenebene), BG-21 (Zuschläge auf Dokumentenebene).

Beschreibung (aus der SDK-Dokumentation): Exports the document level allowances and charges (BG-20, BG-21) of the current invoice as CSV text: one header row plus one row per allowance/charge. Columns: chargeindicator (1 = charge, 0 = allowance), basisamount, calculationpercent, actualamount, reason, taxpercent, taxtypecode, taxcategorycode, reasoncode, currency.

Rückgabe: CSV text with lines separated by CRLF, or an empty string if there are no allowances or charges.

Hinweis: Only the first tax entry of each allowance/charge is exported.

Deklaration

Public Function ReadTradeAllowanceChargesCSV(Optional ByVal Seperator_Char As String = ",") As String

Parameter

NameTypPflichtBeschreibung
Seperator_CharStringoptional (Standard: ")Column separator; empty or Nothing uses a comma

Aufruf (VB.NET)

Dim alo As New Aloaha_ZUGFeRD.XML(Aloaha_ZUGFeRD.iXML.ZUGFeRDProfile.comfort, False, LicenseKey)
' …
Dim ergebnis = alo.ReadTradeAllowanceChargesCSV()

Business Terms (EN 16931)

Artikel mit ReadTradeAllowanceChargesCSV

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