GetMonetarySummation

Methode (Function) · gibt String zurück

GetMonetarySummation 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): BG-22: Reads a document total amount.

Rückgabe: The amount as string, or "0.00" if not set

Hinweis: SummationType values: LineTotalAmount (BT-106), AllowanceTotalAmount (BT-107), ChargeTotalAmount (BT-108), TaxBasisTotalAmount (BT-109), TaxTotalAmount (BT-110), GrandTotalAmount (BT-112), TotalPrepaidAmount (BT-113), RoundingAmount (BT-114), DuePayableAmount (BT-115).

Deklaration

Public Function GetMonetarySummation(ByVal SummationType As iXML.SummationType) As String

Parameter

NameTypPflichtBeschreibung
SummationTypeiXML.SummationTypeerforderlichWhich total to read (see remarks)

Aufruf (VB.NET)

Dim alo As New Aloaha_ZUGFeRD.XML(Aloaha_ZUGFeRD.iXML.ZUGFeRDProfile.comfort, False, "IHR-LIZENZSCHLUESSEL")
Dim SummationType As iXML.SummationType = Nothing
Dim ergebnis = alo.GetMonetarySummation(SummationType)

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);
Aloaha_ZUGFeRD.iXML.SummationType summationType = default;
var ergebnis = alo.GetMonetarySummation(summationType);

Business Terms (EN 16931)

Artikel mit GetMonetarySummation

COM-Schnittstelle

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