HR · Leave and payroll · MOFU

Leave management software that connects to payroll in Spain: what has to flow from one to the other and how to choose it

On the 25th of every month, someone in administration opens the holiday spreadsheet, searches their inbox for sick notes and leave requests, and writes to the gestoría (the external agency that runs payroll for many Spanish SMEs) a message that begins “this month’s payroll changes”. Whatever is left out of that message ends up in a miscalculated payslip.

Leave management software that connects to payroll exists so that the message is no longer needed. This guide explains which data really has to flow, what Spanish law obliges you to keep, how it connects to the payroll software and what to ask before choosing one.

A navy-blue glass calendar with one week lit up, linked by a blue thread with two approval ticks to a stack of glass payslips with an amber ring
Owner of Dokuflex
Updated: 22 November 2026

For HR leads, administration and management at small and mid-sized companies with employees in Spain. Based on the consolidated text of the Estatuto de los Trabajadores, Spain’s Workers’ Statute (latest update published in the BOE, the Official State Gazette, on 18 November 2026), and on Real Decreto 625/2014 (Royal Decree 625/2014) on sick notes for temporary incapacity, consulted on 22 November 2026. This is general information: your convenio colectivo (collective bargaining agreement) may improve on what is set out here, and specific cases are for your employment adviser.

Direct answer

Leave management software that connects to payroll records every approved request and sends payroll only what changes the payslip: sick leave, unpaid leave and unjustified absences. In Spain, annual leave does not alter salary, but it does affect the balance: Article 38 of the Estatuto de los Trabajadores (the Workers’ Statute) sets a minimum of 30 calendar days a year.

What leave management software connected to payroll is

It is an application where employees request annual leave, paid leave and other absences, their managers approve them and the result reaches the payroll software without anyone keying it in again. The “connected” part is what separates a pretty calendar from a tool that saves work.

Without that connection, the information lives in three places that do not talk to each other:

  • The calendar, which is usually a spreadsheet coloured in by hand or each manager’s emails.
  • The supporting documents, scattered across inboxes, phone photos and a shared folder.
  • Payroll, which is run by someone else or by a gestoría and only knows what it is told at month end.

Every manual handover between those three places is a point where a piece of data gets lost. The software joins them in a single record: the request, with its approval, its supporting document and its effect on the balance and on payroll.

Which absences change payroll in Spain and which do not

Not every absence changes the payslip: annual leave and paid leave are paid as normal, whereas sick leave, unpaid leave or an unjustified absence do change it. Knowing which is which decides what has to travel to payroll each month.

AbsenceDoes it change the payslip?What payroll needs to knowWhere it is regulated
Annual leaveNo. It is paidThe outstanding balance. When the contract ends, days accrued and not taken are paid in the finiquito (final settlement)Art. 38 of the Statute
Paid leave (marriage, hospitalisation of a relative, bereavement, moving home)No. It carries the right to payThe dates and the supporting document, in case of a dispute or an inspectionArt. 37.3 of the Statute
Absence for urgent family reasonsNo, up to the equivalent of four days a yearThe hours used during the year, to know when the allowance runs outArt. 37.9 of the Statute and the collective agreement
Sick leave (incapacidad temporal, temporary incapacity)Yes. Salary is replaced by the benefit and, if the collective agreement provides for it, a top-upThe start date, the return-to-work date and the type of contingencyReal Decreto 625/2014
Parental leaveYes. It is a suspension of the contract, with no obligation to work or to pay salaryThe dates and whether it is full-time or part-timeArts. 45 and 48 bis of the Statute
Unpaid leave or excedencia (extended leave of absence)Yes. Time not worked is not paidThe exact start and end datesCollective agreement and Art. 46 of the Statute
Unjustified absenceYes. Time not worked is deductedThe days or hours, and the fact that there is no supporting documentCollective agreement

The practical conclusion: payroll does not need the whole calendar, only the month’s payroll changes (incidencias, in Spanish payroll jargon), with exact dates and type. Everything else (annual leave, paid leave) stays in the leave system as a balance and as evidence. The days each type of leave gives and how they are counted are in our guide to paid leave in Spain 2026.

What Spanish law requires you to be able to prove

The Workers’ Statute does not oblige anyone to use software, but it does set deadlines and rights that can only be proved with a reliable record. These are the rules a leave management system in Spain has to be able to evidence:

RuleWhat it saysWhat the system must keep
Minimum length (Art. 38.1)Annual leave cannot be shorter than 30 calendar days a year or be replaced by moneyEach person’s balance: what has accrued, what has been taken and what is outstanding
Dates by mutual agreement (Art. 38.2)The period is set by agreement between employer and employee, in line with what the collective agreement says on annual planningThe request, who approved or rejected it and when
Two months’ notice (Art. 38.3)Each company sets its holiday calendar and the employee must know their dates at least two months before the leave startsThe date on which the approval was communicated
Annual leave that coincides with sick leave (Art. 38.3)It is taken afterwards. For temporary incapacity due to common contingencies, provided no more than 18 months have passed since the end of the year in which it accruedThe days outstanding from previous years and their expiry date
Paid leave with notice and justification (Art. 37.3)The employee may be absent with the right to pay, subject to prior notice and justificationThe notice and the supporting document, attached to the absence
Working-time record (Art. 34.9)The company guarantees a daily working-time record and keeps it for four yearsThat the days of absence match the clock-ins

