GetTradeAllowanceCharge

Methode (Sub)

GetTradeAllowanceCharge ist eine Methode der Klasse Aloaha_ZUGFeRD.XML im Aloaha ZUGFeRD SDK. Sie betrifft BG-20 (Abschläge auf Dokumentenebene), BG-21 (Zuschläge auf Dokumentenebene), BT-94 (Prozentualer Abschlag auf Dokumentenebene), BT-101 (Prozentsatz des Zuschlags auf Dokumentenebene).

Beschreibung (Originaltext der englischen SDK-Dokumentation): Gets Document level allowances / charges BG-20, BG-21

Deklaration

Public Sub GetTradeAllowanceCharge(ByVal Item As Integer, ByRef ChargeIndicator As Boolean, ByRef CalculationPercent As String, ByRef BasisAmount As String, ByRef BasisQuantity As String, ByRef BasisQuantityUnitCode As String, ByRef ActualAmount As String, ByRef Reason As String, ByRef ReasonCode As String, Optional ByRef SequenceNumeric As String = "", Optional ByRef Currency As String = "", Optional ByRef TaxCount As Integer = 0)

Parameter

NameTypPflichtBeschreibung
ItemIntegererforderlichWhich allowance / charge to read
ChargeIndicatorBooleanerforderlichBG-20-0, BG-21-0: Allowances / charges document level Indicator
CalculationPercentStringerforderlichBT-94, BT-101: Document level allowances / charges percentage
BasisAmountStringerforderlichBT-93, BT-100: Document level allowances / charges base amount
BasisQuantityStringerforderlichAllowance / charge base quantity
BasisQuantityUnitCodeStringerforderlichPrice base quantity, unit
ActualAmountStringerforderlichBT-92, BT-99: Document level allowances / charges amount
ReasonStringerforderlichBT-97, BT-104: Document level allowances / charges reason
ReasonCodeStringerforderlichBT-98, BT-105: Document level allowances / charges reason code UNTDID 5189
SequenceNumericStringoptional (Standard: "")Calculation sequence
CurrencyStringoptional (Standard: "")Calculation currency
TaxCountIntegeroptional (Standard: 0)Count of detailed information on tax information

Aufruf (VB.NET)

Dim alo As New Aloaha_ZUGFeRD.XML(Aloaha_ZUGFeRD.iXML.ZUGFeRDProfile.comfort, False, "IHR-LIZENZSCHLUESSEL")
Dim Item As Integer = 0
Dim ChargeIndicator As Boolean = False
Dim CalculationPercent As String = ""
Dim BasisAmount As String = ""
Dim BasisQuantity As String = ""
Dim BasisQuantityUnitCode As String = ""
Dim ActualAmount As String = ""
Dim Reason As String = ""
Dim ReasonCode As String = ""
alo.GetTradeAllowanceCharge(Item, ChargeIndicator, CalculationPercent, BasisAmount, BasisQuantity, BasisQuantityUnitCode, ActualAmount, Reason, ReasonCode)

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);
int item = 0;
bool chargeIndicator = false;
string calculationPercent = "";
string basisAmount = "";
string basisQuantity = "";
string basisQuantityUnitCode = "";
string actualAmount = "";
string reason = "";
string reasonCode = "";
string sequenceNumeric = "";
string currency = "";
int taxCount = 0;
alo.GetTradeAllowanceCharge(item, ref chargeIndicator, ref calculationPercent, ref basisAmount, ref basisQuantity, ref basisQuantityUnitCode, ref actualAmount, ref reason, ref reasonCode, ref sequenceNumeric, ref currency, ref taxCount);

Business Terms (EN 16931)

Artikel mit GetTradeAllowanceCharge

COM-Schnittstelle

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