Graces Rule

Class Name

com.workbrain.app.ta.quickrules.GracesRule

Overview

There are two types of graces:

  • Paid graces
  • Unpaid graces

Paid graces allow employees a window of time in which they can arrive a little late or leave a little early without being penalized. Unpaid graces are a window of time in which employees are not paid for arriving early or leaving late.

Usually, graces are used to reduce supervisor workload. With graces, supervisors do not need to review records when employees did not punch in and out exactly on time. The Graces Rule allows the application to be set up with tolerances on shift start and end times. These tolerances are needed because under normal conditions employees punch in for their shift a few minutes early and punch out a few minutes late.

The Graces Rule is limited to an employee’s schedule. Any work time outside of the schedule is not considered by the rule.

Example

Employees have been known to arrive at work 15 to 20 minutes before the start of their shift, punch in to make sure that the application records them as having arrived on time, and then go to the cafeteria to have a coffee while waiting for their shifts to officially begin.

On the opposite scale, employees taking the city bus to work during the winter months were often late due to weather conditions. Since the bus ran only once an hour, the company agreed to “grace” the employees 5 minutes to allow for the bus arrival variances, rather than have the employees arrive at work an extra hour early to avoid late punches.

Parameters

Parameter Description
Eligible Time Codes Defines the time codes that use the rule. Defaults to WRK. If the time code of the Work_Detail record is not one of these codes, then the record is not eligible for gracing.
Grace Before Shift Starts Defines the number of minutes before the start of the scheduled shift to grace. Defaults to 0 minutes. For example, if this parameter has a value of 5, an employee can be up to 5 minutes early before they are given additional pay.
Grace After Shift Starts Defines the number of minutes after the start of the scheduled shift to grace. Defaults to 0 minutes. For example, if this parameter has a value of 2, an employee can be up to 2 minutes late before they are deducted pay.
Grace Before Shift Ends Defines the number of minutes before the end of the scheduled shift to grace. Defaults to 0 minutes. For example, if this parameter has a value of 2, an employee can leave up to 2 minutes early before they are deducted pay.
Grace After Shift Ends Defines the number of minutes after the end of the scheduled shift to grace. Defaults to 0 minutes. For example, if this parameter has a value of 5, an employee can stay up to 5 minutes late before they are given additional pay.
Time Code Before Shift Starts Defines the time code to use for the unpaid grace period before the shift start. Defaults to UGR (Unpaid Grace). The application changes the Work_Detail record's time code to this value if the work time falls within the grace period.
Time Code After Shift Starts Defines the time code to use for the paid grace after the shift start. Defaults to PGR (Paid Grace). The application changes the Work_Detail record's time code to this value if the work time falls within the grace period.
Time Code Before Shift Ends Defines the time code to use for the paid grace before the shift end. Defaults to PGR (Paid Grace). The application changes the Work_Detail record's time code to this value if the work time falls within the grace period.
Time Code After Shift Ends Defines the time code to use for the unpaid grace after the shift ends. Defaults to UGR (Unpaid Grace). The application changes the Work_Detail record's time code to this value if the work time falls within the grace period.
Apply To All Shifts During A Day Determines whether the rule is applied to all shifts for the work date. The default is false (the check box is deselected).
Allow Partial Graces This parameter is only relevant when there is more than one work detail outside the shift period within the grace period.

When this parameter is set to true, if multiple work details with different time codes fall in a particular grace period, then only the work details with a time code that is listed in Eligible Time Codes are changed to the appropriate grace time code.

When this parameter is set to false (default), if the work detail that falls within the particular grace period and is the furthest from the shift boundary has a time code listed in Eligible Time Codes, then all work details in the particular grace period are changed to the appropriate grace time code (despite the fact some of the work details may have time codes that are not included in the Eligible Time Codes list).

Note: When the rule compares the punches to the grace parameters, it first checks if the time is greater than 1. If the time is less than or equal to 1, then no grace is applied and the rule does not fire. Since the work detail resolution in WFM is calculated in minutes, the grace period is calculated in increments of minutes and not seconds. Therefore, the grace period must be greater than 1 minute.