Advance vacations (adelanto de vacaciones) allow an employee to borrow days from the period they have not yet earned. This is useful when an employee has used all 30 days in their current period but still needs time off before a new period opens.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/CKoldo/Vacaciones-front/llms.txt
Use this file to discover all available pages before exploring further.
How advance days are earned
The number of advance days an employee can request is not fixed — it grows over the course of the active period. The system accrues 2.5 days per completed calendar month elapsed sincefechaInicioAnio.
calcularDiasAdelantoDisponiblesEnPeriodo in vacationUtils.ts. The sidebar in the Vacation Scheduling module shows the current accrued balance, how many advance days have already been used, and how many remain.
An employee 4 months into a period has accrued 10 advance days (4 × 2.5). An employee 12 months in has the maximum of 30.
How to request an advance
The Adelanto de Vacaciones card appears in the right-hand sidebar of the scheduling module whenever an employee is selected. It is rendered by theAdelantoVacaciones component.
Open the scheduling module
Navigate to Vacation Scheduling and select the employee from the dropdown.
Review the advance balance
The Adelanto de Vacaciones card shows three numbers: days available (accrued this period), days already used, and days remaining to borrow.
Enter the number of days
Type the number of days you want to advance in the input field. The maximum is the employee’s remaining advance balance for the current month.
What changes on the schedule
When an advance is requested, three fields on theCronogramaVacaciones record are updated immediately:
| Field | Change |
|---|---|
diasAdelanto | Increases by the number of days advanced |
diasTotales | Increases beyond the standard 30 (e.g., 30 + 5 = 35) |
diasBloqueDisponibles | Increases by the same amount, making the days available to schedule as block ranges |
esAdelanto: true to distinguish them from standard ranges.
Removing an advance range
If you delete a range that was created using advance days (esAdelanto: true), the system reverses the advance:
diasAdelantodecreases by the number of days in that range (minimum 0).diasTotalesdecreases back toward 30. IfdiasAdelantoreaches 0,diasTotalesis reset to exactly 30.- The block day balance adjusts accordingly.
handleEliminarRango in RegistroVacaciones.tsx.
Use case
An employee’s"2025-2026" period runs from 1 June 2025 to 31 May 2026. By November 2025 they have used all 30 days. They need 5 additional days off in December.
By November, the employee has been in the period for 5 months, accruing 12.5 advance days (5 × 2.5). They request a 5-day advance. The system:
- Sets
diasAdelantoto 5. - Sets
diasTotalesto 35. - Increases
diasBloqueDisponiblesby 5.
esAdelanto: true. When the "2026-2027" period opens, those 5 days will be reflected in the new period’s starting balance.