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 |
Used to perform pre-processing prior to creating invoice paperwork. |
Invoked before invoice paperwork is created. |
InvUDF.VBS Subroutine DuringCreatePaperwork |
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 |
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 |
Used to perform user-defined tasks before an invoice is deleted. |
Invoked after an invoice has been deleted. |
InvUDF.VBS Subroutine AfterRefreshData |
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 |
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 |
Used to perform user-defined tasks after an invoice has been opened. |
Invoked after an invoice has been opened. |
InvUDF.VBS Subroutine BeforeSaveInvoice |
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 |
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 |
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. |