InvoiceValidate event

This event fires when an invoice is about to be validated—that is, when each individual field on the invoice has Complete status and field/invoice-level validations are about to be performed. The event fires at least once for each Complete invoice, and it can be fired several times if the invoice is edited and validated repeatedly.

Syntax

Public Function InvoiceValidate() As Long

Parameters

None.

Active objects

Invoice

InvoiceDefinition

InvoiceProfile

Return values

evtOK 

Normal return.

evtOKAbort 

Causes the internal invoice validation to be skipped.

evtError 

Causes an error message and job termination.

Suggested usage

Could be used to implement invoice validations that cannot be performed by INVOICES.

InvoiceValidated event

InvoiceValidateError event