generate/cbs2.gif Order Authorisation Hook (R-OEAPPR.MAC) generate/enh74c.jpg


 

The script file must be located in your CAPITAL program directory and must have the file name R-OEAPPR.MAC.

This hook script can be used to control the sales order authorisation process. A sales order's authorisation status is checked when a sales order is saved.

Entry Values

Variable

Purpose

Custrec->X

You may query the contents of the fields of the customer account, in particular Custrec->Cuscredit. (The customer's credit limit.)

Cuaux000->X

You may query the contents of the customer account's user fields if applicable.

Return Values

The script should return TRUE if the sales order is authorised, otherwise FALSE.

Comments

The sales order authorisation hook is used as a check that is performed in addition to the other authorisation checks that may be activated under Sales Order Installation Options. If you wish to control the authorisation process, clear the other authorisation settings.

____________________________

Related Topics:

Sales Order Installation Options

Scripting Hooks

Script Programming



Help Topic Map