InvoiceApprove event

This event fires directly after the Approve button is clicked in Verify. This event fires before validation occurs and before the InvoiceApproved event is fired.

If you want to access field values or invoice properties, you should use the InvoiceApproved event instead. This is the most reliable method. A Verify operator could make a change to an invoice but this change may not be immediately saved in the database. If the InvoiceApprove event is used by a plug-in to access a changed value, this event will return the saved value, but not necessarily the new value that the operator has entered.

Syntax

Public Function InvoiceApprove() As Long

Parameters

None.

Active objects

Batch

Invoice

InvoiceProfile

InvoiceDefinition

JobDescription

Return values

evtOK 

Normal return.

evtError 

Displays an error.

evtCancel 

The invoice is not approved.