# Setting up your calendar

{% embed url="<https://www.youtube.com/watch?t=&v=qdS_1y3wUeo>" %}

***

## Define a business opening period

* From **`setup`** > **`dropdowns`**, enter **`calendar`** and click on **`calendars`**.

<div align="left"><img src="https://2961961068-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsGALtnzA2IROeldmXKt5%2Fuploads%2Fgit-blob-0b8604ec7abb6817359de434a58233ac1cd602a3%2FCalendar-1.png?alt=media" alt="Alt text"></div>

* Click on **`add`**
* Name your calendar,
* In the **`time ranges`** tab, select the 1st **`day`** of opening and the **`start`** and **`end`** times of the day. If you need to create a lunch break, you will need to create 2 entries per day (e.g. Monday 9am-12pm then Monday 2pm-7pm).
* Click on **`add`** for each entry you make

![Alt text](https://2961961068-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsGALtnzA2IROeldmXKt5%2Fuploads%2Fgit-blob-abbfade3ba8b84eef561a202b24bc2b71b5a6051%2FCalendar-2.png?alt=media)

{% hint style="success" %}
&#x20;**Different days and times for each entity**\
You can create several opening times on different entities. For example :\
\
\- **Entity A**: Monday to Friday, 9am to 7pm\
\- **Entity B**: Monday to Saturday from 8am to 6pm<br>

<img src="https://2961961068-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsGALtnzA2IROeldmXKt5%2Fuploads%2FmrSvaO1ljnZMyfinuqup%2FCalendar-2-bis.png?alt=media&#x26;token=1868e6b5-9408-442b-a0de-b9b5d1d78890" alt="" data-size="original"><br>
{% endhint %}

## Create a closing date/period

* From **`setup`** > **`dropdowns`**, enter **`closing`** and click on **`closing periods`**.

![Alt text](https://2961961068-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsGALtnzA2IROeldmXKt5%2Fuploads%2Fgit-blob-d85b2f49cc1b08fbd73634327abdb8752c21310a%2FCalendar-3.png?alt=media)

* Click on **`add`**,
* enter a name,
* a start date,
* an end date,
* and a recurrence.

![Alt text](https://2961961068-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsGALtnzA2IROeldmXKt5%2Fuploads%2Fgit-blob-b26d1d3e6549c774bfbd519ec2991bc8f1b54063%2FCalendar-4.png?alt=media)

!!! tip "Recurrence information" If you add a **recurring period**, for example from Monday 7 August 2023 to Sunday 20 August 2023. The recurrence will apply to the same dates the following year, i.e. from Wednesday 7 August 2024 to Tuesday 20 August 2024. Please check that your information is consistent before validating a recurrence.

## Defining a closing date/period for an entity

Requirements within a company are not always the same. For example, in entity A, closing days may differ from entity B. You can therefore set up different closing days and separate holidays.

If this is your case, make sure you create opening days and times in the correct entities (you can always skip the transfer list if you make a mistake).

* From **`setup`** > **`dropdowns`**, enter **`calendar`** and click on **`calendars`**

![Alt text](https://2961961068-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsGALtnzA2IROeldmXKt5%2Fuploads%2Fgit-blob-ac6d23aacf600fc0321b5fee0ed4ea6ae5402619%2FCalendar-6.png?alt=media)

* click on the calendar that is to receive a different day/period of holidays, click on **`closing periods`**,
* in the **`closing periods`** tab, select the period created earlier,
* click on **`add`**

## Delete a holiday date/period

* From **`setup`** > **`dropdowns`**, enter **`closing`** and click on **`closing periods`**.
* Click on the period you wish to delete,
* click **`delete permanently`**.

![Alt text](https://2961961068-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsGALtnzA2IROeldmXKt5%2Fuploads%2Fgit-blob-ae85deb5be4afdf70d348e9e499421e4ba9097a5%2FCalendar-7.png?alt=media)

If you have several to delete, you can skip the select-entries, **`actions`** then **`delete permanently`**.

!!! Warning "Caution" This will permanently delete the entry for **ALL** entities

## For more options

You can also download the [Holiday](https://glpi-plugins.readthedocs.io/en/latest/holidays/index.html) plugin to enter mass holidays or specific to certain countries or regions.
