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
| Name | Typ | Pflicht | Beschreibung |
|---|---|---|---|
Item | Integer | erforderlich | Which allowance / charge to read |
ChargeIndicator | Boolean | erforderlich | BG-20-0, BG-21-0: Allowances / charges document level Indicator |
CalculationPercent | String | erforderlich | BT-94, BT-101: Document level allowances / charges percentage |
BasisAmount | String | erforderlich | BT-93, BT-100: Document level allowances / charges base amount |
BasisQuantity | String | erforderlich | Allowance / charge base quantity |
BasisQuantityUnitCode | String | erforderlich | Price base quantity, unit |
ActualAmount | String | erforderlich | BT-92, BT-99: Document level allowances / charges amount |
Reason | String | erforderlich | BT-97, BT-104: Document level allowances / charges reason |
ReasonCode | String | erforderlich | BT-98, BT-105: Document level allowances / charges reason code UNTDID 5189 |
SequenceNumeric | String | optional (Standard: "") | Calculation sequence |
Currency | String | optional (Standard: "") | Calculation currency |
TaxCount | Integer | optional (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.