compteurAbsences batch
The compteurAbsences batch enables you to calculate acquired rights for leaves, so that employees can know their rights in real time. This batch calculates:
- the actual rights acquired incrementally,
- the maximum number of rights acquired at the end of the acquisition period.
This batch only calculates rights for the counters associated with leave types that are an Increment. For more information, refer to Setting up the counters. For counters of this type, the start and end dates of acquisition are required because the compteurAbsences batch uses these dates as well as the monthly increment set up in the leave type to calculate the rights.

When creating the batch, select compteurAbsences in the Batch template drop-down list.
When the batch is started, Akuiteo calculates the acquired rights for all the counters associated with leave types that are an Increment. The batch uses the monthly increment set up in the leave type and calculates the rights acquired by the employee:
- from the start date of acquisition of each counter,
- until the M-1 date (last due month) when compared to the batch processing date.
The calculation ends one month after the end date of acquisition specified in each counter.
Example
For a counter of paid leaves with an acquisition period from 06/01/2021 to 05/31/2022, with a monthly increment set up at 2.08:
- If we calculate the rights on 08/01/2021 (2nd due month), the employee will have acquired 4.16 days.
- If we calculate the rights on 04/01/2022 (10th due month), the employee will have acquired 20.8 days.
- If we calculate the rights on 06/01/2022, the counter's end date of acquisition has been reached and the employee will have acquired the total number of rights, so 25 days.
Specific cases
- For an employee with a departure date specified, the batch calculates all the rights until that departure date.
- The batch only calculates acquired rights for active employees. Employees with an arrival date that is after or a departure date that is before the batch's execution date are ignored.
- The batch only calculates rights for counters with a current acquisition period. Counters with a start date of acquisition that is after or an end date of acquisition (+ 1 month) that is before the batch's execution date are ignored.
- The adjustments history of each counter is also taken into account when calculating acquired rights. The rights added or removed during the acquisition period are taken into account.
Example
An employee has acquired 22.88 days. However, this employee had a sick leave during that period, which causes a deduction of 1.4 day in the counter's adjustments history.
The rights are at 21.48 days after the deduction.
- For the arrival of an employee, a prorata is calculated for the month of the arrival date.
Example
For a counter of paid leaves with a monthly increment set up at 2.08: if the employee arrives on 05/17/2022 and the rights are calculated on 06/01/2022, the employee would have been present for 16 days and will have acquired 1.07 day.
- At the end of the acquisition period or for the departure of an employee, the number of acquired rights is rounded up to the next whole number. A prorata is also calculated, unless the employee's departure date is the last day of the month (in this case, the monthly increment is used).
Example
For a counter of paid leaves with an acquisition period from 06/01/2021 to 05/31/2022, with a monthly increment set up at 2.08: at the end of the period, the employee will have acquired 12 x 2.08 so 24.96 days. On 06/01/2022, the acquired rights are automatically rounded up to 25 days.
If an employee leaves the company on 05/07/2022, he was present during 7 days for the month of May and acquired 0.48 day for this month. For all the period, from 06/01/2021 to 05/07/2022, he acquired 23.36 days that are rounded up to 24 days.

There are no parameters specific to the compteurAbsences batch.
Reference
To view the parameters common to most batches, refer to Setting up the common parameters.