MoneyWorks Manual
Edit
After (windowRef)
A script handler you can implement to override standard MoneyWorks behaviour.
Automatically called: Called when a window is closing or when a new record is about to be loaded into it. May not be called if no content was modified.
Use for: Reacting to the user clicking OK
Specific Naming: You can and should implement an After handler that is specific to the particular window ID of interest. e.g. After:<WindowId>:<TransactionType> (the last of these applies only when the WindowID is F_TRANS)