PdcPuchaseInvoiceLineList.Clear
Declaration
Clear
Description
Deletes all the invoice lines of the linelist.
Notes
This method removes all the invoices lines. After save the invoice, the lines can be added again.
Code example
The script creates term invoice lines. These are not shown in the calculation from in PdC until it's refreshed. After hiding and showing the calculation the new term invoices lines are visible.
dim objPI
dim objPIList
set objPI = pdc.logistics.purchaseinvoices.active
set objPIList = objPI.PurchaseInvoiceLineList
objPIList.Clear
objPI.Save
Availability
Available since April 2005.