> ## Documentation Index
> Fetch the complete documentation index at: https://absentify.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Payroll, leave balances, and DATEV exports

> Export approved absences for payroll (Excel or CSV), closing leave balances, and monthly DATEV LODAS ASCII import files from absentify.

## At a glance

* **Who can use this:** Workspace admins.
* **Where to find it:** **Settings > Export**.
* **Plan needed:** **Essentials**, **Plus**, or **Business v1**. See the [plan feature matrix](https://absentify.com/docs/en/roles/hr_admins/settings/plan-feature-matrix.md#analysis-and-exports).
* **Personnel numbers:** All three formats read each user's **Personnel number** from their [**Custom ID**](https://absentify.com/docs/en/roles/hr_admins/settings/users/edit/profile.md#employment-details).

All payroll, leave balance, and DATEV exports run in the background and appear under [Recent exports](https://absentify.com/docs/en/roles/hr_admins/settings/export.md#recent-exports).

## Absences for payroll

Export approved absences grouped by user, calendar month, and leave type as **Excel** or **CSV**.

### How to run a payroll export

1. Open **Settings > Export**. Under **What do you want to export?**, choose **Payroll**.
2. Under **Format**, choose **Excel** or **CSV**. For **CSV**, pick a **Column separator**.
3. Under **Period**, choose **Year** (fiscal year), **Month**, or **Date range**.
4. Under **Export for**, choose **All departments** or one department.
5. Click **Create export**, then **Download** under **Recent exports** when the file is **Ready**.

### What is included

* **Approved absences only:** Only approved requests count toward totals. In Excel, pending requests appear on their own **Pending requests** sheet and are excluded from totals.
* **Availability filter:** Leave types with [**Person is unavailable**](https://absentify.com/docs/en/roles/hr_admins/settings/leave_types/create-leave-types.md#availability) turned off are excluded.
* **Multi-month absences:** Only days inside the selected period are counted.
* **Notes sheet (Excel):** Lists users with no personnel number and any personnel numbers shared by more than one user.

| Sheet / format | Contents |
| - | - |
| **Monthly totals** (Excel) | **Workdays** (follows user schedule and public holidays), **Calendar days** (every day of the absence), **Hours** (for hourly leave, rounded to two decimals), and **Date ranges**. |
| **Days** (Excel) | Day-by-day breakdown of approved absences. |
| **Pending requests** (Excel) | Unapproved requests in the period (not included in totals). |
| **Notes** (Excel) | Missing or duplicate personnel numbers. |
| **CSV** | One table with the same rows as **Monthly totals** and English headers: `personnel_number`, `employee_name`, `email`, `departments`, `period`, `leave_type`, `unit`, `workdays`, `calendar_days`, `hours`, `dates`. |

**CSV separator rules:** **Comma (,)** uses a comma between columns and a dot for decimals (default when your language is English). **Semicolon (;)** uses a semicolon between columns and a comma for decimals (default for all other languages).

## Leave balances

**Leave balances (Excel)** shows each user's opening and closing balance per allowance type for a chosen period. The last day of the period is the closing date.

### How to export leave balances

1. Open **Settings > Export**. Under **What do you want to export?**, choose **Leave balances**.
2. Under **Period**, choose **Year** (fiscal year), **Month**, or **Date range**.
3. Under **Export for**, choose **All departments** or one department.
4. Click **Create export**, then **Download** under **Recent exports** when the file is **Ready**.

### What is in the workbook

The file has one row per user and allowance type (including inactive and archived users who still have a balance). Day-based allowances use **Days**; hour-based allowances use **Hours**.

**Closing balance formula:**

`Closing balance = Opening balance + Granted + Adjustments - Taken - Expired`

| Column on **Summary** | Meaning |
| - | - |
| **Opening balance** | Balance at the end of the day before the period starts. |
| **Granted** | Amount granted by the allowance rule on its grant dates inside the period. Upfront yearly rules show the full amount on their grant date. |
| **Adjustments** | Manual adjustments dated in the period, plus any carry-over that differs from the previous year's ending balance. |
| **Taken** | Approved absences dated in the period. |
| **Expired** | Unused allowance that lapsed in the period (carry-over past its limit or deadline, expiring allowance, and expiring adjustments). Unused allowance that does not carry over expires on day 1 of the new allowance year. |
| **Closing balance** | Balance at the end of the closing date. |
| **Pending requests (not deducted)** | Pending requests in the period. They never reduce any balance in this report. |

* **Movements** lists every change in the period with **Date**, **Until**, **Movement**, **Amount** (negative for **Taken** and **Expired**), **Leave type**, **Absence**, and **Details**.
* **Report information** repeats these definitions and lists users with missing or duplicate personnel numbers.

> [!NOTE]
>
> Leave balances are recalculated from today's data. Later edits to past absences, adjustments, or rules change past figures. App balances also deduct pending requests, so they can differ from this file. A future closing date produces a forecast using granted allowance and approved absences up to that date.

## DATEV LODAS

**DATEV LODAS (ASCII import)** creates one monthly import file for your tax advisor. Before your first export, configure **Consultant number**, **Client number**, **Leave types**, and **Wage type for vacation days** under [DATEV LODAS](https://absentify.com/docs/en/roles/hr_admins/settings/integrations/datev_lodas.md).

### How to export for DATEV LODAS

1. Open **Settings > Export**. Under **What do you want to export?**, choose **Payroll**.
2. Under **Format**, choose **DATEV LODAS**.
3. Under **Period**, select the **Month**.
4. Under **Export for**, choose **All departments** or one department.
5. Click **Create export**, then **Download** under **Recent exports** when the file is **Ready** (available for 30 days).

### Rules and limits

* **Approved absences only:** Pending, declined, and canceled requests are not exported as active absences.
* **Personnel number format:** Each user's [**Custom ID**](https://absentify.com/docs/en/roles/hr_admins/settings/users/edit/profile.md#employment-details) must be a number from `1` to `99999`.
* **Re-exporting the same month:** You can export a month again safely. Vacation days that were already transferred are not sent twice. Changes and canceled absences appear as notes in the export.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.