[TLD] - Termination Leave Days

31-Aug-2022 · Felix Fung

What is this?

"TLD" stands for "Termination Leave Days". This payroll variable returns the number of Leave Days(Actual Balance as of End Date in Placement) of the specified Leave Type if the End Date falls within the Pay Period.

What will the Value be Returned?

Returns the number of Leave Days(Actual Balance as of End Date in Placement) of the specified Leave Type, if the staff is terminated and the End Date falls within the Pay Period.

By Default, the number of termination leave days will be round up to the nearest Integer.

Usage

Hightlight part content can be changed

1. Basic Form

Payroll Variable Description Usage
[TLD(Leave_Type_Code)] Round up the number of Leave Days(Actual Balance as of End Date in Placement) of specified Leave Type to the nearest integer when the staff is terminated For Annual Leave Final Payment, taking the AL actual balance as the staff End Date
[TLD(AL)]
e.g 6.23 -> 7 days

2. Parameters/Variations

Parameters/Variations Description Usage
NO_ROUND No Rounding for the Leave Days(Actual Balance as of End Date in Placement) of specified Leave Type when the staff is terminated [TLD(AL,NO_ROUND)]
ROUNDING=0.5 Round up the Leave Days(Actual Balance as of End Date in Placement) of specified Leave Type to the nearest 0.5 when the staff is terminated [TLD(AL,ROUNDING=0.5)]
e.g 6.23 -> 6.5 days
{"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"}