PdcPurchaseInvoices.Open: Difference between revisions
Jump to navigation
Jump to search
Created page with "== Declaration == Open(ID as long) as PdcPurchaseInvoiceHeader == Description == == Notes == == Code example == <source lang="vb"> </source> == Availability ==" |
No edit summary |
||
Line 1: | Line 1: | ||
== Declaration == | == Declaration == | ||
Open(ID as | Open(ID as string) as [[PdcPurchaseInvoiceHeader]] | ||
== Description == | == Description == | ||
Returns an opened purchase invoice object of the supplied number. | |||
== Notes == | == Notes == | ||
Line 9: | Line 9: | ||
== Code example == | == Code example == | ||
The following code example opens an existing purchase invoice, changes the invoice number, invoice date and saves the purchase invoice. | |||
<source lang="vb"> | <source lang="vb"> | ||
dim objPI | |||
set objPI = Pdc.logistics.PurchaseInvoices.Open("00027") | |||
if IsValid(objPI) then | |||
objPI.InvoiceNo = "12345" | |||
objPI.InvoiceDate = Date - 2 | |||
objPI.save | |||
end if | |||
</source> | </source> | ||
== Availability == | == Availability == | ||
Available since April 2014 (Version 4.3 onwards) |
Revision as of 07:04, 16 April 2014
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)