The two-month rule is the one most often broken without anyone noticing: if August holidays are approved over WhatsApp in July, there is no way to prove when they were communicated. And the 18-month rule is the one that breaks spreadsheets, because it forces you to carry balances over from one year to the next with a different expiry date for each person.

On the working-time record and what the Labour Inspectorate checks, see the guide to inspection-proof time tracking.

Sick leave in Spain: the employee no longer brings in the sick note

Since 1 April 2023, employees in Spain no longer hand their employer the paper copy of the sick note (parte de baja): the Instituto Nacional de la Seguridad Social (INSS, Spain’s National Social Security Institute) notifies the company electronically. The change was introduced by Real Decreto 1060/2022, which amended Real Decreto 625/2014.

The circuit, as set out in Article 7 of Real Decreto 625/2014, is this:

  1. The public health service or the mutua (mutual insurer) sends the data from the sick note to the INSS electronically, no later than the first business day after it is issued.
  2. The INSS notifies the company of the purely administrative identifying data, no later than the first business day after receiving them.
  3. The company sends the INSS, through Sistema RED (the Social Security’s electronic filing system), the data it is responsible for within a maximum of three business days from receiving the notification of the sick leave.

For leave management software this has two consequences. First: sick leave does not arrive by the same route as holidays, so someone in HR or at the gestoría has to record it when the INSS notice arrives, and the system must allow that without going through an employee request. Second: the three-business-day deadline runs from that notice, not from the date the sick leave began, and missing it may constitute an infringement. It is worth having the absence on the team calendar the same day, even if the reason is visible only to those who need to see it.

Three ways to connect leave management to payroll

Absences reach payroll in three ways: through a monthly report of payroll changes, through a connector to the payroll software or through an API integration. “Integrated with payroll” can mean any of the three, and they neither cost nor deliver the same.

MethodHow it worksAdvantageLimitation
Monthly report of payroll changesThe system generates a file with the period’s changes and it is sent to whoever runs payrollIt works with any gestoría and any payroll softwareSomeone has to import it or key it in; anything approved after the cut-off is left out
Connector to the payroll softwareApproved days pass to the payroll software without being re-enteredIt removes double entry and the errors that come with itIt only exists for specific products: you have to check that yours is on the list
API integrationThe two systems exchange data with rules built for your caseIt covers any system and any ruleIt is a small project, with its own maintenance

For a company that outsources payroll to a gestoría, a well-made monthly report solves almost everything: what matters is that it comes from the same place where the absences were approved and not from a parallel sheet. When payroll is run in-house, on the company’s own software, the connector is what pays for the change.

In all three cases, ask to see the exact data that travels: type of absence, person, start date, end date and whether the days are calendar or working days. If the file only says “5 days in March”, whoever runs payroll will have to ask anyway.

Ten questions for choosing leave management software

Almost every product lets you request leave from a phone and shows a calendar; the differences appear in payroll, the collective agreement and the exceptions. These ten questions bring them out in a trial or a demo:

  1. Which payroll software does it connect to and how: file, connector or API? Which plan includes it?
  2. What goes to payroll: only annual leave, or also sick leave, unpaid leave and unjustified absences?
  3. Does it distinguish between calendar days, working days and business days (naturales, laborables and hábiles), depending on what my collective agreement says?
  4. Does it calculate the balance of someone who joins mid-year, works part-time or earns extra days through seniority?
  5. Does it carry outstanding days over to the following year with their expiry date?
  6. Does it apply the public holidays of each person’s workplace?
  7. How many approval levels does it support, and what happens if the approver is on holiday?
  8. Does it warn of overlaps in the team before approval, not after?
  9. Does it store the supporting document with the absence and restrict who can see the reason?
  10. Can I export the full history if I change tools?

Questions 1, 2 and 5 are the ones that usually go without a clear answer. The ninth is about data protection: sick leave or leave for a hospitalisation reveals information that the whole team has no need to see. Which documents to keep for each person, and which not to, is covered in the digital employee file.

When a spreadsheet is enough and when it stops working

Up to about five or ten people, a well-built Excel sheet can work; beyond that, overlaps, history and reconciliation with payroll start to fail. There is no need to buy software before you need it, and a good template covers the first few years.

The signs that the sheet has reached its limit are always the same:

  • Two people on the same team have been on holiday at the same time and nobody saw it coming.
  • There is more than one version of the file and nobody knows which is the right one.
  • The gestoría has overpaid or underpaid because a change did not arrive in time.
  • An employee disputes their balance and there is no way to reconstruct what they requested and who approved it.
  • Every January someone spends an afternoon rebuilding the sheet with the public holidays and the days carried over.

