SetLogisticsServiceChargeExemption

Methode (Function) · gibt Boolean zurück

SetLogisticsServiceChargeExemption ist eine Methode der Klasse Aloaha_ZUGFeRD.XML im Aloaha ZUGFeRD SDK. Sie betrifft BT-120 (Umsatzsteuerbefreiungsgrund), BT-121 (Code für den Umsatzsteuerbefreiungsgrund).

Beschreibung (Originaltext der englischen SDK-Dokumentation): EXTENDED: sets the VAT exemption reason of a logistics service charge that was added with AddLogisticsServiceCharge. Written as ram:AppliedTradeTax/ram:ExemptionReason and ram:ExemptionReasonCode. Use exactly the same text and code as in the matching VAT breakdown (AddTradeTax, BT-120 / BT-121): the Factur-X EXTENDED rules BR-FXEXT-..-08rev only count charges whose exemption reason is identical to the VAT breakdown.

Rückgabe: True if stored; False if there is no logistics service charge with this index (see Last_Error)

Deklaration

Public Function SetLogisticsServiceChargeExemption(ByVal Index As Integer, ByVal ExemptionReason As String, Optional ByVal ExemptionReasonCode As String = "") As Boolean

Parameter

NameTypPflichtBeschreibung
IndexIntegererforderlichZero-based index of the logistics service charge in the order of the AddLogisticsServiceCharge calls; -1 = the last one added
ExemptionReasonStringerforderlichVAT exemption reason text, identical to BT-120 of the matching VAT breakdown. Empty removes it
ExemptionReasonCodeStringoptional (Standard: "")Optional VAT exemption reason code (e.g. VATEX-EU-IC), identical to BT-121 of the matching VAT breakdown. Empty removes it

Aufruf (VB.NET)

Dim alo As New Aloaha_ZUGFeRD.XML(Aloaha_ZUGFeRD.iXML.ZUGFeRDProfile.comfort, False, "IHR-LIZENZSCHLUESSEL")
Dim Index As Integer = 0
Dim ExemptionReason As String = ""
If Not alo.SetLogisticsServiceChargeExemption(Index, ExemptionReason) Then
    Console.WriteLine("Fehler: " & alo.Last_Error)
End If

Aufruf (C#)

var alo = new Aloaha_ZUGFeRD.XML(Aloaha_ZUGFeRD.iXML.ZUGFeRDProfile.comfort, false, "IHR-LIZENZSCHLUESSEL");
int index = 0;
string exemptionReason = "";
if (!alo.SetLogisticsServiceChargeExemption(index, exemptionReason))
{
    Console.WriteLine("Fehler: " + alo.Last_Error);
}

Business Terms (EN 16931)

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.