Home › Forums › Knowledge Base › Legacy Applications › Pool Table Module
- This topic has 0 replies, 1 voice, and was last updated 19 years ago by
Rob.
-
AuthorPosts
-
April 15, 2006 at 3:20 am #1615
Rob
MemberPool Table Module
Last edited: December 15, 2003 08:14 AM
[img:2gnayn8d]http://www.possupport.net/dealer/kbase/images/pool.gif[/img:2gnayn8d]
The Pool Table module is a styling module designed to be integrated into a standard application to provide the ability to charge for pool tables per minute based on an hourly rate. Although Editnet is not required to style in the module as is, it is required to set any options, such as turning on happy hour.1. Unzip the Pool Table module into the application directory.
2. Run Manager and create a modifier group called Pool Table.
3. Create a modifier sequence called Pool Table and set it to run modifier group 98. You do not have to set the Choices option as it is not used for this group. Note that any modifier sequence number can be used, but 98 is recommended for consistency.
4. Create a PLU in the Product Database called Pool Table and assign the Pool Table modifier sequence to it. Set Price Level 0 to the hourly rate for a table. Set all other variables as appropriate for that application.
5. If the module can be used by the customer as is, you are done. Otherwise proceed to Setting Options.Options
For some customers no options may be needed. However, here are some for styling in some common options. Note that Editnet and the ability to program applications are required.
Adding Happy Hour – Edit the PoolStop chain as detailed in the comments field for that chain. This includes removing a Jump To statement and setting the Index and Pointer variables to the start and end time of happy hour. Note that these values are in the form of minutes past midnight. For example 960 would be 4PM.
Changing Table Numbers – Edit the Pool window, changing the label on each pool table button and changing the first command in each zone to set the Table Number variable to the table number.
Changing Happy Hour Pricing – Happy hour is normally half the normal hourly rate. However, if another rule is desired, edit the PoolStop chain, locate the Dollar3/2 command in the Calculate Happy Hour Credit section, and replace the command with whatever happy hour rule you want. Remember that you are calculating the amount to credit back, not the amount to charge during happy hour.
OperationTo start the timer for a table, press the appropriate pool table button, and enter the number of players. To stop the timer for a pool table and calculate the charge, press the Stop Timer button. That’s it! Here are some rules for the module:
* There can only be one table open on a check at a time. Attempting to open a second table will bring up an error window.
* A table can only be open on one check at a time. Attempting to open a table on a second check will bring up a window with a warning and asking if you want to continue. If you continue, the information for the original check will be cancelled and a new tracking will be started on the current check.
* You can not stop the timer if you do not have a table open on a check. Attempting to do so will bring up an error window.
* If no number is entered when asking for the number of players, one will be assumed.Technical
The pool table module is designed to be linked in as a modifier group for two reasons. First, it allows the standard module to be styled in without requiring Editnet. Second, it provides a method for making all variables local to the module, eliminating conflicts with other sections of the application.
Modifier group 98 was chosen because that number is not in use with any of our Legacy or Win-EZ application templates. It can be changed to a different number by renaming the MODGRP98 chain to the modifier group desired.
Internally, it works with minutes past midnight. This means that 1AM is 60, 2AM is 120, etc. The hourly rate is settable in price level 0 of the product database. Happy hour times and half price rule are not user changeable and can only be changed using Editnet.
Variable Usage
All variables are local to the module and will not have any effect on the rest of the application with the exception of Table Number, which is set so that the user can locate the correct check for a pool table using the Retrieve Check screen.
Bucket Name – Always set to POOL.
Bucket Row – Set to the table number, or 0 if no table in use.
Bucket Col – Columns 1-5 hold the check number, 10-14 hold the start time, and 20-24 hold the number of players.
Number1 – Stop time in the PoolStop chain. Check number elsewhere.
Number2 – Start time.
Number3 – Number of players.
Dollar2 – Hourly Rate.
Dollar3 – Happy hour credit amount.
Index – Happy hour start time.
Pointer – Happy hour stop time.
File List
POOL WIN
POOLCLR CHN
MODGRP98 CHN
POOLERR3 WIN
POOLERR1 WIN
POOLERR2 WIN
POOLSTOP CHN
POOLSTRT CHN
POOLPLYR WINRevisions
6/7/00 6.10 rw
1. Initial Release.
-
AuthorPosts
- You must be logged in to reply to this topic.