Each 30-day vacation period is divided into two distinct types of days. The type is determined automatically by the number of days in the requested range — you do not choose it manually.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.
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
| Property | Flexible | Block |
|---|---|---|
tipo value | "flexible" | "bloque" |
| Minimum days | 1 | 7 |
| Maximum days | 7 | No limit (within balance) |
| Days per period | 7 | 23 |
| Counter field | diasFlexiblesUsados | diasBloqueUsados |
| Typical use | Long weekends, single days | Main annual vacation |
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:
| Date range | Days | Type | Notes |
|---|---|---|---|
| 3–4 March 2026 | 2 | Flexible | Long weekend |
| 7–21 July 2026 | 14 | Block | Main summer vacation |
| 14–23 September 2026 | 9 | Block | Second block |
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.
