In this article in The Rules Series, we show how to configure the rules engine to use the On specific date condition.
How the On specific date condition works
Overview
The On specific date condition matches the portion of timesheets that fall on a given day of the year.
The way in which we match the time depends on the Match type configuration.
This condition is useful if certain days of the year (particularly public holidays) attract additional penalty or allowances. In Australia, employees working on the morning of ANZAC Day (25 April) or Christmas Eve after 6pm (24 December) might be two examples where this condition may combine with another condition (like Between certain times) to create the desired conditions for an additional allowance or payment
Configuration options
Name | Description | Data Type | Example value |
---|---|---|---|
Date | This is the day of the month to match on in combination with the month. | Number | 0 - 31 |
Month | This is the month of the year to match on in combination with the date. | One option | January - December |
Match type | This specifies how to match whether the shift falls on the given day. | 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. An overnight shift or timesheet will only match the portion of the shift that falls on the day, 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. An overnight shift or timesheet will match the entire shift or timesheet if it starts on one of the given day, regardless of when the shift ended. |
Ends on | The ends on match type will match the shift that ends on the given day. An overnight shift or timesheet will match the entire shift or timesheet if it ends on one of the given day, regardless of when the shift started. |
Majority | The majority match type will match the shift that ends on the given day. 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, 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 + Christmas Day hours for the portion worked on 25th December
Commencing the evening of 25th December that continues into the morning of 26th December
Ordinary hours + Christmas Day hours for the portion of shift worked on 25th December
Ordinary hours + Boxing Day hours for the portion worked on 26th December
Commencing the evening of 26th December that continues into the morning of 27th December
Ordinary hours + Boxing Day 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 + Christmas Day hours
Commencing the evening of 26th December that continues into the morning of 27th December
Ordinary hours + Boxing Day 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 + Christmas Day hours
Commencing the evening of 25th December that continues into the morning of 26th December
Ordinary hours + Boxing Day 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 + Christmas Day 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 + Boxing Day 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 specific date
Configure the Date for this condition
Configure the Month for this condition
Configure the Match type for this 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.