The Actions for Starting and Ending a Workperiod are fantastic. It means we are not locked into a hard-coded Workperiod screen, Instead we have ful control over it. This is the main reason the Action were created. They were not created to be used for Automatic Start/End, though that is possible.

##WP Open or Close
[Automation Button](Widget)##
Entity Screen:Workperiods
###Properties (13):###
| Widget Type: | Automation Button |
| Name: | WP Open or Close |
| X: | 315 |
| Y: | 0 |
| Height: | 150 |
| Width: | 465 |
| Zindex: | 0 |
| Angle: | 0 |
| Scale: | 0 |
| Corner Radius: | 0 |
| Auto Refresh: | checked |
| Auto Refresh Interval: | 0 |
| Margin: | |
###Settings (7):###
| Button Color: | #00FFFFFF |
| Caption: | [='{SETTING:ISCURRENTWORKPERIODOPEN}'=='TRUE' ? '' : '']WorkPeriod is[=('{SETTING:ISCURRENTWORKPERIODOPEN}'=='TRUE' ? 'OPEN' : 'CLOSED')][=TN('{REPORT TICKET COUNT:(TS.Status=Unpaid)}')>0 ? 'Cannot Close Workperiod with ' + TN('{REPORT TICKET COUNT:(TS.Status=Unpaid)}') + ' Open TicketsClick here to see Open Tickets' : 'Click here to ' + ('{SETTING:ISCURRENTWORKPERIODOPEN}'=='TRUE' ? 'Close' : 'Open') + ' the WorkPeriod'] |
| Command Name: | WP Start or End Confirm |
| Font Size: | 16 |
| Image Path: | |
| Validation: | |
| Value: | {:ISCURRENTWORKPERIODOPEN} |
##WP Start or End Confirm
[Automation Command Executed](Rule)##
| Rule Name: | WP Start or End Confirm |
| Event Name: | Automation Command Executed |
| Rule Tags: | Workperiod |
| Execute Rule if: | Matches |
Automation Command Name | Equals | WP Start or End Confirm |
##Actions (3):##
WP Ask Question
Constraint: ‘[:CommandValue]’==‘TRUE’ && [=TN(‘{REPORT TICKET COUNT:(TS.Status=Unpaid)}’)]<1
| Question: | Are you sure you want to END the WorkPeriod? |
| Buttons: | Yes=y:Green;Gray,No=n:Red;Gray |
| AMcommand: | WP End - Payout Check |
| BGcolor: | Black |
WP Ask Question
Constraint: ‘[:CommandValue]’==‘FALSE’
| Question: | Are you sure you want to START a WorkPeriod? |
| Buttons: | Yes=y:Green;Gray,No=n:Red;Gray |
| AMcommand: | WP Start |
| BGcolor: | Black |
WP Display Ticket List
Constraint: ‘[:CommandValue]’==‘TRUE’ && [=TN(‘{REPORT TICKET COUNT:(TS.Status=Unpaid)}’)]>0
##Mappings##
Mappings
| Terminal | User Role | Department | Ticket Type |
* | * | * | * |



