AddTradeAllowanceCharge

Methode (Sub)

AddTradeAllowanceCharge ist eine Methode der Klasse Aloaha_ZUGFeRD.XML in der Aloaha ZUGFeRD SDK. Sie betrifft BG-20 (Abschläge auf Dokumentenebene), BG-21 (Zuschläge auf Dokumentenebene), BT-93 (Grundbetrag des Abschlags auf Dokumentenebene), BT-100 (Grundbetrag des Zuschlags auf Dokumentenebene).

Beschreibung (aus der SDK-Dokumentation): Adds Document level allowances / charges BG-20, BG-21

Deklaration

Public Sub AddTradeAllowanceCharge(ByVal ChargeIndicator As Boolean, ByVal BasisAmount As String, ByVal BasisAmountCurrencyID As String, ByVal ActualAmount As String, ByVal ActualAmountCurrencyID As String, ByVal TypeCode As String, ByVal CategoryCode As String, ByVal TAXRateApplicablePercent As String, Optional ByVal Reason As String = "", Optional ByVal CalculationPercent As String = "", Optional ByVal ReasonCode As String = "", Optional ByVal SequenceNumeric As String = "")

Parameter

NameTypPflichtBeschreibung
ChargeIndicatorBooleanerforderlichBG-20-0, BG-21-0: Allowances / charges document level Indicator
BasisAmountStringerforderlichBT-93, BT-100: Document level allowances / charges base amount
BasisAmountCurrencyIDStringerforderlichCurrency ID. Usually EUR
ActualAmountStringerforderlichBT-92, BT-99: Document level allowances / charges amount
ActualAmountCurrencyIDStringerforderlichCurrency ID. Usually EUR
TypeCodeStringerforderlichBT-95-0, BT-102-0: VAT type code for document level allowances / charges
CategoryCodeStringerforderlichBT-95, BT-102: VAT category code for document level allowances / charges
TAXRateApplicablePercentStringerforderlichBT-96, BT-103: Document level allowances / charges VAT rate
ReasonStringoptional (Standard: "")BT-97, BT-104: Document level allowances / charges reason
CalculationPercentStringoptional (Standard: "")BT-94, BT-101: Document level allowances / charges percentage
ReasonCodeStringoptional (Standard: "")BT-98, BT-105: Document level allowances / charges reason code UNTDID 5189
SequenceNumericStringoptional (Standard: "")Calculation sequence

Aufruf (VB.NET)

Dim alo As New Aloaha_ZUGFeRD.XML(Aloaha_ZUGFeRD.iXML.ZUGFeRDProfile.comfort, False, LicenseKey)
' …
alo.AddTradeAllowanceCharge(ChargeIndicator, BasisAmount, BasisAmountCurrencyID, ActualAmount, ActualAmountCurrencyID, TypeCode, CategoryCode, TAXRateApplicablePercent)

Business Terms (EN 16931)

Artikel mit AddTradeAllowanceCharge

Quelle: XML-Dokumentationskommentare der Aloaha ZUGFeRD SDK (xml.vb). Gleiche Signatur in VB6/VBA über COM; in C# mit Semikolon.