AddDeliveryNote

Methode (Sub)

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

Beschreibung (Originaltext der englischen SDK-Dokumentation): BG-X-83: Sets the delivery note reference (DeliveryNoteReferencedDocument) on document level, or on a line item if LineID is given.

Hinweis: Switches the profile to EXTENDED. On document level a second call replaces the previous delivery note.

Deklaration

Public Sub AddDeliveryNote(ByVal DocumentID As String, ByVal DocumentDate As String, ByVal DocumentDateFormat As String, Optional ByVal LineID As String = "")

Parameter

NameTypPflichtBeschreibung
DocumentIDStringerforderlichBT-X-92: Delivery note number; nothing is set if empty
DocumentDateStringerforderlichBT-X-94: Delivery note date
DocumentDateFormatStringerforderlichBT-X-94-0: Date format, usually 102; detected from DocumentDate if empty
LineIDStringoptional (Standard: "")Optional zero-based index of a line item; if set, the reference is stored on that item (line ID = index + 1) instead of the document level

Aufruf (VB.NET)

Dim alo As New Aloaha_ZUGFeRD.XML(Aloaha_ZUGFeRD.iXML.ZUGFeRDProfile.comfort, False, "IHR-LIZENZSCHLUESSEL")
Dim DocumentID As String = ""
Dim DocumentDate As String = ""
Dim DocumentDateFormat As String = ""
alo.AddDeliveryNote(DocumentID, DocumentDate, DocumentDateFormat)

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 documentID = "";
string documentDate = "";
string documentDateFormat = "";
alo.AddDeliveryNote(documentID, documentDate, documentDateFormat);

Artikel mit AddDeliveryNote

COM-Schnittstelle

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