Skip to main content

Team leave rules for people off at the same time, closed periods and notice

Explains how to set, in the Team rules window of the Leave rules screen, how many people of a unit can be off on the same day, the closed periods without leave and how many days ahead a request is made; how employees see them while picking dates, the…

The rules of a leave type are about the person: minimum and maximum days, waiting period, negative balance. Team rules protect the team: they stop too many people being off on the same day, leave on critical days such as a stock count, and last minute requests, before the request is even sent. Employees see the days that break a rule while picking dates instead of waiting for a rejection. Users with the LEAVE_TYPE_ADD permission set them up.

Before you start

  • Branch and department (position assignment) must be correct for employees: the per-unit limit and the "Who for" choice work on this information.

  • For closed periods, decide on the dates and the leave types they cover.

Step by step

1. Open the Team rules window

  1. Go to Configuration > Leave > Leave rules.

  2. Click Team rules in the header. The window has three ready rules; each one has its own switch.

    Team rules window

Under each rule you see how many people it affects (for the per-unit limit, also in how many units it is counted separately). For each rule you make one choice: A request that breaks the rule Is stopped or Goes to approval with a warning. With the warning, the request is sent and the approver sees the note of the rule in the approval window.

2. People off at the same time

  1. Switch on People off at the same time.

  2. Enter the limit in At most and choose People or Percent in Measure. A percentage is rounded down; at least one person can always take leave.

  3. In Counted in, choose Each department separately, Each branch separately or The whole company. For departments or branches, fill in Which departments / Which branches to apply it to some of them only; empty means all.

  4. Click Save.

Approved leaves and requests awaiting approval are counted, whatever their type. Example: with at most 2 people of a department off at the same time, when two people are off on 8 and 9 December, a third person's request touching these days is stopped (or goes to approval with a warning).

3. Closed periods

  1. Switch on Closed periods and choose the behaviour.

  2. Click Add closed period; enter the Name (e.g. Year end stock count), the Dates, Who for and, if needed, the Leave types, then click Save. The period is saved at once.

  3. Use the pencil in the list to edit a period and the bin to delete it. Past periods are shown faded.

Days of a closed period are faded and cannot be picked in the employee's date picker; the reason shows on hover and in the line under the calendar.

4. Notice period

  1. Switch on Notice period.

  2. In Days, enter at least how many days before the first day of the leave the request is made; choose Who for and Leave types if needed.

  3. Click Save.

With a notice period of 3 days, annual leave for tomorrow cannot be requested today; the days before the earliest day cannot be picked. Unforeseeable types such as a sick report are not affected. The notice period does not apply to leave a leave admin enters for someone else.

Unforeseeable leave types

Unforeseeable types such as sick report, birth and bereavement are out of the rules by default. In the Leave types list they are marked "(unforeseeable)"; when a rule selects such a type, the rule covers it too. Types are chosen by name: the type of the same name in every leave rule is chosen together.

What the employee sees

  • In the date picker, blocking days are faded and cannot be picked; warning days have a yellow dot under them. The line under the calendar lists the coming closed periods and the notice period; once dates are picked it shows the note of those days.

  • When a request breaks a rule, the pre-check window gives the reason and suggests the Nearest free dates. Use these dates changes the dates and keeps the same number of working days.

    A request that breaks a rule and the nearest free dates
  • The same rules are applied on the server to requests from the web, the mobile app, the WhatsApp line and MCP.

Approver and leave admin

  • For a request past a rule set to Goes to approval with a warning, the decision summary of the approval window shows the note of the rule.

  • In the Add leave for employees window, when only team rules stop some people, a leave admin (LEAVE_ADD_ALL) can write a reason of at least 3 characters and click Add for everyone with the reason to enter the leave for them too. The reason is shown on the summary step, is written to the Audit logs as "Leave Entered Past a Team Leave Rule", and the approval window shows who entered it with which reason.

Result

Team rules apply to new requests from the moment they are saved; existing leaves do not change. Rule changes are written to the audit log as "Team Leave Rules Updated".

Common problems

Symptom: A sick report can be entered during a closed period.
​Cause: A sick report is unforeseeable and out of the rules when the rule selects no types.
​Solution: Select this type in the Leave types of the closed period to cover it.

Symptom: The per-unit limit does not apply to an employee.
​Cause: The employee has no department or branch; a person without a unit cannot be counted.
​Solution: Assign a position (department) or a branch to the employee.

Symptom: A manager can enter leave for tomorrow for someone else.
​Cause: The notice period applies only to the employee's own request.
​Solution: This is expected; closed periods and the per-unit limit are checked for leave entered for someone else too.

Related articles

Did this answer your question?