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
| Name | Typ | Pflicht | Beschreibung |
|---|---|---|---|
PaidAmount | String | erforderlich | Paid amount (normalized to 2 decimals). Nothing is added if empty |
CalculatedTAXAmount | String | erforderlich | Tax amount included in the paid amount. The tax entry is only written if this is not empty |
ReceivedDate | String | optional (Standard: "") | Date the payment was received |
ReceivedDateFormat | String | optional (Standard: "102") | Date format code of ReceivedDate (default 102) |
TAXRatePercent | String | optional (Standard: "") | VAT rate of the included tax |
TAXExemptionReason | String | optional (Standard: "") | VAT exemption reason text |
TAXTypeCode | String | optional (Standard: "VAT") | Tax type code (default VAT) |
TAXCategoryCode | String | optional (Standard: "S") | VAT category code (default S) |
InvoiceNumber | String | optional (Standard: "") | Number of the referenced advance payment invoice. TypeCode and InvoiceDate are only written if this is set |
TypeCode | String | optional (Standard: "") | Type code of the referenced invoice |
InvoiceDate | String | optional (Standard: "") | Date of the referenced invoice |
InvoiceDateFormat | String | optional (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)