# Public Holiday Configuration

## How do I configure Holidays in Maica?

In order to configure Holidays within **Maica**, please follow the steps outlined below:&#x20;

### 1. Head to `Setup` and search for `Holidays`

To begin creating Holiday records, head to the Salesforce `Setup` and search for `Holidays`, as shown below.&#x20;

<figure><img src="https://293583916-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9selzjEx6KX7RYEawAVr%2Fuploads%2FGlLHfWSQkyAPX1LkxSyw%2Fpublic%20holiday%20search.png?alt=media&#x26;token=4b1c8bd2-b87f-4b85-81e6-d07a2b7ad8bb" alt=""><figcaption></figcaption></figure>

### 2. Create a New `Holiday`&#x20;

Once you have opened the `Holiday` tab, click the `New` button to create a new `Holiday`.&#x20;

{% hint style="info" %}
Maica supports both State and National Holidays.&#x20;
{% endhint %}

Please refer to the following naming conventions for both State and National Holidays:&#x20;

**State Based Holidays**

* In order to create a **State** specific Holiday, simply ensure that you include **both** the Short and Long `State Suffix` from the table below
* For example: to create a **Victorian only** Holiday for the **Melbourne Cup** on 01/11/2022, you need to use the following `Holiday Name`: `Melbourne Cup (VIC) (Victoria)`

**National Holidays**

* In order to create a **National** Holiday, simply ensure that you type **only** the `Holiday Name` and do not include any reference to a `State Suffix` from the table below
* For example: to create a National Holiday for **Christmas Day** on 25/12/2022, you need to use the following `Holiday Name`: `Christmas Day`

| State Name                   | State Name Suffix (Short) | State Name Suffix (Long)         |
| ---------------------------- | ------------------------- | -------------------------------- |
| Victoria                     | `(VIC)`                   | `(Victoria)`                     |
| New South Wales              | `(NSW)`                   | `(New South Wales)`              |
| Queensland                   | `(QLD)`                   | `(Queensland)`                   |
| Western Australia            | `(WA)`                    | `(Western Australia)`            |
| South Australia              | `(SA)`                    | `(South Australia)`              |
| Tasmania                     | `(TAS)`                   | `(Tasmania)`                     |
| Australian Capital Territory | `(ACT)`                   | `(Australian Capital Territory)` |
| Northern Territory           | `(NT)`                    | `(Northern Territory)`           |
| National                     | Blank                     | Blank                            |

<figure><img src="https://293583916-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9selzjEx6KX7RYEawAVr%2Fuploads%2F0GRNNNrDU5zidNONSIZY%2Fimage.png?alt=media&#x26;token=53346b3b-3e80-4dd7-9ce8-640eb43833c7" alt=""><figcaption></figcaption></figure>

### 3. Link your `Holiday` to a `Business Hour` Record

Once you have created your `Holiday` Records, it is crucial to link them to a `Business Hour` Record. To do so, first select the `Holiday` and then click the `Add/Remove` button under `Business Hours`, as shown below. &#x20;

<figure><img src="https://293583916-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9selzjEx6KX7RYEawAVr%2Fuploads%2Fs9wxctX4LcqX0S9iKilb%2Fadd%20business%20hours.png?alt=media&#x26;token=f0d3ef71-a61e-408d-ba32-6189e084c2a1" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
If you have not already defined Business Hours in **Maica**, you must do so first. To learn more, click [here](#how-do-i-configure-business-hours-in-maica).&#x20;
{% endhint %}

After clicking the `Add/Remove` button, you will be directed to a page which allows you choose to which `Business Hours` the selected `Holiday` applies.&#x20;

{% hint style="info" %}
In order for **Maica's** validation to run effectively, ensure you select **`Maica Holidays`** as your Selected Business Hours, as shown below.&#x20;
{% endhint %}

<figure><img src="https://293583916-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9selzjEx6KX7RYEawAVr%2Fuploads%2FjOUt4EgnDLVeS3H5Q5HU%2Fsave%20business%20hours.png?alt=media&#x26;token=758ce388-b284-44ad-a178-bdf26b0f330e" alt=""><figcaption></figcaption></figure>

<table><thead><tr><th width="110">Action</th><th>Description </th></tr></thead><tbody><tr><td>1.</td><td>Select <code>Maica Holidays</code> as your Business Hours record to assign to the Holiday.</td></tr><tr><td>2.</td><td>Hit <code>Add</code> to move it from <code>Available Business Hours</code> to <code>Selected Business Hours</code>.</td></tr><tr><td>3.</td><td>Click Save to finalise your changes.</td></tr></tbody></table>

Once done, you will see your Business Hour record has been successfully added to your Holiday, as shown below.&#x20;

<figure><img src="https://293583916-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9selzjEx6KX7RYEawAVr%2Fuploads%2FVlKNLmt1mxpssw5cnP2x%2Fbusiness%20hours%20added.png?alt=media&#x26;token=ddafc3e7-e72e-4b34-938f-753c3421023e" alt=""><figcaption></figcaption></figure>

## How do I configure Business Hours in Maica?

In order to configure Business Hours within **Maica**, please follow the steps outlined below:&#x20;

### 1. Head to `Setup` and search for `Business Hours`

To begin creating Holiday records, head to the Salesforce `Setup` and search for `Holidays`, as shown below.&#x20;

<figure><img src="https://293583916-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9selzjEx6KX7RYEawAVr%2Fuploads%2FL19T6Bd06IBQtErCGVi9%2Fbusiness%20hours%20search.png?alt=media&#x26;token=23a5163e-2a0c-480e-b64f-c02e9634472b" alt=""><figcaption></figcaption></figure>

### 2. Create New `Business Hours`&#x20;

Once you have opened the `Business Hours` tab, click the `New Business Hours` button to create a new record.&#x20;

Next, follow the below outlined steps:&#x20;

| Step                                        | Note                                                                                                                                              |
| ------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- |
| <ol><li>Business Hours Name</li></ol>       | When creating a Business Hours record to associate with Holidays, ensure you name it **Maica Holidays**.                                          |
| <ol start="2"><li>Time Zone</li></ol>       | Select your relevant Time Zone.                                                                                                                   |
| <ol start="3"><li>Business Hours </li></ol> | Again, when creating a Business Hours record to associate with Holidays, leave this stage at its default value. (24 hours selected for each day). |

{% hint style="info" %}
Ensure when completing Step 1, you mark your Business Hours as `Active` by clicking the Checkbox located below the name input.&#x20;
{% endhint %}

Finally, hit `Save` to finalise your Record.&#x20;
