PdcPuchaseInvoiceLineList.GetLineByPos: Difference between revisions

From External Bemet Wiki
Jump to navigation Jump to search
Created page with "Available since July 2015 (Version 5.1 onwards)"
 
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
== 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.
<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)

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)