PdcPuchaseInvoiceLineList.GetLineByPos: 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 == | |||
GetLineByPos(Posistion: string) | |||
== Description == | |||
Returns the invoice line of the applied position number. | |||
== Notes == | |||
This method returns one invoice line of the applied position number. | |||
The position must be an existing position in the invoice object. Otherwise no object is returned. | |||
== Code example == | |||
The script returns position 2 of the invoice and validates the object. | |||
<source lang="vb"> | |||
dim objPI | |||
dim objPIList | |||
dim objPILine | |||
set objPI = pdc.logistics.purchaseinvoices.active | |||
set objPIList = objPI.PurchaseInvoiceLineList | |||
set objPILine = objPIList.GetLineByPos("002") | |||
if not (objPILine is nothing) then | |||
msgbox "Position " & objPILine.Pos & " " & objPILine.Description | |||
end if | |||
</source> | |||
== Availability == | |||
Available since July 2015 (Version 5.1 onwards) | Available since July 2015 (Version 5.1 onwards) |
Revision as of 09:11, 19 August 2015
Declaration
GetLineByPos(Posistion: string)
Description
Returns the invoice line of the applied position number.
Notes
This method returns one invoice line of the applied position number. The position must be an existing position in the invoice object. Otherwise no object is returned.
Code example
The script returns position 2 of the invoice and validates the object.
dim objPI
dim objPIList
dim objPILine
set objPI = pdc.logistics.purchaseinvoices.active
set objPIList = objPI.PurchaseInvoiceLineList
set objPILine = objPIList.GetLineByPos("002")
if not (objPILine is nothing) then
msgbox "Position " & objPILine.Pos & " " & objPILine.Description
end if
Availability
Available since July 2015 (Version 5.1 onwards)