Is Nth Day Worked Week Condition

com.workbrain.app.ta.conditions.IsNthDayWorkedWeekCondition

The Is Nth Day Worked Week Condition determines whether an employee has worked the requested amount of days from the start of the week, with the labor constraints including time code, htype list, and minimum minutes.

For example, the condition can check if the day is the sixth workday, where each workday from the week start has a WRK time code and not an UNPAID hour type for at least 240 minutes.

The condition checks if the current work date is the first workday, the second workday, and so on, in the week that starts based on the registry entry DAY_WEEK_STARTS), provided that each day including the current work date is eligible within time code, hour type, work detail premium, and minimum minutes constraints.

Parameters In

Name Type Description Example
DayIndex Integer Index of the day from the week start day, for example, 6th workday. 6
TcodeNameList String List of time codes that will be used to calculate worked minutes.

If this parameter is left blank, all time codes will be used in the calculation of worked minutes.

WRK
TcodeInclusive String Format: TRUE/FALSE (default is TRUE)
  • If TRUE, the TcodeNameList is inclusive.
  • If FALSE, the TcodeNameList is not inclusive.
TRUE
HtypeNameList String A list of hour types that will be used to calculate worked minutes.

If this parameter is left blank, all hour types will be used in the calculation of worked minutes.

UNPAID
HtypeInclusive String Format: TRUE/FALSE (default is TRUE)
  • If TRUE, the HtypeNameList is inclusive.
  • If FALSE the HtypeNameList is not inclusive.
FALSE
MinMinutes Integer The minimum number of minutes that has to be worked with the listed time code and hour type constraints. The default is 0. 240
PremiumDetail String Format: D/P

Identifies if premium or detail records will be checked for worked minutes.

If this parameter is left blank, all records will be checked.

D