In this article in The Rules Series, we show how to configure the rules engine to combine conditions using group timesheets.
How group timesheets works
group timesheets allows you to combine a nested condition, and use a container (see How to: Combine conditions: Nested conditions ) to group timesheets together as a single group.
Determines the number of hours from the start of the first timesheet to include in the group
Nested condition that describes how to select matches before applying the limit
In this example, we want to group timesheets together, so that if the employee works in multiple locations during the day, or for whatever reason records multiple timesheets in a day, the rules engine still adheres to the ‘end of shift’ rule.
In this case, we group timesheets, and then apply a penalty if the end of the shift is between 10pm and midnight.
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
Configure a condition, select the group condition
Select the number of hours to group matches to in the window hours field
Select the sub-condition to user in the When … condition field
Save your pay rule version.
Please sign in to leave a comment.