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
| 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, "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.