PdcPuchaseInvoiceLineList.Clear: Difference between revisions

From External Bemet Wiki
Jump to navigation Jump to search
Created page with "== Methods == <br> == Description == Calculation Object == Notes =="
 
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Methods ==
== Declaration ==
<br>
Clear


== Description ==
== Description ==
Calculation Object
Deletes all the invoice lines of the linelist.


== Notes ==
== 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.
<source lang="vb">
dim objPI
dim objPIList
  set objPI = pdc.logistics.purchaseinvoices.active
  set objPIList = objPI.PurchaseInvoiceLineList
  objPIList.Clear
  objPI.Save
</source>
== Availability ==
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)