[HD] - Holiday Days

22-Aug-2022 ·

What is this?

"HD" stands for "Holiday Days". This payroll variable returns the number of Holidays within the pay period.

What will the Value be Returned?

Returns the number of holidays within the Pay Period.

Pay Period means the date range of the payroll batch.

The Holidays to count are retrieved from Placement -> Roster -> Holiday Group.

Usage

For payroll in Hong Kong, holiday pay has to be paid in Average Daily Wages instead of common daily rate, or you may have a policy to deduct holiday pay if staff is terminated within first 3 months of the employment period. So you need to take the number of holidays for Holiday Pay.

1. Basic Form

Payroll Variable Description
[HD] Get the number of Holiday according to the Holiday Group set in the staff Roster

2. Parameters/Variations

Parameters/Variations Description Usage
CODE=Holiday Group Code Get the number of Holiday according Holiday Group specified [HD(CODE=HK01)]
FIRST_THREE_MONTHS Take the number of Holidays within the first 3 months of the employment and Pay Period
Day(s) would be skipped if staff has taken leave on Holiday
According to the Holiday Group set in the staff Roster
[HD(FIRST_THREE_MONTHS)]

According to the specified Holiday Group
[HD(CODE=HK01,FIRST_THREE_MONTHS)]
3 Take the number of Holidays after the first 3 months of the employment and Pay Period
Day(s) would be skipped if staff has taken leave on Holiday
According to the Holiday Group set in the staff Roster
[HD(3)]

According to the specified Holiday Group
[HD(CODE=HK01,3)]
WEEKDAY Take the number of Holiday on Weekdays only within the Pay Period
Day(s) would be skipped if staff has taken leave on Holiday
According to the Holiday Group set in the staff Roster
[HD(WEEKDAY)]

According to the specified Holiday Group
[HD(CODE=HK01,WEEKDAY)]
IGNORE_OVERLAP The number of Holidays will be counted even overlapping leave is found, can be use with all of the above Parameters/Variations [HD(IGNORE_OVERLAP)]
[HD(3,IGNORE_OVERLAP)]
[HD(CODE=HK01,FIRST_THREE_MONTHS,IGNORE_OVERLAP)]