Rules (extended functionality)
###Set Report Date Filter on Application Started
This Rule is for supporting the Payroll setup and Punch Editor setup, which are separate Tutorials.
Name: TC_Set Report Date Filter on App Started
Event Name: Application Started
Constraints: (none)
Execute Rule if: Matches
TC_UpdateProgramSetting
Constraint:
SettingName: TCDateFilter
SettingValue: This Month
###Set Holiday Flag to TRUE
This Rule is for supporting the Payroll setup, which is a separate Tutorial.
Name: TC_SetHolidayFlag TRUE
Event Name: Application Started
Constraints:
Execute Rule if: Matches Any
[=FD('{DATE}','MM-dd')] Matches 01-01
[=FD('{DATE}','MM-dd')] Matches 12-25
TC_UpdateProgramSetting
Constraint:
SettingName: HolidayFlag
SettingValue: Holiday
TC_ShowMessage
Constraint:
Message: Today ([=FD('{DATE}','yyyy')]-[=FD('{DATE}','MM-dd')]) is a Holiday! Employees receive Double Pay!
###Set Holiday Flag to FALSE
This Rule is for supporting the Payroll setup, which is a separate Tutorial.
This Rule is identical to the previous Rule except for the Constraint. So you can Clone the above Rule, and simply change the Constraint in this Clone.
The previous Rule has constraint:
Matches Any
This Rule has constraint:Not Matches All
Name: TC_SetHolidayFlag FALSE
Event Name: Application Started
Constraints:
Execute Rule if: Not Matches All
[=FD('{DATE}','MM-dd')] Matches 01-01
[=FD('{DATE}','MM-dd')] Matches 12-25
TC_UpdateProgramSetting
Constraint:
SettingName: HolidayFlag
SettingValue: (blank)


