Worked Last Next N Days Condition
com.workbrain.app.ta.conditions.WorkedLastNextNDays
The Worked Last Next N Days Condition determines whether the employee has worked at least X minutes, within the given time code and hour type constraints for the next or last N days.
For example, you can use this condition to determine if an employee has worked at least 240 minutes in the last 5 workdays, where each workday has a time code WRK, the hour type is not UNPAID, and is an actual scheduled day. The condition queries the employee’s schedule to determine whether the employee has worked a minimum number of minutes, with a specified time code and hour type, for a set number of days, before and after the current workday.
Parameters In
Name | Type | Description | Example |
---|---|---|---|
DaysToLook | Integer | The number of days to look back or ahead when checking for worked minutes. | 3 |
LastNext | String | Format: LAST/NEXT
If LAST, the condition checks the previous number of work days. If NEXT, the condition checks the upcoming number of work days. |
LAST |
MinMinutes | Integer | The minimum number of minutes that must be worked with
the specified time code and hour type constraints.
The default is 0. |
240 |
Scheduled | String | Format: SCHEDULED/ UNSCHEDULED/ ALL
Indicates which type of worked minutes will be checked. |
ALL |
TcodeNameList | String | The list of time codes that is used to calculate worked
minutes.
If a value is not supplied, all time codes are used. |
WRK |
TcodeInclusive | String | Format: TRUE/FALSE (default is TRUE)
If TRUE, the time code-name list (TcodeNameList) is inclusive. If FALSE, the time code-name list is not inclusive. |
TRUE |
HtypeNameList | String | The list of hour types that is used to calculate worked
minutes.
If a value is not supplied, all hour types are used. |
"UNPAID" |
HtypeInclusive | String | Format: TRUE/FALSE (default is TRUE)
If TRUE, the hour type name list (HtypeNameList) is inclusive. If FALSE, the hour type name list is not inclusive. |
False |
ScheduleType | String | Format: ACTUAL/DEFAULT
Indicates which type of schedule will be considered when checking worked minutes. |
ACTUAL |
WorkDetailTypesToCheck | String | Format: WORK DETAILS / WORK PREMIUMS / ALL
Indicates which type of work detail will be counted. |
WORK DETAILS |
Example
In this example, the condition checks the employee’s actual schedule 3 days before the current day to calculate a minimum of 480 minutes with the time code WRK (time code inclusive) and the hour type UAT (hour type not inclusive).
Name | Value |
---|---|
DaysToLook | 3 |
LastNext | LAST |
TcodeNameList | WRK |
TcodeInclusive | TRUE |
HtypeNameList | UAT |
HtypeInclusive | FALSE |
MinMinutes | 480 |
Scheduled | ALL |
ScheduleType | ACTUAL |