PdcPuchaseInvoiceLineList.Clear

From External Bemet Wiki
Revision as of 08:51, 19 August 2015 by TC (talk | contribs)
Jump to navigation Jump to search

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 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

Availability

Available since April 2015.