PdcPuchaseInvoiceLineList.Delete

From External Bemet Wiki
Jump to navigation Jump to search

Declaration

Delete(Index as integer)

Description

Deletes one invoice line in the linelist with the applied index.

Notes

This method removes one line of the applied index. After this action, linelist.count is decreased with one. The index must be in the range of 0 to count - 1. If index is not found, an error occurred.

Code example

The script removes one line with index 3 and stores the invoice.

dim objPI
dim objPIList

  set objPI = pdc.logistics.purchaseinvoices.active
  set objPIList = objPI.PurchaseInvoiceLineList
  objPIList.Delete 3
  objPI.Save

Availability

Available since July 2015 (Version 5.1 onwards)