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
| Name | Typ | Pflicht | Beschreibung |
|---|---|---|---|
NettoTotal | String | erforderlich | (output) BT-106: Sum of invoice line net amounts |
Total | String | optional (Standard: "0.00") | (output) BT-112: Invoice total amount with VAT |
DuePayable | String | optional (Standard: "0.00") | (output) BT-115: Amount due for payment |
TaxableTotal | String | optional (Standard: "0.00") | (output) BT-109: Invoice total amount without VAT |
TaxTotal | String | optional (Standard: "0.00") | (output) BT-110: Invoice total VAT amount |
DiscountTotal | String | optional (Standard: "0.00") | (output) BT-107: Sum of allowances on document level |
Prepaid | String | optional (Standard: "0.00") | (output) BT-113: Paid amount |
RoundingAmount | String | optional (Standard: "0.00") | (output) BT-114: Rounding amount |
ChargeTotal | String | optional (Standard: "0.00") | (output) BT-108: Sum of charges on document level |
Currency | String | optional (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
Posten aus der ZUGFeRD bzw. X-Rechnung auslesen
Mit dem Aloaha ZUGFeRD SDK ist es ganz einfach, ein ZUGFeRD-PDF bzw. eine X-Rechnungs-XML einzulesen. Zuerst müssen Sie natürlich das Aloaha-Objekt erstellen: In VB.NET Dim alo As New…
WriteTotals
Der Befehl WriteTotals ist selbstverständlich einer der wichtigsten Befehle des SDKs, da jede ZUGFeRD- bzw. X-Rechnung Summen, Zuschläge, Abschläge, Anzahlungen, Mehrwertsteuer usw. enthalten muss.…
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.