PdcPurchaseInvoiceHeader.SetAVAdminID
Declaration
SetAVAdminId(AVAdminId as Integer) as Boolean
Description
Sets the Accountview administration ID of the purchase invoice header.
Notes
Code example
The following code example changes the Accountview administration ID and saves the invoice.
dim objPI
set objPI = Pdc.logistics.PurchaseInvoices.Open("157625")
if objPI.SetAVAdminID(5) then
if not objPI.Save then
msgbox pdc.LastError
end if
else
msgbox pdc.LastError
end if
Availability
Available since April 2014 (Version 4.3 onwards)