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
| Name | Typ | Pflicht | Beschreibung |
|---|---|---|---|
ItemIndex | Integer | erforderlich | Item Index |
CalculatedAmount | String | erforderlich | BT-X-37: Included tax for B2C |
TypeCode | String | erforderlich | BT-X-38: Type of tax (code) |
CategoryCode | String | erforderlich | BT-X-40: VAT category code |
RateApplicablePercent | String | erforderlich | BT-X-42: VAT category rate |
ExemptionReason | String | optional (Standard: "") | BT-X-39: VAT exemption reason text |
ExemptionReasonCode | String | optional (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.