In this article in The Rules Series, we show how to configure the rules engine to use the Exceeding X hours in a period condition.
How the Exceeding X hours in a period condition works
Overview
The Exceeding X hours in a period condition matches portions of time that occur when the employees timesheet hours exceed a threshold over a certain time period.
The configuration includes the threshold for hours, the period length (in weeks or months) and a seed or reference date, which is the first day to start measuring from.
Configuration options
Name | Description | Data Type | Example value |
---|---|---|---|
Number of hours | Describes the threshold after which the condition will start matching time within the period. | Number | 40 |
Number of periods | The number of periods that the condition will use as a window for assessing whether the timesheets exceed the Number of hours | Number | 1 |
Period | This is the period that the condition will use as a window for assessing whether the timesheets exceed the Number of hours | One option | Week(s) Month(s) |
Starting reference date | This is the starting reference date, and is the first date of the first period. All windows will start at the anniversary of this date (i.e. one week, or month after this date, etc.) Setting this date appropriately is important, as it is the same date for all employees in this rule set, regardless of their pay group or pay run template settings. | Date | 04/01/2021 |
An example
In this example, employee are paid an additional penalty for any hours worked in excess of 40 hours in a single week. The week starts on 4 January, 2021, which is a Monday. So all windows will start on a Monday, and run through to Sunday.
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 Exceeding X hours in a period
Configure the Number of hours for this condition.
Configure the Number of periods for this condition.
Configure the Period for this condition.
Configure the Starting reference date 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.