PdcPuchaseInvoiceLineList.GetLineByPos: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
== Declaration == | == Declaration == | ||
GetLineByPos(Posistion as string) | GetLineByPos(Posistion as string) as [[PdcPurchaseInvoiceLine]] | ||
== Description == | == Description == | ||
Returns the invoice line of the | Returns the invoice line of the supplied position number. | ||
== Notes == | == Notes == | ||
This method returns one invoice line of the | This method returns one invoice line of the supplied position number. | ||
The position must be an existing position in the invoice object. Otherwise no object is returned. | The position must be an existing position in the invoice object. Otherwise no object is returned. | ||
Latest revision as of 10:28, 19 August 2015
Declaration
GetLineByPos(Posistion as string) as PdcPurchaseInvoiceLine
Description
Returns the invoice line of the supplied position number.
Notes
This method returns one invoice line of the supplied 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)