Create_Invoice
Methode (Sub)
Create_Invoice ist eine Methode der Klasse Aloaha_ZUGFeRD.XML im Aloaha ZUGFeRD SDK. Sie betrifft BT-1 (Rechnungsnummer), BT-83 (Verwendungszweck), BT-22 (Freitext zur Rechnung), BG-1 (Freitext zur Rechnung).
Beschreibung (Originaltext der englischen SDK-Dokumentation): Starts a new invoice: replaces the invoice data currently held by this object with a new, empty invoice (type 380) and sets invoice number, date, note, name, language and currency. Same as CreateInvoice, but without return value.
Deklaration
Public Sub Create_Invoice(ByVal InvoiceID As String, Optional ByVal InvoiceNote As String = "", Optional ByVal InvoiceDate As String = "", Optional ByVal InvoiceDateFormat As String = "", Optional ByVal InvoiceName_FreeText As String = "", Optional ByVal InvoiceLanguageID_2Letter_ISO As String = "", Optional ByVal CurrencyID As String = "")
Parameter
| Name | Typ | Pflicht | Beschreibung |
|---|---|---|---|
InvoiceID | String | erforderlich | BT-1: Invoice number. Also used as payment reference (BT-83). |
InvoiceNote | String | optional (Standard: "") | BT-22 (BG-1): Optional invoice note. Ignored if empty. |
InvoiceDate | String | optional (Standard: "") | BT-2: Invoice date, e.g. YYYYMMDD. If empty, today's date is used with format 102. |
InvoiceDateFormat | String | optional (Standard: "") | Date format code of InvoiceDate, 102 for YYYYMMDD. |
InvoiceName_FreeText | String | optional (Standard: "") | Document name (free text). Should normally remain empty. |
InvoiceLanguageID_2Letter_ISO | String | optional (Standard: "") | Document language as 2-letter ISO code, e.g. DE for German. |
CurrencyID | String | optional (Standard: "") | BT-5: Invoice currency code, e.g. EUR. Spaces are removed and the code is upper-cased. |
Aufruf (VB.NET)
Dim alo As New Aloaha_ZUGFeRD.XML(Aloaha_ZUGFeRD.iXML.ZUGFeRDProfile.comfort, False, "IHR-LIZENZSCHLUESSEL")
Dim InvoiceID As String = ""
alo.Create_Invoice(InvoiceID)
Aufruf (C#)
var alo = new Aloaha_ZUGFeRD.XML(Aloaha_ZUGFeRD.iXML.ZUGFeRDProfile.comfort, false, "IHR-LIZENZSCHLUESSEL");
string invoiceID = "";
alo.Create_Invoice(invoiceID);
Business Terms (EN 16931)
Artikel mit Create_Invoice
COM-Schnittstelle
Create_Invoice ist Mitglied der Schnittstelle Aloaha_ZUGFeRD.iXML (Position 86 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.