Skip to content
English
  • There are no suggestions because the search field is empty.

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

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:

  1. Close the check on the date and time that the event is scheduled to end
    1. 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.
  2. Close the check on the date of the event and a configured date
    1. 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
    2. 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)


Step 3: Import the Task

  1. Open Task Scheduler
  2. Select Task Schedule Library on the left
  3. Select Import Task on the right
  4. In the Open window, navigate to C:\ClubSpeedCustomApps\AutoCloseEventChecks
  5. Select the task you wish to set up
  6. Select OK in the Create Task window
  7. Enter the root user password
  8. 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

 



Related Articles