In this article in The Rules Series, we show how to configure the rules engine to use the On a public holiday condition.
How the On a public holiday condition works
Overview
The On a public holiday condition creates matches whether the shift or timesheet falls on a public holiday.
The way in which we match the time depends on the Match type configuration.
Note: If a public holiday qualifies for Mondayisation, then the condition matches the Mondayised date of the public holiday if the employee is not scheduled to work on the original public holiday date.
i.e. if a public holiday falls on a Saturday, and employee does not work a shift on the Saturday (according to the employee’s standard hours) the public holiday is treated as the Monday following the original public holiday date)
Configuration options
Name | Description | Data Type | Example value |
---|---|---|---|
Days of week | This specifies the day(s) of the week that match the timesheets. Any day in this list will match the portion of each timesheet that falls on the selected day(s). | One or more options | Monday |
Match type | This specifies how to match whether the shift falls on the day(s) of the week. | One option | Portion |
Match types
Match type | Description |
---|---|
Portion (default) | The portion match type will match the portion of the shift that falls on the given day(s) of the week. An overnight shift or timesheet will only match the portion of the shift that falls on the day(s) of the week, the remainder of the shift will not be matched. |
Starts on | The starts on match type will match the shift that starts on the given day(s) of the week. An overnight shift or timesheet will match the entire shift or timesheet if it starts on one of the given day(s) in the week, regardless of when the shift ended. |
Ends on | The ends on match type will match the shift that ends on the given day(s) of the week. An overnight shift or timesheet will match the entire shift or timesheet if it ends on one of the given day(s) in the week, regardless of when the shift started. |
Majority | The majority match type will match the shift that ends on the given day(s) of the week. An overnight shift or timesheet will match the entire shift or timesheet if the majority of time in the shift is on one of the given day(s) in the week, regardless of when the shift started or ended. |
Some examples
Portion
In this example, we have special pay conditions for employees working on Christmas Day (25 December) and Boxing Day (26 December).
The employee works shifts on:
Commencing the evening of 24th December that continues into the morning of 25th December
Commencing the evening of 25th December that continues into the morning of 26th December
Commencing the evening of 26th December that continues into the morning of 27th December
In this case the employee is paid:
Commencing the evening of 24th December that continues into the morning of 25th December
Ordinary hours for the portion of shift worked on 24th December
Ordinary hours + Public holiday hours for the portion worked on 25th December
Commencing the evening of 25th December that continues into the morning of 26th December
Ordinary hours + Public holiday hours for the portion of shift worked on 25th December
Ordinary hours + Public holiday hours for the portion worked on 26th December
Commencing the evening of 26th December that continues into the morning of 27th December
Ordinary hours + Public holiday hours for the portion of shift worked on 26th December
Ordinary hours hours for the portion worked on 27th December
Starts on
In this example, we have special pay conditions for employees working on Christmas Day (25 December) and Boxing Day (26 December).
The employee works shifts on:
Commencing the evening of 24th December that continues into the morning of 25th December
Commencing the evening of 25th December that continues into the morning of 26th December
Commencing the evening of 26th December that continues into the morning of 27th December
In this case the employee is paid:
Commencing the evening of 24th December that continues into the morning of 25th December
Ordinary hours
Commencing the evening of 25th December that continues into the morning of 26th December
Ordinary hours + Public holiday hours
Commencing the evening of 26th December that continues into the morning of 27th December
Ordinary hours + Public holiday hours
Ends on
In this example, we have special pay conditions for employees working on Christmas Day (25 December) and Boxing Day (26 December).
The employee works shifts on:
Commencing the evening of 24th December that continues into the morning of 25th December
Commencing the evening of 25th December that continues into the morning of 26th December
Commencing the evening of 26th December that continues into the morning of 27th December
In this case the employee is paid:
Commencing the evening of 24th December that continues into the morning of 25th December
Ordinary hours + Public holiday hours
Commencing the evening of 25th December that continues into the morning of 26th December
Ordinary hours + Public holiday hours
Commencing the evening of 26th December that continues into the morning of 27th December
Ordinary hours only
Majority
In this example, we have special pay conditions for employees working on Christmas Day (25 December) and Boxing Day (26 December).
The employee works shifts on:
Commencing the evening of 24th December that continues into the morning of 25th December
Commencing the evening of 25th December that continues into the morning of 26th December
Commencing the evening of 26th December that continues into the morning of 27th December
In this case the employee is paid:
Commencing the evening of 24th December that continues into the morning of 25th December
Ordinary hours (the majority of the shift falls on 24th December)
Commencing the evening of 25th December that continues into the morning of 26th December
Ordinary hours + Public holiday hours (the majority of the shift falls on 25th December)
Commencing the evening of 26th December that continues into the morning of 27th December
Ordinary hours + Public holiday hours (the majority of the shift falls on 26th December)
Instructions
Create a Pay Rule and Pay Rule Version. (see: How to: Create a new Global Pay Rule, and How to: Create a new Global Pay Rule Version for examples)
Navigate to edit the pay rule version, and expand the Rules
In the conditions section, select On a public holiday
Configure the Match type for the condition
Configure the action you want to take for this condition.
Save your pay rule version.
Comments
0 comments
Please sign in to leave a comment.