PdcPurchaseInvoices.Show: Difference between revisions

From External Bemet Wiki
Jump to navigation Jump to search
No edit summary
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:


== Description ==
== Description ==
This method opens the purchase invoice of the applied number and show it in PdC.
This method opens the purchase invoice of the applied number and show it in PdC. Calling this method multiple times for the same purchase invoice no longer opens multiple windows.
The object of the purchase invoice is returned.
The object of the purchase invoice is returned.


== Notes ==
== Notes ==
Invoiceno = The number of the invoice to open in PdC.
Invoiceno = The number of the invoice to open in PdC (PIH_HEADER.BOOKNUMBER).
Do not use show when using the Active purchaseinvoice.


== Code example ==
== Code example ==

Latest revision as of 15:17, 14 November 2016

Declaration

Show(InvoiceNo as string) as PdcPurchaseInvoiceHeader

Description

This method opens the purchase invoice of the applied number and show it in PdC. Calling this method multiple times for the same purchase invoice no longer opens multiple windows. The object of the purchase invoice is returned.

Notes

Invoiceno = The number of the invoice to open in PdC (PIH_HEADER.BOOKNUMBER). Do not use show when using the Active purchaseinvoice.

Code example

dim objPI
 
  set objPI = Pdc.logistics.PurchaseInvoices.Show("00027")
  if IsValid(objPI) then
    msgbox "The invoice number is: " & objPI.InvoiceNo
  else
    msgbox "The invoice number is not found in PdC."
  end if

Availability

Available since April 2014 (Version 4.3 onwards)