PdcPuchaseInvoiceLineList.Delete: Difference between revisions
Jump to navigation
Jump to search
Created page with "Available since July 2015 (Version 5.1 onwards)" |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
== Declaration == | |||
Delete(Index as integer) | |||
== Description == | |||
Deletes one invoice line in the linelist with the applied index. | |||
== Notes == | |||
This method removes one line of the applied index. After this action, linelist.count is decreased with one. | |||
The index must be in the range of 0 to count - 1. If index is not found, an error occurred. | |||
== Code example == | |||
The script removes one line with index 3 and stores the invoice. | |||
<source lang="vb"> | |||
dim objPI | |||
dim objPIList | |||
set objPI = pdc.logistics.purchaseinvoices.active | |||
set objPIList = objPI.PurchaseInvoiceLineList | |||
objPIList.Delete 3 | |||
objPI.Save | |||
</source> | |||
== Availability == | |||
Available since July 2015 (Version 5.1 onwards) | Available since July 2015 (Version 5.1 onwards) |
Latest revision as of 09:21, 19 August 2015
Declaration
Delete(Index as integer)
Description
Deletes one invoice line in the linelist with the applied index.
Notes
This method removes one line of the applied index. After this action, linelist.count is decreased with one. The index must be in the range of 0 to count - 1. If index is not found, an error occurred.
Code example
The script removes one line with index 3 and stores the invoice.
dim objPI
dim objPIList
set objPI = pdc.logistics.purchaseinvoices.active
set objPIList = objPI.PurchaseInvoiceLineList
objPIList.Delete 3
objPI.Save
Availability
Available since July 2015 (Version 5.1 onwards)