AddDeliveryNoteItem
Methode (Function) · gibt Boolean zurück
AddDeliveryNoteItem ist eine Methode der Klasse Aloaha_ZUGFeRD.XML im Aloaha ZUGFeRD SDK.
Beschreibung (aus der SDK-Dokumentation): BG-X-83: Sets the delivery note reference (DeliveryNoteReferencedDocument) on a line item, with an explicit delivery note line number.
Rückgabe: True if the reference was stored; False for an empty DocumentID or an invalid ItemIndex
Hinweis: Switches the profile to EXTENDED. A second call for the same item replaces the previous delivery note.
Deklaration
Public Function AddDeliveryNoteItem(ByVal ItemIndex As Integer, ByVal DocumentID As String, Optional ByVal DocumentDate As String = "", Optional ByVal DocumentDateFormat As String = "", Optional ByVal DeliveryNoteLineID As String = "") As Boolean
Parameter
| Name | Typ | Pflicht | Beschreibung |
|---|---|---|---|
ItemIndex | Integer | erforderlich | Zero-based index of the line item, as returned by AddProduct_Comfort / AddProduct_Basic |
DocumentID | String | erforderlich | BT-X-92: Delivery note number; nothing is set if empty |
DocumentDate | String | optional (Standard: "") | BT-X-94: Delivery note date; optional |
DocumentDateFormat | String | optional (Standard: "") | BT-X-94-0: Date format, usually 102; detected from DocumentDate if empty |
DeliveryNoteLineID | String | optional (Standard: "") | BT-X-93: Line number on the delivery note (not the invoice line); not written if empty |
Aufruf (VB.NET)
Dim alo As New Aloaha_ZUGFeRD.XML(Aloaha_ZUGFeRD.iXML.ZUGFeRDProfile.comfort, False, LicenseKey)
' …
Dim ergebnis = alo.AddDeliveryNoteItem(ItemIndex, DocumentID)
COM-Schnittstelle
AddDeliveryNoteItem ist Mitglied der Schnittstelle Aloaha_ZUGFeRD.iXML (Position 325 von 328) 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.