ReadTotalsCSV

Methode (Function) · gibt String zurück

ReadTotalsCSV ist eine Methode der Klasse Aloaha_ZUGFeRD.XML im Aloaha ZUGFeRD SDK. Sie betrifft BG-22 (Gesamtsummen auf Dokumentenebene).

Beschreibung (Originaltext der englischen SDK-Dokumentation): Exports the invoice header data and document totals of the current invoice as CSV text (one header row and one data row). Columns include currency, type, leitwegid, invoiceid, invoicedate, the BG-22 totals (LineTotalAmount ... DuePayableAmount), payment terms, PaymentReference, invoice notes, delivery and billing period dates, LanguageID, BusinessProcessSpecifiedDocumentContextParameter, VAT breakdown (TAX* columns per rate), preceding invoice reference, project, contract and order references.

Rückgabe: CSV text: header line and data line separated by CRLF. Line breaks are replaced in free-text and reference values (e.g. notes, payment terms, IDs).

Hinweis: Repeated groups (notes, VAT breakdown) get a numeric suffix from the second entry on, e.g. InvoiceNote1, TAXTypeCode1. Values are not quoted.

Deklaration

Public Function ReadTotalsCSV(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, "IHR-LIZENZSCHLUESSEL")
Dim ergebnis = alo.ReadTotalsCSV()

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.ReadTotalsCSV();

Business Terms (EN 16931)

Artikel mit ReadTotalsCSV

COM-Schnittstelle

ReadTotalsCSV ist Mitglied der Schnittstelle Aloaha_ZUGFeRD.iXML (Position 324 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.

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.