Deletes all the invoice lines of the linelist.
This method removes all the invoices lines. After save the invoice, the lines can be added again.
The script removes all the lines from the linelist and stores the invoice.
dim objPI dim objPIList set objPI = pdc.logistics.purchaseinvoices.active set objPIList = objPI.PurchaseInvoiceLineList objPIList.Clear objPI.Save
Available since July 2015 (Version 5.1 onwards)