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 |
||
Line 1: | Line 1: | ||
== Declaration == | |||
Delete(Index: 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) |
Revision as of 09:05, 19 August 2015
Declaration
Delete(Index: 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)