1. Shift Rotation & Single Weekly Off System
β’ Continuous Shift Pattern: Follows the continuous 7-day cyclical sequence `E β E β M β M β N β N β O` (2 Evening, 2 Morning, 2 Night, 1 Off).
β’ Weekly Off Synchronization: When an employee's OFF DAY (e.g. Tuesday) is set in Master Data, their 7-day shift cycle aligns directly so that they strictly receive exactly 1 Off per week.
2. Smart Role Balancing & Coverage Guarantee
Every shift requires 3 core operational roles (Role 1: BSVI SRU PIC, Role 2: OLD SRU PIC, Role 3: SIC):
- Priority 1 (SIC Allotment): Dedicated SIC staff (Role 3: `M3, E3, N3`) are assigned first.
- Priority 2 (Single-Role PIC): Dedicated single-role PICs (e.g. Role `2` only) receive their designated station.
- Priority 3 (Dual-Role Sequence): Multi-role employees follow the sequence `E1 β E2 β M1 β M2 β N1 β N2` (1st day: `1`, 2nd day: `2`). If a single-role `2` is present, the dual-role employee automatically shifts to `1` to eliminate station gaps.
3. Leave Conflict Policy
β’ Standard Working Days: The first 3 applicants on any date remain valid. When overlapping leave applications exceed 2 consecutive days with 4 or more staff on leave simultaneously, the 4th applicant onward is flagged with: `β οΈ 4th+ Staff Overlap Caution`.
β’ Special Holiday Rule: If a leave period covers a scheduled Holiday / Festival, stricter staffing limits apply and conflict caution is triggered starting from the 3rd applicant onward (**`β οΈ 3rd+ Staff Holiday Overlap Caution`**).
4. Multi-Year Festival & Holiday Leave Tracking
β’ The system tracks festival and holiday leaves across All Recorded Years (e.g. Diwali in 2024, 2025, 2026).
β’ Historical records are linked to permanent Finalized Rota Snapshots.
5. Multi-User Access & PIN Security
β’ Admin (Default PIN: 1234): Full administrative access to edit Master Data, configure Rota rules, approve leaves, and reset staff PINs.
β’ Employees (Default PIN: 0000): Individual access to apply for leave, manage their own leave requests, and view rosters.