GetVatTypeByCategoryCode
Methode (Function) · gibt iXML.VAT_Category zurück
GetVatTypeByCategoryCode ist eine Methode der Klasse Aloaha_ZUGFeRD.XML im Aloaha ZUGFeRD SDK. Sie betrifft BT-95 (Code für die Umsatzsteuerkategorie des Abschlages auf), BT-102 (Code der für den Zuschlag auf Dokumentenebene), BT-118 (Code der Umsatzsteuerkategorie), BT-151 (Code der Umsatzsteuerkategorie des in Rechnung).
Beschreibung (aus der SDK-Dokumentation): BT-95, BT-102, BT-118, BT-151: Converts a VAT category code (UNCL5305, e.g. S, Z, E, AE, K, G, O, L, M, IC, B) to the VAT_Category enumeration.
Rückgabe: Matching VAT_Category; E returns ExemptFromTax, G returns FreeExportItem, K returns VATExempt, the legacy non-standard IC returns IntraCommunitySupply; unknown codes return StandardRate.
Deklaration
Public Function GetVatTypeByCategoryCode(ByVal code As String) As iXML.VAT_Category
Parameter
| Name | Typ | Pflicht | Beschreibung |
|---|---|---|---|
code | String | erforderlich | VAT category code; leading/trailing blanks and letter case are ignored |
Aufruf (VB.NET)
Dim alo As New Aloaha_ZUGFeRD.XML(Aloaha_ZUGFeRD.iXML.ZUGFeRDProfile.comfort, False, LicenseKey)
' …
Dim ergebnis = alo.GetVatTypeByCategoryCode(code)
Business Terms (EN 16931)
Artikel mit GetVatTypeByCategoryCode
COM-Schnittstelle
GetVatTypeByCategoryCode ist Mitglied der Schnittstelle Aloaha_ZUGFeRD.iXML (Position 303 von 328) 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.