GetTradeAllowanceChargeTax
Methode (Sub)
GetTradeAllowanceChargeTax 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-96 (Umsatzsteuersatz für den Abschlag auf), BT-103 (Umsatzsteuersatz des Zuschlags auf Dokumentenebene).
Beschreibung (Originaltext der englischen SDK-Dokumentation): BG-20, BG-21: Reads a VAT entry of a document level allowance / charge.
Hinweis: Outputs are left unchanged if an index is out of range.
Deklaration
Public Sub GetTradeAllowanceChargeTax(ByVal Item As Integer, ByVal TaxItem As Integer, ByRef TaxRate As String, ByRef CategoryCode As String, ByRef TypeCode As String, ByRef TaxReason As String, ByRef CalculatedAmount As String)
Parameter
| Name | Typ | Pflicht | Beschreibung |
|---|---|---|---|
Item | Integer | erforderlich | Zero-based index of the allowance / charge |
TaxItem | Integer | erforderlich | Zero-based index of the tax entry, see TaxCount of GetTradeAllowanceCharge |
TaxRate | String | erforderlich | BT-96, BT-103: VAT rate (output) |
CategoryCode | String | erforderlich | BT-95, BT-102: VAT category code (output) |
TypeCode | String | erforderlich | Tax type code, usually VAT (output) |
TaxReason | String | erforderlich | VAT exemption reason text (output) |
CalculatedAmount | String | erforderlich | Tax amount (output) |
Aufruf (VB.NET)
Dim alo As New Aloaha_ZUGFeRD.XML(Aloaha_ZUGFeRD.iXML.ZUGFeRDProfile.comfort, False, "IHR-LIZENZSCHLUESSEL")
Dim Item As Integer = 0
Dim TaxItem As Integer = 0
Dim TaxRate As String = ""
Dim CategoryCode As String = ""
Dim TypeCode As String = ""
Dim TaxReason As String = ""
Dim CalculatedAmount As String = ""
alo.GetTradeAllowanceChargeTax(Item, TaxItem, TaxRate, CategoryCode, TypeCode, TaxReason, CalculatedAmount)
Aufruf (C#)
var alo = new Aloaha_ZUGFeRD.XML(Aloaha_ZUGFeRD.iXML.ZUGFeRDProfile.comfort, false, "IHR-LIZENZSCHLUESSEL");
int item = 0;
int taxItem = 0;
string taxRate = "";
string categoryCode = "";
string typeCode = "";
string taxReason = "";
string calculatedAmount = "";
alo.GetTradeAllowanceChargeTax(item, taxItem, ref taxRate, ref categoryCode, ref typeCode, ref taxReason, ref calculatedAmount);
Business Terms (EN 16931)
Artikel mit GetTradeAllowanceChargeTax
COM-Schnittstelle
GetTradeAllowanceChargeTax ist Mitglied der Schnittstelle Aloaha_ZUGFeRD.iXML (Position 210 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.