GetSpecifiedAdvancePaymentTax

Methode (Sub)

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

Beschreibung (Originaltext der englischen SDK-Dokumentation): Reads a tax entry included in an advance payment (SpecifiedAdvancePayment / IncludedTradeTax).

Hinweis: Outputs are left unchanged if an index is out of range.

Deklaration

Public Sub GetSpecifiedAdvancePaymentTax(ByVal index As Integer, ByVal TaxIndex As Integer, ByRef CalculatedAmount As String, Optional ByRef TypeCode As String = "", Optional ByRef ExemptionReason As String = "", Optional ByRef CategoryCode As String = "", Optional ByRef RateApplicablePercent As String = "")

Parameter

NameTypPflichtBeschreibung
indexIntegererforderlichZero-based index of the advance payment
TaxIndexIntegererforderlichZero-based index of the tax entry within the advance payment
CalculatedAmountStringerforderlichTax amount (output)
TypeCodeStringoptional (Standard: "")Tax type code, e.g. VAT (output)
ExemptionReasonStringoptional (Standard: "")VAT exemption reason text (output)
CategoryCodeStringoptional (Standard: "")VAT category code (output)
RateApplicablePercentStringoptional (Standard: "")VAT rate (output)

Aufruf (VB.NET)

Dim alo As New Aloaha_ZUGFeRD.XML(Aloaha_ZUGFeRD.iXML.ZUGFeRDProfile.comfort, False, "IHR-LIZENZSCHLUESSEL")
Dim index As Integer = 0
Dim TaxIndex As Integer = 0
Dim CalculatedAmount As String = ""
alo.GetSpecifiedAdvancePaymentTax(index, TaxIndex, CalculatedAmount)

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 index = 0;
int taxIndex = 0;
string calculatedAmount = "";
string typeCode = "";
string exemptionReason = "";
string categoryCode = "";
string rateApplicablePercent = "";
alo.GetSpecifiedAdvancePaymentTax(index, taxIndex, ref calculatedAmount, ref typeCode, ref exemptionReason, ref categoryCode, ref rateApplicablePercent);

COM-Schnittstelle

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