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
| Name | Typ | Pflicht | Beschreibung |
|---|---|---|---|
index | Integer | erforderlich | Zero-based index of the advance payment |
TaxIndex | Integer | erforderlich | Zero-based index of the tax entry within the advance payment |
CalculatedAmount | String | erforderlich | Tax amount (output) |
TypeCode | String | optional (Standard: "") | Tax type code, e.g. VAT (output) |
ExemptionReason | String | optional (Standard: "") | VAT exemption reason text (output) |
CategoryCode | String | optional (Standard: "") | VAT category code (output) |
RateApplicablePercent | String | optional (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.