GetItemTradeTax

Methode (Sub)

GetItemTradeTax ist eine Methode der Klasse Aloaha_ZUGFeRD.XML im Aloaha ZUGFeRD SDK. Sie betrifft BG-30 (Umsatzsteuerinformationen auf der Ebene der Rechnungsposition), BT-152 (Umsatzsteuersatz für den in Rechnung gestellten Artikel), BT-151 (Code der Umsatzsteuerkategorie des in Rechnung).

Beschreibung (Originaltext der englischen SDK-Dokumentation): BG-30: Reads the VAT information of an invoice line.

Hinweis: Outputs are not changed if the index is out of range; Nothing values are returned as empty strings.

Deklaration

Public Sub GetItemTradeTax(ByVal ItemIndex As Integer, ByRef RateApplicablePercent As String, ByRef CategoryCode As String, Optional ByRef Reason As String = "", Optional ByRef ExemptionReasonCode As String = "", Optional ByRef CalculatedAmount As String = "", Optional ByRef TypeCode As String = "")

Parameter

NameTypPflichtBeschreibung
ItemIndexIntegererforderlichZero-based index of the line item
RateApplicablePercentStringerforderlichBT-152: Invoiced item VAT rate (output)
CategoryCodeStringerforderlichBT-151: Invoiced item VAT category code (output)
ReasonStringoptional (Standard: "")BT-X-96: VAT exemption reason text (output)
ExemptionReasonCodeStringoptional (Standard: "")BT-X-97: VAT exemption reason code (output)
CalculatedAmountStringoptional (Standard: "")BT-X-95: Line tax amount (output)
TypeCodeStringoptional (Standard: "")BT-151-0: Tax type code, usually VAT (output)

Aufruf (VB.NET)

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

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 rateApplicablePercent = "";
string categoryCode = "";
string reason = "";
string exemptionReasonCode = "";
string calculatedAmount = "";
string typeCode = "";
alo.GetItemTradeTax(itemIndex, ref rateApplicablePercent, ref categoryCode, ref reason, ref exemptionReasonCode, ref calculatedAmount, ref typeCode);

Business Terms (EN 16931)

Artikel mit GetItemTradeTax

COM-Schnittstelle

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