# Absence Allowance

## How Allowances work

There are two types of allowances.

| Type                   | Where to set                                                                                                       | Description                                                                                                                                                         |
| ---------------------- | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Global allowance**   | [Absence Type Edit](https://lewe.gitbook.io/teamcal-neo/administration/absence-types/absence-type-edit) => Options | This is the global allowance for all users as long as they don’t have a personal allowance record. If the Global Allowance is 0, an unlimited allowance is assumed. |
| **Personal allowance** | [User Profile Edit](https://support.lewe.com/docs/teamcal-neo-manual/administration/users/user-edit/) => Absences  | This is the personal allowance record for a single user. If it exists and the personal allowance is 0, it means 0 (no allowance).                                   |

## **Setting Global Allowance**

The Global Allowance value for an absence type can be set on the Absence Type Edit page, Options tag:

<figure><img src="https://3965970693-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeNfJcWXKLPxRBe0ACiKo%2Fuploads%2F677B1cceT9Fd40zDtd0c%2Fabsence-allowance-1-768x422.png?alt=media&#x26;token=7e3c8b4e-af15-47f3-8c7e-75b71e1636b0" alt=""><figcaption></figcaption></figure>

## **Setting Personal Allowance**

The Personal Allowance value for an absence type can be set in the User Profile Edit, Absences tab:

<figure><img src="https://3965970693-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeNfJcWXKLPxRBe0ACiKo%2Fuploads%2F0nAadcPJ63d1GwaLNldn%2Fabsence-allowance-2-768x643.png?alt=media&#x26;token=7fe86c88-f09d-4c38-b791-b83c7b5204bf" alt=""><figcaption></figcaption></figure>

## **Allowance Check**

When a user enters an absence in his calendar, the following allowance checks are made:

1. If no personal allowance record exists
   1. If a positive global allowance is set, check against that allowance
   2. If global allowance is 0 (unlimited): Allow the absence
2. else (a personal allowance record exists)
   1. Check against the personal allowance (here, 0 means 0 => not allowed)

## **Personal Allowance Record**

A personal allowance record does not exist per default. It is created the first time the User Profile Edit is loaded by the following rules:

1. If the Global Allowance is 0 (unlimited)
   1. The Personal Allowance is set to 365 (which is “unlimited” considering that the value is counted per year)
2. If the Global Allowance is not zero
   1. The Personal Allowance is set to the value of the Global Allowance


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://lewe.gitbook.io/teamcal-neo/administration/absence-types/absence-allowance.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
