getTotals

Methode (Sub)

getTotals ist eine Methode der Klasse Aloaha_ZUGFeRD.XML im Aloaha ZUGFeRD SDK. Sie betrifft BG-22 (Gesamtsummen auf Dokumentenebene), BT-106 (Summe der Nettobeträge aller Rechnungspositionen), BT-112 (Rechnungsgesamtbetrag einschließlich Umsatzsteuer), BT-115 (Fälliger Zahlungsbetrag).

Beschreibung (Originaltext der englischen SDK-Dokumentation): BG-22: Reads the document totals.

Hinweis: Empty amounts are returned as "0.00". If a grand total exists but neither prepaid nor due payable amount is set, the due payable amount is first set to the grand total.

Deklaration

Public Sub getTotals(ByRef NettoTotal As String, Optional ByRef Total As String = "0.00", Optional ByRef DuePayable As String = "0.00", Optional ByRef TaxableTotal As String = "0.00", Optional ByRef TaxTotal As String = "0.00", Optional ByRef DiscountTotal As String = "0.00", Optional ByRef Prepaid As String = "0.00", Optional ByRef RoundingAmount As String = "0.00", Optional ByRef ChargeTotal As String = "0.00", Optional ByRef Currency As String = "")

Parameter

NameTypPflichtBeschreibung
NettoTotalStringerforderlich(output) BT-106: Sum of invoice line net amounts
TotalStringoptional (Standard: "0.00")(output) BT-112: Invoice total amount with VAT
DuePayableStringoptional (Standard: "0.00")(output) BT-115: Amount due for payment
TaxableTotalStringoptional (Standard: "0.00")(output) BT-109: Invoice total amount without VAT
TaxTotalStringoptional (Standard: "0.00")(output) BT-110: Invoice total VAT amount
DiscountTotalStringoptional (Standard: "0.00")(output) BT-107: Sum of allowances on document level
PrepaidStringoptional (Standard: "0.00")(output) BT-113: Paid amount
RoundingAmountStringoptional (Standard: "0.00")(output) BT-114: Rounding amount
ChargeTotalStringoptional (Standard: "0.00")(output) BT-108: Sum of charges on document level
CurrencyStringoptional (Standard: "")(output) Currency of the totals, taken from the grand total, line total, tax total or due payable amount

Aufruf (VB.NET)

Dim alo As New Aloaha_ZUGFeRD.XML(Aloaha_ZUGFeRD.iXML.ZUGFeRDProfile.comfort, False, "IHR-LIZENZSCHLUESSEL")
Dim NettoTotal As String = ""
alo.getTotals(NettoTotal)

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 nettoTotal = "";
string total = "0.00";
string duePayable = "0.00";
string taxableTotal = "0.00";
string taxTotal = "0.00";
string discountTotal = "0.00";
string prepaid = "0.00";
string roundingAmount = "0.00";
string chargeTotal = "0.00";
string currency = "";
alo.getTotals(ref nettoTotal, ref total, ref duePayable, ref taxableTotal, ref taxTotal, ref discountTotal, ref prepaid, ref roundingAmount, ref chargeTotal, ref currency);

Business Terms (EN 16931)

Artikel mit getTotals

COM-Schnittstelle

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