POS Navigation Tile
<size 46><sym></sym></size> <size 48><bold>POS</bold></size>
[=('{SETTING:ISCURRENTWORKPERIODOPEN}'=='TRUE' ? 'Ready' : '<color red><italic>NOT</italic></color> ready')]
<size 26>Happy Hour [=('{SETTING:PriceList}'=='HH' ? 'ACTIVE' + '<linebreak/>' + '{SETTING:HHstartTime}' + ' to ' + '{SETTING:HHendTime}': '<italic>InActive</italic>')]</size>
Update Program Setting PriceList
(optional)
This Rule updates Program Setting
named PriceList to indicate Happy Hour Active (HH) or Inactive (blank). This setting is useful for displaying the status of Happy Hour in the Application Subtitle and/or on a Navigation Tile as shown above. There are other ways to manage this status display, but this Rule is simple and effective because it allows for checking a single value (PriceList) instead of checking Days/Times to determine its status.
Name: HH Update PriceList
Event: Application Screen Changed
Execute Rule if Matches
Constraints:
Current Screen
Equals Navigation
HH Store Current PriceList
Constraint: '{DATE:ddd}'!='{SETTING:HHstartDay}' || [=TN('{DATE:HHmm}')]<[=TN('{SETTING:HHstartTime}')] || [=TN('{DATE:HHmm}')]>[=TN('{SETTING:HHendTime}')]
PriceList: (blank)
HH Store Current PriceList
Constraint: '{DATE:ddd}'=='{SETTING:HHstartDay}' && [=TN('{DATE:HHmm}')]>[=TN('{SETTING:HHstartTime}')] && [=TN('{DATE:HHmm}')]<[=TN('{SETTING:HHendTime}')]
PriceList: HH