AddItemIncludedTradeTax

Methode (Sub)

AddItemIncludedTradeTax ist eine Methode der Klasse Aloaha_ZUGFeRD.XML im Aloaha ZUGFeRD SDK.

Beschreibung (Originaltext der englischen SDK-Dokumentation): Included tax for B2C per item / BG-X-4

Deklaration

Public Sub AddItemIncludedTradeTax(ByVal ItemIndex As Integer, ByVal CalculatedAmount As String, ByVal TypeCode As String, ByVal CategoryCode As String, ByVal RateApplicablePercent As String, Optional ByVal ExemptionReason As String = "", Optional ByVal ExemptionReasonCode As String = "")

Parameter

NameTypPflichtBeschreibung
ItemIndexIntegererforderlichItem Index
CalculatedAmountStringerforderlichBT-X-37: Included tax for B2C
TypeCodeStringerforderlichBT-X-38: Type of tax (code)
CategoryCodeStringerforderlichBT-X-40: VAT category code
RateApplicablePercentStringerforderlichBT-X-42: VAT category rate
ExemptionReasonStringoptional (Standard: "")BT-X-39: VAT exemption reason text
ExemptionReasonCodeStringoptional (Standard: "")BT-X-41: VAT exemption reason code

Aufruf (VB.NET)

Dim alo As New Aloaha_ZUGFeRD.XML(Aloaha_ZUGFeRD.iXML.ZUGFeRDProfile.comfort, False, "IHR-LIZENZSCHLUESSEL")
Dim ItemIndex As Integer = 0
Dim CalculatedAmount As String = ""
Dim TypeCode As String = ""
Dim CategoryCode As String = ""
Dim RateApplicablePercent As String = ""
alo.AddItemIncludedTradeTax(ItemIndex, CalculatedAmount, TypeCode, CategoryCode, RateApplicablePercent)

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 itemIndex = 0;
string calculatedAmount = "";
string typeCode = "";
string categoryCode = "";
string rateApplicablePercent = "";
alo.AddItemIncludedTradeTax(itemIndex, calculatedAmount, typeCode, categoryCode, rateApplicablePercent);

COM-Schnittstelle

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