MoneyWorks Manual
Edit
Cancel (windowRef)
A script handler you can implement to override standard MoneyWorks behaviour.
Automatically called: When a window is closed via the Cancel button.
Use for: Reacting to the user clicking Cancel
Specific Naming: You can and should implement a Close handler that is specific to the particular window ID of interest. e.g. Cancel:<WindowId>:<TransactionType> (the last of these applies only when the WindowID is F_TRANS)