InvoiceApproved event

This event fires after an invoice is approved, and validated, in Verify. This event occurs after the InvoiceApprove event.

Syntax

Public Function InvoiceApproved() As Long

Parameters

None.

Active objects

Batch

Invoice

InvoiceProfile

InvoiceDefinition

JobDescription

Return values

evtOK 

Normal return.

evtCancel

The invoice is not approved.

evtError 

Currently no action.

You can return evtCancel to abort the process. However, evtCancel is not defined in the INVOICES 5-2 COM API type library. To use evtCancel, for the few events that support it, you must declare the constant yourself:

Private Const evtCancel As Long = 2