ReadTradeAllowanceChargesCSV
Methode (Function) · gibt String zurück
ReadTradeAllowanceChargesCSV ist eine Methode der Klasse Aloaha_ZUGFeRD.XML im Aloaha ZUGFeRD SDK. Sie betrifft BG-20 (Abschläge auf Dokumentenebene), BG-21 (Zuschläge auf Dokumentenebene).
Beschreibung (Originaltext der englischen 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, exemptionreason, exemptionreasoncode.
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
| Name | Typ | Pflicht | Beschreibung |
|---|---|---|---|
Seperator_Char | String | optional (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, "IHR-LIZENZSCHLUESSEL")
Dim ergebnis = alo.ReadTradeAllowanceChargesCSV()
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);
var ergebnis = alo.ReadTradeAllowanceChargesCSV();
Business Terms (EN 16931)
Artikel mit ReadTradeAllowanceChargesCSV
COM-Schnittstelle
ReadTradeAllowanceChargesCSV ist Mitglied der Schnittstelle Aloaha_ZUGFeRD.iXML (Position 233 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.