Invoice Script Hooks

Screen scripts exist to filter entities that are displayed or accessed in the Invoice application, and to display user-defined fields.

Screen Typical Use Details
InvoiceUserQuery.SCR Filters the list of jobs in the list-view panel. If the LoadBrowser INVOICE program setting is disabled and this SCR file exists in the Config folder, when the Jobs node is selected, this form displays at the bottom of the screen.
InvoiceUser.SCR

Used to enter data into user-defined fields in the INVOICEUSER table.

This screen displays when the User fields tab is selected on the Invoice edit screen.

Hook scripts exist to manage the creation of invoices from the Invoice application.

Script Typical Use Details

InvUDF.VBS

Subroutine BeforeCreatePaperwork
(Previously known as InvUDF1)

Used to perform pre-processing prior to creating invoice paperwork.

Invoked before invoice paperwork is created.

InvUDF.VBS

Subroutine DuringCreatePaperwork
(Previously known as InvUDF10)

Used to perform user-defined tasks after the invoice is generated and saved, but before any printing occurs, for example, to modify the invoice to fill in any extra fields, or to modify the number of copies and printer information.

Invoked during the invoice paperwork creation process.

InvUDF.VBS

Subroutine AfterCreatePaperwork
(Previously known as InvUDF2)

Used to perform post-processing after creating invoice paperwork.

Invoked after invoice paperwork has been created and printing (that is, if the printing is set to be automatically done).

InvUDF.VBS

Subroutine AfterDeleteInvoice
(Previously known as InvUDF3)

Used to perform user-defined tasks before an invoice is deleted.

Invoked after an invoice has been deleted.

InvUDF.VBS

Subroutine AfterRefreshData
(Previously known as InvUDF4)

Used to perform user-defined tasks after invoice data is refreshed from the database.

Invoked after a forced refresh of the invoice data occurs.

InvUDF.VBS

Function CanEditInvoice
(Previously known as InvUDF5)

Used to perform user-defined tasks to ensure an invoice is editable. The returned function value must be a null string to allow the invoice to be edited.

Invoked after a selected job has been nominated for invoice editing.

InvUDF.VBS

Subroutine AfterOpenInvoice
(Previously known as InvUDF6)

Used to perform user-defined tasks after an invoice has been opened.

Invoked after an invoice has been opened.

InvUDF.VBS

Subroutine BeforeSaveInvoice
(Previously known as InvUDF7)

Used to perform user-defined tasks prior to saving an invoice.

Invoked after an invoice has been nominated to be saved, but before it is actually saved.

InvUDF.VBS

Subroutine BeforeGetSequence
(Previously known as InvUDF8)

Used to allow the invoice number to be generated from a number of different sequence keys, for those laboratories that use several series of invoice numbers, according to department.

Invoked before the next invoice sequence number is determined.

InvUDF.VBS

Function CanOpenInvoice
(Previously known as InvUDF9)

Used to perform user-defined tasks to ensure that an invoice is available for opening. The returned function value must be a null string to allow the invoice to be opened.

Invoked after a selected job has been nominated for opening.