PdcPurchaseInvoices.Open
Declaration
Open(ID as string) as PdcPurchaseInvoiceHeader
Description
Returns an opened purchase invoice object of the supplied number.
Notes
Code example
The following code example opens an existing purchase invoice, changes the invoice number, invoice date and saves the purchase invoice.
dim objPI
set objPI = Pdc.logistics.PurchaseInvoices.Open("00027")
if IsValid(objPI) then
objPI.InvoiceNo = "12345"
objPI.InvoiceDate = Date - 2
objPI.save
end if
Availability
Available since April 2014 (Version 4.3 onwards)