Overview
- Flexible days
- Block days
Flexible days are designed for short breaks throughout the year. An employee can use up to 7 flexible days per period, spread across one or more ranges.
- Minimum range length: 1 day
- Maximum range length: 7 consecutive days
- Total available per period: 7 days
- Stored on the schedule as
diasFlexiblesDisponibles: 7
How the type is assigned
The system inspects the number of days in a submitted range and assigns the type automatically:RegistroVacaciones.tsx (esFlexible flag at line 248) and is enforced again in validarRangoVacaciones in vacationUtils.ts.
Comparison table
Validation rules
The system prevents invalid requests with these checks:- You cannot start a range on a Saturday or Sunday.
- If your flexible balance is 0, ranges of 7 days or fewer are blocked with an error.
- If a requested range exceeds the remaining balance for its type, the request is rejected.
- Ranges cannot overlap with already-scheduled ranges in the same period.
The Friday rule
When you select a Friday as the start date or end date of a range, the system automatically extends the end date to the following Sunday. The extra two days (Saturday and Sunday) are included in thediasSolicitados count, and the range is flagged with incluye_finde: true.
This behaviour is enforced in two places:
calcularDiasConFinDeSemanainvacationUtils.ts— setsincluye_finde: truewhen either boundary is a Friday.RegistroVacaciones.tsx— watches the date inputs and automatically updatesfechaFinto the Sunday when a Friday is selected, showing a toast notification.
Example
An employee takes the following ranges during their"2025-2026" period:
Totals used: 2 flexible + 23 block = 25 days
Remaining: 5 flexible + 0 block = 5 days
Once block days are exhausted, any remaining flexible days can still be used in ranges of up to 7 days. However, once flexible days are exhausted, all remaining days must be taken in blocks of at least 7 consecutive days.
