AddMonetarySummation
Methode (Sub)
AddMonetarySummation ist eine Methode der Klasse Aloaha_ZUGFeRD.XML in der Aloaha ZUGFeRD SDK. Sie betrifft BG-22 (Gesamtsummen auf Dokumentenebene).
Beschreibung (aus der 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
| Name | Typ | Pflicht | Beschreibung |
|---|---|---|---|
Amount | String | erforderlich | Amount (comma is converted to dot, normalized to 2 decimals) |
SummationType | iXML.SummationType | erforderlich | Which total to set (see remarks) |
CurrencyID | String | optional (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, LicenseKey)
' …
alo.AddMonetarySummation(Amount, SummationType)