If you are not there yet, download the 2027 vacation Excel template, which already includes the annual planner per employee, Spain’s national public holidays and the days carried over. If you recognise yourself in two or more of them, the change pays for itself in the first month.

How Dokuflex solves it: request, approval and payroll in a single flow

Dokuflex, the low-code BPM platform with AI, manages leave and absences as a process: each request goes through its approvals, updates the balance and the team calendar and, on the plans with integration, reaches payroll without data being re-entered. This is what the leave management software includes:

  • Requests from a phone. The employee sees their balance and the team calendar, picks the days and attaches the supporting document from the app (iOS and Android). The manager approves from a notification.
  • Chained approval with up to 10 levels, with delegation and automatic reminders if someone is slow to respond.
  • Team calendar with public holidays by comunidad autónoma (Spain’s regions), which warns of overlaps before approval.
  • Collective-agreement rules without custom development: seniority days, leave types and blocked periods are configured in the visual editor.
  • Each type of absence with its own flow: paid leave, sick leave, personal days (asuntos propios) and excedencias, with the supporting document attached and the reason visible only to those who should see it.
  • Payroll export: approved days pass to A3, Meta4, SAP SuccessFactors or Workday without data being re-entered, in the Pro and Business plans.
  • Time tracking on the same platform, so that absences and clock-ins match: working-time record.

The free plan covers up to 10 employees, does not expire and asks for no card: requests, team calendar, app and automatic balance. Payroll integration and multi-level approval are in the paid plans, detailed in pricing. The sensible route is to start free with one team and decide with data. Create your free account and send the first request.

Frequently asked questions

Which leave management software integrates with payroll?

It depends on the payroll software you use. There are three forms of integration: a monthly report of payroll changes sent to whoever runs payroll, a connector that passes approved days to the payroll software without keying them in, and an API integration. Dokuflex exports approved days to A3, Meta4, SAP SuccessFactors or Workday in the Pro and Business plans. Before choosing, ask each vendor which payroll software it connects to and in which plan.

Does annual leave affect payroll in Spain?

It does not change the month’s salary, because annual leave is paid under Article 38 of the Estatuto de los Trabajadores (Spain’s Workers’ Statute). It does affect the balance of days and, when the contract ends, the finiquito (final settlement), where days accrued and not taken are paid. What does change the payslip is sick leave, unpaid leave and unjustified absences.

How many days of annual leave are employees entitled to by law in Spain?

Article 38.1 of the Workers’ Statute states that annual leave cannot be shorter than 30 calendar days. The convenio colectivo (collective bargaining agreement) or the contract can improve on it or express it in working days. Annual leave cannot be replaced by financial compensation while the contract is still in force.

How far in advance must holiday dates be communicated in Spain?

Article 38.3 of the Workers’ Statute says the employee must know their dates at least two months before the leave starts. That is why the approval should be recorded with its date: it is the only way to prove it was communicated in time.

Do employees in Spain have to hand their sick note to the employer?

No. Since 1 April 2023, under Real Decreto 1060/2022, the employee no longer hands the employer the paper copy of the sick note. The Instituto Nacional de la Seguridad Social (INSS, Spain’s National Social Security Institute) notifies the company of the sick leave electronically, and the company has a maximum of three business days from that notification to send its data through Sistema RED.

What happens to annual leave if an employee is on sick leave?

It is not lost. Under Article 38.3 of the Workers’ Statute, if annual leave coincides with temporary incapacity, it can be taken once the sick leave ends. For temporary incapacity due to common contingencies there is a limit: no more than 18 months may have passed since the end of the year in which the leave accrued.

Is a spreadsheet or software better for tracking leave?

Up to about five or ten people, a well-built Excel sheet can work. Beyond that, overlaps, history and reconciliation with payroll start to fail. The signs that it is time to switch are two people on the same team away at once without it being planned, several versions of the file and payslips corrected because a change did not arrive in time.

Sources

Consolidated texts from the BOE (Spain’s Official State Gazette), consulted on 22 November 2026.

  • Estatuto de los Trabajadores (Spain’s Workers’ Statute, Real Decreto Legislativo 2/2015): Articles 34.9 (working-time record), 37.3 and 37.9 (paid leave), 38 (annual leave), 45 and 48 bis (parental leave). Latest update published on 18 November 2026.
  • Real Decreto 625/2014 of 18 July on the management and control of temporary incapacity: Article 7, processing of sick notes and the three-business-day deadline through Sistema RED.
  • Real Decreto 1060/2022 of 27 December (BOE of 5 January 2023): it removes the handover to the employee of the paper copy of the sick note intended for the employer, in force since 1 April 2023.
Next step

Let “this month’s payroll changes” send themselves

Create a free account, upload your holiday sheet and ask your team to request their next days off from their phones. Free for up to 10 employees, no card. If you would rather stay with the sheet for one more year, take the 2027 template with you.