PdcPuchaseInvoiceLineList.Clear: Difference between revisions

From External Bemet Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 9: Line 9:


== Code example ==
== Code example ==
The script creates term invoice lines. These are not shown in the calculation from in PdC until it's refreshed.
The script removes all the lines from the linelist and stores the invoice.
After hiding and showing the calculation the new term invoices lines are visible.


<source lang="vb">
<source lang="vb">
Line 23: Line 22:


== Availability ==
== Availability ==
Available since April 2005.
Available since July 2015 (Version 5.1 onwards)

Latest revision as of 08:55, 19 August 2015

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 July 2015 (Version 5.1 onwards)