Worked Less Than Scheduled Rule
Class Name
com.workbrain.app.ta.quickrules.WorkedLessThanScheduleRule
Overview
This rule is used to decrease an employee's pay when working less time than scheduled. A premium record is inserted to reflect the deduction in pay.
The number of minutes for the premium represents the difference of scheduled minutes this week minus the actual minutes this week (week starts by DayWeekStarts) if this hold true:
- The calculation date is the Run Date.
- The time code that is used to reflect the premium does not yet exist for the calculation date.
For example, with these work details before:
Day | Schedule | Start | End | Time Code |
---|---|---|---|---|
Mon | 09:00 - 17:00 | 09:00 | 17:00 | WRK |
Tues | 09:00 - 17:00 | 09:00 | 17:00 | WRK |
Wed | OFF | |||
Thur | 09:00 - 17:00 | 09:00 | 17:00 | WRK |
Fri | 09:00 - 17:00 | 09:00 | 17:00 | WRK |
Sat | 09:00 - 17:00 | 09:00 | 17:00 | UAT |
Sun | OFF |
Current date: Sunday
With these Worked Less Than Scheduled parameters:
- TimeCode: WRK
- Hourtypes: REG
- DayWeekStarts: Mon
- TcodeNametoInsert: DEDUCT
- RunDate: Sun
If the employee is scheduled to work 40 hours this week, but only worked 30 hours, then 40 hours - 30 hours = 10 hours of premium. The work details after become:
Start | End | Minutes | Time Code |
---|---|---|---|
00:00 | 00:00 | 600 | DEDUCT |
The employee receives 10 hours of premium.
Parameters
Parameter | Description |
---|---|
Time Codes to Find | Eligible time codes to calculate actual worked time |
Hour Types to Find | Eligible hour types to calculate actual worked time |
Day Week Starts | Start of week day |
Time Code to Insert | Time code for premium record |
Run Date | The date to run, either "Mon","Tue","Wed","Thu","Fri","Sat","Sun" |
Apply To All Shifts During A Day | Selecting this check box means that this rule will apply to multiple shifts in a day whenever they occur |