InvoiceValidated event

This event fires after invoice-level validation routines (which follow field-level validation routines) have been performed, regardless of the result—that is, before both InvoiceComplete and InvoiceValidateError. It is also fired by Interpret even when the invoice has not received Complete status, but all fields have been validated.

Syntax

Public Function InvoiceValidated() As Long

Parameters

None.

Active objects

Invoice

InvoiceDefinition

InvoiceProfile

JobDescription

Return values

evtOK 

Normal return.

evtOKAbort 

No effect, treated the same as evtOK.

evtError 

Causes an error message and job termination.

Suggested usage

Could be used for doing extra checks on the invoice after all internal validation routines have been performed but before the invoice is saved to the database.

InvoiceValidate event

InvoiceValidateError event