GetSpecifiedAdvancePayment

Methode (Sub)

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

Beschreibung (Originaltext der englischen SDK-Dokumentation): Reads an advance payment (SpecifiedAdvancePayment) of the document.

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

Deklaration

Public Sub GetSpecifiedAdvancePayment(ByVal index As Integer, ByRef PaidAmount As String, Optional ByRef TaxCount As Integer = 0, Optional ByRef ReceivedDate As String = "", Optional ByRef ReceivedDateFormat As String = "102", Optional ByRef InvoiceNumber As String = "", Optional ByRef TypeCode As String = "", Optional ByRef InvoiceDate As String = "", Optional ByRef InvoiceDateFormat As String = "")

Parameter

NameTypPflichtBeschreibung
indexIntegererforderlichZero-based index of the advance payment
PaidAmountStringerforderlichPaid amount (output)
TaxCountIntegeroptional (Standard: 0)Number of included tax entries, use with GetSpecifiedAdvancePaymentTax (output)
ReceivedDateStringoptional (Standard: "")Date the payment was received (output)
ReceivedDateFormatStringoptional (Standard: "102")Date format code of ReceivedDate (output)
InvoiceNumberStringoptional (Standard: "")Number of the referenced advance payment invoice (output)
TypeCodeStringoptional (Standard: "")Type code of the referenced invoice (output)
InvoiceDateStringoptional (Standard: "")Date of the referenced invoice (output)
InvoiceDateFormatStringoptional (Standard: "")Date format code of InvoiceDate (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 PaidAmount As String = ""
alo.GetSpecifiedAdvancePayment(index, PaidAmount)

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 paidAmount = "";
int taxCount = 0;
string receivedDate = "";
string receivedDateFormat = "102";
string invoiceNumber = "";
string typeCode = "";
string invoiceDate = "";
string invoiceDateFormat = "";
alo.GetSpecifiedAdvancePayment(index, ref paidAmount, ref taxCount, ref receivedDate, ref receivedDateFormat, ref invoiceNumber, ref typeCode, ref invoiceDate, ref invoiceDateFormat);

COM-Schnittstelle

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