PdcPuchaseInvoiceLineList.GetLineByPos

From External Bemet Wiki
Revision as of 09:23, 19 August 2015 by TC (talk | contribs)
Jump to navigation Jump to search

Declaration

GetLineByPos(Posistion as string) as PdcPurchaseInvoiceLine

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)