Other Transaction Save Action Hooks ![]()
The script file must be located in your CAPITAL program directory and must have a file name matching the contents of the following table:
|
File name |
Transaction |
|
R-ORSAVE.MAC |
Sales Order |
|
R-QUSAVE.MAC |
Quotations |
|
R-PUSAVE.MAC |
Purchase Order |
|
R-RESAVE.MAC |
Stock Receipts |
|
R-RESAVE.MAC |
Stock Returns |
|
R-RQSAVE.MAC |
Requisitions |
|
R-TRSAVE.MAC |
*Stock Transfers *Enterprise & Corporate Edition Only |
It is executed immediately after the save action is invoked on transactions listed in the above table.
Entry Values
None.
Return Values
Return FALSE to cancel saving the transaction.
Comments
This script is invoked before prompting for transaction related dialogs appear, such as payment detail requests and credit checking.
If
you are using the WriteItemValue()
function to modify the contents of a transaction before it is saved, this is the hook that should be called.
If you wish to execute script after prompting for additional transaction information has occurred, use
the Other
Transaction Pre-saving Hook. If you wish to execute script after the transaction has been saved to
the CAPITAL database, call the Other
Transaction Post-saving Hook instead.
____________________________
Related Topics:
Other Transaction Post-saving Hooks
Other Transaction Pre-saving Hooks
Transaction Columns Script Functions
![]() |