AddSpecifiedAdvancePayment

Methode (Sub)

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

Beschreibung (aus der 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, LicenseKey)
' …
alo.AddSpecifiedAdvancePayment(PaidAmount, CalculatedTAXAmount)

Quelle: XML-Dokumentationskommentare der Aloaha ZUGFeRD SDK (xml.vb). Gleiche Signatur in VB6/VBA über COM; in C# mit Semikolon.