Delete(Index as integer)
Deletes one invoice line in the linelist with the applied index.
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.
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
Available since July 2015 (Version 5.1 onwards)