GetLogisticsServiceCharge

Methode (Sub)

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

Beschreibung (Originaltext der englischen SDK-Dokumentation): Reads a logistics service charge of the document.

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

Deklaration

Public Sub GetLogisticsServiceCharge(ByVal Index As Integer, ByRef Description As String, ByRef AppliedAmount As String, ByRef AppliedAmountCurrencyID As String, ByVal TypeCode As String, ByRef CategoryCode As String, ByRef ApplicablePercent As String)

Parameter

NameTypPflichtBeschreibung
IndexIntegererforderlichZero-based index of the service charge
DescriptionStringerforderlichService charge description (output)
AppliedAmountStringerforderlichService charge amount (output)
AppliedAmountCurrencyIDStringerforderlichCurrency code of the amount (output)
TypeCodeStringerforderlichTax type code (passed ByVal, not filled)
CategoryCodeStringerforderlichTax category code (output)
ApplicablePercentStringerforderlichTax 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 Description As String = ""
Dim AppliedAmount As String = ""
Dim AppliedAmountCurrencyID As String = ""
Dim TypeCode As String = ""
Dim CategoryCode As String = ""
Dim ApplicablePercent As String = ""
alo.GetLogisticsServiceCharge(Index, Description, AppliedAmount, AppliedAmountCurrencyID, TypeCode, CategoryCode, ApplicablePercent)

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;
string description = "";
string appliedAmount = "";
string appliedAmountCurrencyID = "";
string typeCode = "";
string categoryCode = "";
string applicablePercent = "";
alo.GetLogisticsServiceCharge(index, ref description, ref appliedAmount, ref appliedAmountCurrencyID, typeCode, ref categoryCode, ref applicablePercent);

COM-Schnittstelle

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