AddSpecifiedAdvancePayment

Methode (Sub)

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

Beschreibung (Originaltext der englischen SDK-Dokumentation): Adds an advance payment (SpecifiedAdvancePayment) with its included tax and an optional reference to the advance payment invoice.

Hinweis: Sets the profile to Extended.

Deklaration

Public Sub AddSpecifiedAdvancePayment(ByVal PaidAmount As String, ByVal CalculatedTAXAmount As String, Optional ByVal ReceivedDate As String = "", Optional ByVal ReceivedDateFormat As String = "102", Optional ByVal TAXRatePercent As String = "", Optional ByVal TAXExemptionReason As String = "", Optional ByVal TAXTypeCode As String = "VAT", Optional ByVal TAXCategoryCode As String = "S", Optional ByVal InvoiceNumber As String = "", Optional ByVal TypeCode As String = "", Optional ByVal InvoiceDate As String = "", Optional ByVal InvoiceDateFormat As String = "")

Parameter

NameTypPflichtBeschreibung
PaidAmountStringerforderlichPaid amount (normalized to 2 decimals). Nothing is added if empty
CalculatedTAXAmountStringerforderlichTax amount included in the paid amount. The tax entry is only written if this is not empty
ReceivedDateStringoptional (Standard: "")Date the payment was received
ReceivedDateFormatStringoptional (Standard: "102")Date format code of ReceivedDate (default 102)
TAXRatePercentStringoptional (Standard: "")VAT rate of the included tax
TAXExemptionReasonStringoptional (Standard: "")VAT exemption reason text
TAXTypeCodeStringoptional (Standard: "VAT")Tax type code (default VAT)
TAXCategoryCodeStringoptional (Standard: "S")VAT category code (default S)
InvoiceNumberStringoptional (Standard: "")Number of the referenced advance payment invoice. TypeCode and InvoiceDate are only written if this is set
TypeCodeStringoptional (Standard: "")Type code of the referenced invoice
InvoiceDateStringoptional (Standard: "")Date of the referenced invoice
InvoiceDateFormatStringoptional (Standard: "")Date format code of InvoiceDate (default 102 if empty)

Aufruf (VB.NET)

Dim alo As New Aloaha_ZUGFeRD.XML(Aloaha_ZUGFeRD.iXML.ZUGFeRDProfile.comfort, False, "IHR-LIZENZSCHLUESSEL")
Dim PaidAmount As String = ""
Dim CalculatedTAXAmount As String = ""
alo.AddSpecifiedAdvancePayment(PaidAmount, CalculatedTAXAmount)

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);
string paidAmount = "";
string calculatedTAXAmount = "";
alo.AddSpecifiedAdvancePayment(paidAmount, calculatedTAXAmount);

Artikel mit AddSpecifiedAdvancePayment

COM-Schnittstelle

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