Docs
HR & BenefitsLeave

Leave Allocation

See who has which leave type and how many days are left, assign a leave type to employees, correct a balance or remove an allocation.

HR & Benefits > Leave > Leave Allocation lists the leave types that are assigned to employees, with each person's balance. An employee can only ask for a leave type that is assigned to them, so this is where you give a leave type to the people who should use it. The rules of the leave type itself (paid or not, days per year, carryforward, eligibility) are set in Leave Type.

The Leave Allocation page: one row per leave type, with the number of employees

The List

By default the page is grouped by leave type. Each row shows the leave type and, in the circle, how many employees have it. Click a row to open it, and click it again to close it. Only one leave type is open at a time.

Above the rows, Search employee... looks for an employee by name. The groups shrink to the ones that contain a match.

Searching for an employee

An Opened Leave Type

Opening a leave type lists its employees:

ColumnDescription
EmployeeName, with the department and the role under it (No role when the employee has none)
Available DaysThe balance the employee can still use
Carryforward DaysDays carried over from the previous period
Total Leave DaysThe days the allocation gives
Used Leave DaysThe days already taken
Assign DateThe day the leave type was assigned
ActionsThe pencil edits the allocation, the red bin deletes it

An opened leave type with its employees

Grouping by Employee

Add ?group_by=employee to the address of the page (/hr/leave-allocation?group_by=employee) to group the same data by employee instead: one row per employee, with the number of leave types they have, and their leave types inside.

The page grouped by employee

The page has a filter window (group by, department, role, leave type, assign date), but no button on the page opens it at the moment. Grouping by employee is therefore only possible through the address above.

Assigning a Leave Type

Click Create New (top right). The Assign Leave window opens.

The Assign Leave window

  1. Leave Type: pick the leave type. The grey box under it summarises its rules: Total Days (for example 30 Days / Year), Carryforward type and Leave Eligibility.
  2. Optional: click Custom to give these employees different rules than the leave type. Custom details lets you change Total Days, Carryforward (No or Yes) and Leave Eligibility (Immediately, After 1 month of service, After 3 months of service, After 6 months of service or After 1 year of service). The button then reads Edit Custom. The custom values apply only to the employees you assign in this step; the leave type itself does not change.
  3. Assign to Employees: click Add and choose one or more employees.
  4. Click Assign. The button stays disabled until at least one employee is chosen.

A message tells you the result, for example Leave type has been successfully assigned to 3 employees. Employees who already have the leave type are left as they are and counted as already assigned. If all the chosen employees already have it, nothing is created and the page answers All selected employees already have this leave type assigned.

A new allocation starts with a balance equal to the total days of the leave type when the leave type has a limit, and with 0 when it has none.

Editing an Allocation

The pencil opens Edit Allocation. The top of the window shows the employee and the leave type. You can change two numbers:

FieldDescription
Available DaysThe balance the employee can use
Carryforward DaysThe days carried over

The Leave Summary under them shows Total Leave Days, Used Leave Days, Assign Date and the Remaining days. Click Save. The message Leave allocation has been successfully updated confirms it.

The Edit Allocation window

Use it for corrections, for example a balance that was entered wrongly or days that have to be carried over by hand.

Deleting an Allocation

The red bin opens Delete this allocation?. Type delete in the box to enable the Delete button, then click it.

The delete confirmation

The allocation is removed from the list (it is marked as deleted, not erased), so the employee can no longer use that leave type until it is assigned again.

Permissions

The page opens for users who can see Leave Allocation. The pencil needs the permission to edit Leave Allocation and the bin needs the permission to delete it. The buttons are hidden without them.

The permissions are checked by the web app. The server only checks that the user is logged in, so the allocation endpoints themselves do not look at the role. Keep the access rules in the web app in mind when you set up roles.