[OVERTIME_MINUTES] - Overtime Minutes

21-Jul-2023 · Felix Fung
其他語言版本 English

What will the Value be Returned?

[OVERTIME_MINUTES] is for getting the number of overtime minutes of the date. The time would be counted after the shift End time

Parameters/Variations

Parameters/Variations Description               Usage
INTERVAL=Number The number of minutes would be counted every specific minutes set Overtime minutes would be counted every 30 minutes
[OVERTIME_MINUTES(INTERVAL=30)]
THRESHOLD=Number The number of minutes would be counted if it is over specific threshold minutes Overtime minutes would be counted if staff work more than 15 minutes of the Shift End time. The 15 minutes threshold will be counted in the result.
[OVERTIME_MINUTES(THRESHOLD=15)]
,DISCARD_THRESHOLD
It should be used with the
parameter "THRESHOLD"
The number of minutes would be counted if it is over the specific threshold minutes. The threshold minutes will be deducted from the result Overtime minutes would be counted if staff work more than 15 minutes of the Shift End time. The 15 minutes threshold will be excluded from the result
[OVERTIME_MINUTES(THRESHOLD=15,DISCARD_THRESHOLD)]
EFFECTIVE_TIME_RELATIVE=Number Shift End Time would be certain minutes later. The number of minutes would be counted after it The shift end time 10 minutes later for calculating the overtime minutes
[OVERTIME_MINUTES(EFFECTIVE_TIME_RELATIVE=10)]
BEFORE_START_TIME Include the staff Early in minutes as OT Incldue the Early in minutes as OT
[OVERTIME_MINUTES(BEFORE_START_TIME)]
ACUTAL_MINUTES Count OT if staff working hours are more than standard working hours. Usually for Flexi working hours Count OT if staff working hours are more than standard working hours.
[OVERTIME_MINUTES(ACUTAL_MINUTES)]
ACUTAL_MINUTES_EXCLUDE_EARLY_IN Count OT if staff working hours are more than standard working hours, BUT exclude early in minutes. Usually for Flexi working hours Count OT if staff working hours are more than standard working hours. BUT exclude early in minutes
[OVERTIME_MINUTES(ACUTAL_MINUTES_EXCLUDE_EARLY_IN)]
SHIFT_END_TIME



SHIFT_END_TIME=Time
1. Count OT only after shift end time.
E.g if staff take half day leave(morning), no OT would be counted

2. Specify the End time different from the time set in Shift
1. Count OT only after shift end time
[OVERTIME_MINUTES(SHIFT_END_TIME)]


2. Count OT after 19:00
[OVERTIME_MINUTES(SHIFT_END_TIME=19:00)]
{"status":"error","code":2,"details":null,"message":"An unexpected error occurred! Enable debug mode for more info: https:\/\/getkirby.com\/docs\/reference\/system\/options\/debug"}{"status":"error","code":32,"details":null,"message":"An unexpected error occurred! Enable debug mode for more info: https:\/\/getkirby.com\/docs\/reference\/system\/options\/debug"}