PdcPurchaseInvoices.Active: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 26: | Line 26: | ||
== Availability == | == Availability == | ||
Available since April 2014 (Version 4.3 onwards) |
Revision as of 07:10, 16 April 2014
Declaration
Active as PdcPurchaseInvoiceHeader
Description
The active purchase invoice is returned in an object.
Notes
After you changes some data in the invoice, you have to call refresh. After calling refresh the invoice form is updated with the object data.
Code example
This example changes the invoice number, invoice date and save the changes of the active/opened invoice in PdC
dim objPI
set objPI = Pdc.logistics.PurchaseInvoices.Active
if IsValid(objPI) then
objPI.InvoiceNo = "12345"
objPI.InvoiceDate = Date - 2
objPI.Save
objPI.Refresh
else
msgbox "No invoice opened in PdC."
end if
Availability
Available since April 2014 (Version 4.3 onwards)