AddMonetarySummation

Methode (Sub)

AddMonetarySummation 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: Sets a document total amount.

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 Sub AddMonetarySummation(ByVal Amount As String, ByVal SummationType As iXML.SummationType, Optional ByVal CurrencyID As String = "")

Parameter

NameTypPflichtBeschreibung
AmountStringerforderlichAmount (comma is converted to dot, normalized to 2 decimals)
SummationTypeiXML.SummationTypeerforderlichWhich total to set (see remarks)
CurrencyIDStringoptional (Standard: "")Currency code. Empty uses the invoice currency; sets the invoice currency if not yet set

Aufruf (VB.NET)

Dim alo As New Aloaha_ZUGFeRD.XML(Aloaha_ZUGFeRD.iXML.ZUGFeRDProfile.comfort, False, "IHR-LIZENZSCHLUESSEL")
Dim Amount As String = ""
Dim SummationType As iXML.SummationType = Nothing
alo.AddMonetarySummation(Amount, 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);
string amount = "";
Aloaha_ZUGFeRD.iXML.SummationType summationType = default;
alo.AddMonetarySummation(amount, summationType);

Business Terms (EN 16931)

Artikel mit AddMonetarySummation

COM-Schnittstelle

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