TradePaymentTerm

Methode (Sub)

TradePaymentTerm ist eine Methode der Klasse Aloaha_ZUGFeRD.XML im Aloaha ZUGFeRD SDK. Sie betrifft BT-20 (Zahlungsbedingungen), BT-89 (Kennung der Mandatsreferenz), BT-9 (Fälligkeitsdatum der Zahlung).

Beschreibung (Originaltext der englischen SDK-Dokumentation): BT-20: Reads the payment term with the given index, including due date, mandate reference and payment discount terms.

Hinweis: All outputs are set to an empty string first; they stay empty if the index is out of range.

Deklaration

Public Sub TradePaymentTerm(ByVal Index As Integer, ByRef Description As String, Optional ByRef ActualDiscountAmount As String = "", Optional ByRef CalculationPercent As String = "", Optional ByRef DirectDebitMandateID As String = "", Optional ByRef BasisDateTime As String = "", Optional ByRef BasisPeriod As String = "", Optional ByRef DueDate As String = "", Optional ByVal DiscountBasisAmount As String = "")

Parameter

NameTypPflichtBeschreibung
IndexIntegererforderlichZero-based index of the payment term (see TradePaymentTermsCount)
DescriptionStringerforderlich(output) BT-20: Payment terms description
ActualDiscountAmountStringoptional (Standard: "")(output) Discount amount of the payment discount terms
CalculationPercentStringoptional (Standard: "")(output) Discount percentage of the payment discount terms
DirectDebitMandateIDStringoptional (Standard: "")(output) BT-89: Mandate reference identifier
BasisDateTimeStringoptional (Standard: "")(output) Basis date of the payment discount terms
BasisPeriodStringoptional (Standard: "")(output) Basis period of the payment discount terms
DueDateStringoptional (Standard: "")(output) BT-9: Payment due date
DiscountBasisAmountStringoptional (Standard: "")Basis amount of the payment discount terms (passed ByVal, so it is not returned)

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 = ""
alo.TradePaymentTerm(Index, Description)

Aufruf (C#)

var alo = new Aloaha_ZUGFeRD.XML(Aloaha_ZUGFeRD.iXML.ZUGFeRDProfile.comfort, false, "IHR-LIZENZSCHLUESSEL");
int index = 0;
string description = "";
string actualDiscountAmount = "";
string calculationPercent = "";
string directDebitMandateID = "";
string basisDateTime = "";
string basisPeriod = "";
string dueDate = "";
alo.TradePaymentTerm(index, ref description, ref actualDiscountAmount, ref calculationPercent, ref directDebitMandateID, ref basisDateTime, ref basisPeriod, ref dueDate);

Business Terms (EN 16931)

Artikel mit TradePaymentTerm

COM-Schnittstelle

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