Auto-Close Event Checks
Auto-Close Event Checks
This article will walk you through creating a task in the Windows Task Scheduler that will trigger event reservation checks to be closed either at the end date & time of the event that the check is associated with or on the end date of the event at the configured time in the script that the check is associated with.
Note: See notes at end of the article for feature functions
TABLE OF CONTENTS
- Step 1: Download and extract the files
- Step 2: Task Types
- Step 3: Import the Task
- Feature functions:
Step 1: Download and extract the files
Download the attached files and extract them into the c:\ClubSpeedCustomApps folder. If the ClubSpeedCustomApps folder does not exist, then create it. The file path you should have is C:\ClubSpeedCustomApps\AutoCloseEventChecks\[.xml & .bat files].
Step 2: Task Types
There are two task types:
- Close the check on the date and time that the event is scheduled to end
- The task you will want to import is the "AutoCloseEventChecks By Event End Date.xml"
- FE: If there is an event that is scheduled from 3 pm to 5 pm, if you schedule this task then the check will be configured to have a close date at 5 pm (the end time of the event) on the day of the event was scheduled when the task is run.
- The task you will want to import is the "AutoCloseEventChecks By Event End Date.xml"
- Close the check on the date of the event and a configured date
- The task you will want to import is the "AutoCloseEventChecks By Time.xml"
- FE: When this task ran, it will configure event reservation checks to show as closed on the date of the event at the time configured in the script
- How to configure the close time:
- Edit the AutoCloseEventChecks_By_Time.bat where you should have extracted it (C:\ClubSpeedCustomApps\AutoCloseEventChecks)
- Update the script to have the time you wish the events to show to have been closed on (in 24 hour time)
- The task you will want to import is the "AutoCloseEventChecks By Time.xml"
Step 3: Import the Task
- Open Task Scheduler
- Select Task Schedule Library on the left
- Select Import Task on the right
- In the Open window, navigate to C:\ClubSpeedCustomApps\AutoCloseEventChecks
- Select the task you wish to set up
- Select OK in the Create Task window
- Enter the root user password
- The task is now good to go and will run before midnight
Feature functions:
- Feature will
- Close checks from the past
- Close checks from the past if they have a 0 balance and still have reservation points
- Feature will not
- Close checks in the past if they have a remaining balance
- Close checks in the past if they have unassigned credit items
- Close checks if they have a negative balance
- Close the check if the event is scheduled after the current time of day