PdcPurchaseInvoiceHeader.SetAVAdminID: Difference between revisions
Jump to navigation
Jump to search
Created page with "SetAVAdminId(AVAdminId: Integer): WordBool" |
No edit summary |
||
Line 1: | Line 1: | ||
SetAVAdminId(AVAdminId | == 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. | |||
<source lang="vb"> | |||
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 | |||
</source> | |||
== Availability == | |||
Available since April 2014 (Version 4.3 onwards) |
Latest revision as of 11:00, 19 August 2015
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)