getTotals
Methode (Sub)
getTotals ist eine Methode der Klasse Aloaha_ZUGFeRD.XML in der 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 (aus der SDK-Dokumentation): BG-22: Reads the Document Totals.
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 | BT-106: Sum of invoice line total amount |
Total | String | optional (Standard: "0.00") | BT-112: Invoice total amount with VAT |
DuePayable | String | optional (Standard: "0.00") | BT-115: Amount due for payment |
TaxableTotal | String | optional (Standard: "0.00") | BT-109: Invoice total amount without VAT |
TaxTotal | String | optional (Standard: "0.00") | BT-110: Invoice total VAT amount |
DiscountTotal | String | optional (Standard: "0.00") | BT-107: Sum of allowances on document level |
Prepaid | String | optional (Standard: "0.00") | BT-113: Paid amount |
RoundingAmount | String | optional (Standard: "0.00") | BT-114: Rounding amount |
ChargeTotal | String | optional (Standard: "0.00") | BT-108: Sum of charges on document level |
Currency | String | optional (Standard: "") |
Aufruf (VB.NET)
Dim alo As New Aloaha_ZUGFeRD.XML(Aloaha_ZUGFeRD.iXML.ZUGFeRDProfile.comfort, False, LicenseKey)
' …
alo.getTotals(NettoTotal)
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.…