The job of this console
Stand up the engine so employees can apply. Publish policies, attach calendars, assign balances, run a proof request. Test lab and legal calendars are siblings, not replacements.
Administrator guide: enable leave, publish policies, map holidays and working weeks, assign employee balances and jurisdictions, then prove apply → approve end to end.
Scroll to Flowcharts for animated step-by-step diagrams. Runtime leave UI: Leave Management.
Policy center
Leave configuration is the administrator path: enable leave, publish policies, map holidays and working weeks, assign employee balances and jurisdictions, then prove a sample request. Runtime apply stays on Leave management.
/admin/leave/global-policy-center
Org flag leaveManagementEnabled
HR Admin · Org Admin
Stand up the engine so employees can apply. Publish policies, attach calendars, assign balances, run a proof request. Test lab and legal calendars are siblings, not replacements.
HR administrators. Employees never publish policy. Managers do not edit global rules from My Approvals.
Open Global Policy Center, create or edit a policy, map holidays and working week, assign people, prove with a test application, then tell the org it is live.
First leave go-live. A new jurisdiction. Balance import. After a failed proof request. When classic Types & policies is hidden because Global is on.
End-to-end configure → dry-run balances → schedulers → apply/approve, plus a Data Flow & Technical Debug tab — single HTML for HR and support.
Trace GLP publish, balance ledger, accrual schedulers, and working-day resolver chain used before employees apply leave.
Each diagram auto-plays steps when it scrolls into view. Use Play / Pause, or click a step. Matching nodes highlight as the narration advances.
Admin setup first, then everyday apply/approve. Share this view with HR before go-live.
flowchart TD
A[Enable flags] --> B[Publish policy]
B --> C[Holidays and working days]
C --> D[Balances / jurisdiction]
D --> E[Employee applies]
E --> F[Manager approves]
F --> G[Attendance and timesheet]
Ordered go-live checklist as a flowchart — complete each step before the next.
flowchart TD
F1[1. App Config flags] --> F2[2. Create jurisdiction]
F2 --> F3[3. Template to draft policy]
F3 --> F4[4. Simulate / Policy Test Lab]
F4 --> F5[5. Publish version]
F5 --> F6[6. People holidays + calendar key]
F6 --> F7[7. Working-day rules]
F7 --> F8[8. Opening balances or accrual]
F8 --> F9[9. Prove apply and approve]
How a policy version becomes live for accrual and eligibility.
flowchart TD
J[Jurisdiction] --> T[Template]
T --> D[Draft version]
D --> S[Simulate]
S --> P[Publish]
P --> R[Accrual and eligibility]
Highest match wins: employee override, then jurisdiction/country, then team, then schedule/shift/Mon–Fri.
flowchart TD
L[Leave create or submit] --> R[LeaveWorkingDayResolver]
R --> O{Employee WDR override?}
O -->|Yes| P[Resolved workdays]
O -->|No| J{Employee jurisdiction?}
J -->|Yes| JW[Jurisdiction / country WDR]
JW --> P
J -->|No| TW[Team-default WDR]
TW -->|Hit| P
TW -->|Miss| FB[Work schedule / shift / Mon-Fri]
FB --> P
Two paths: scheduled accrual from a published policy, or HR manual adjust/import.
flowchart TD
AP[Published policy] --> AJ[Accrual job]
AJ --> BL1[Balance ledger credit]
HR[HR adjust / import] --> BL2[Balance ledger]
BL1 --> UI[Visible on Leave Management]
BL2 --> UI
What happens once configuration is done — apply through approve.
flowchart TD
A[Apply] --> V[Overlap + working days]
V --> S[Submit / reserve]
S --> D{Approve or Reject?}
D -->|Approve| B[Debit balance]
B --> P[Promote TaskActivity]
P --> T[Attendance sync if flagged]
D -->|Reject| Rel[Release pending + comment]
Leave has two halves: configure once (this page) and use every day (Leave Management). Complete the configuration layers below before asking employees to apply.
| Screen | Route | When to use |
|---|---|---|
| Leave Policies User Guide | leave-policies-guide.html | Start here for policy detail — supported types, India packs, configure steps, scenarios (tabs). |
| Global Policy Center | /admin/leave/global-policy-center | Jurisdictions, templates, publish versions, resolve/simulate, holiday calendar assignment, OT/comp-off, compliance. |
| Leave policies (classic) | /admin/leave-policies | Leave type catalog and fallback entitlements when Global Leave is off. |
| Employee leave config | /admin/employee-leave-config | Balance cards, Download OB template, Adjust balance, dry-run bulk import cutover. |
| Legal calendars | /admin/leave/legal-calendars | Draft/publish official holiday versions that sync into People → Holidays. |
| Working days | /admin/leave/working-day-rules | Team-default or jurisdiction working weeks; employee jurisdiction assign; employee working-day override; resolve preview. |
| Policy test lab | /admin/leave/policy-test-lab | Scenario runs and publish gates before promoting a policy version. Guide: Policy Test Lab. |
| Absence cases | /admin/leave/absence-cases | Extended absence + return-to-work. Guide: Absence Cases. |
| Agreements | /admin/leave/agreements | Contract overrides. Guide: Leave Agreements. |
| Integrations | /admin/leave/integrations | Connectors, runs, errors. Guide: Leave Integrations. |
| Documents | /admin/leave/document-rules | Evidence rules, review, retention. Guide: Leave Documents. |
| Anomaly & fairness | /admin/leave/anomaly-rules | Detection and fairness analytics. Guide: Leave Anomaly. |
| Workforce planning | /admin/leave/bidding | Bidding, roster, coverage. Guide: Workforce Planning. |
| Localization | /admin/leave/localization | Locale packs for leave UI. Guide: Leave Localization. |
| Shift policies | /admin/shift-policies | Org work-week calendars. Guide: Shift Policies. |
| People → Holidays | /people/holidays | Canonical holiday ledger with location keys. Guide: Holidays. |
| Delegation | /admin/delegation | Leave approval coverage when the primary approver is away. |
| Application Config | /admin/application-config | Org leave flags and role leave modules. |
org.json → HRMS)leaveAdditional.leaveManagementEnabled — master switch for native leave.leaveAdditional.globalLeavePoliciesEnabled — Global Policy Center runtime.leaveAdditional.leaveEnhancementsEnabled — enhancements (overlap, coverage, analytics).leaveAdditional.leaveBlockNonWorkingDayLeave — reject leave ranges with no working days.leaveAdditional.leaveAutoSyncToAttendance — approved leave → attendance LEAVE / HALF_DAY.approvalDelegation.approvalDelegationEnabled — leave in delegation scopes.role.json)hrmsModules.leavesEnabled, attendanceEnabled, timesheetEnabled, holidaysEnabledadminModules.leavePoliciesEnabled, globalLeavePoliciesEnabled, delegationEnabledleaves.*, leavePolicies.*, holidays.*Primary console: Admin → Leave admin → Global Policy Center. See flowchart 3 above.
IN, IN-KA) per jurisdiction.Source of truth: People → Holidays, filtered by active holiday calendar assignments.
["IN-KA"]).Weekly offs are not hard-coded to Saturday/Sunday. Configure under /admin/leave/working-day-rules. See flowchart 4 above.
Canonical admin page: Admin → Employee leave config (/admin/employee-leave-config). This is the only UI surface for opening-balance cutover and per-employee adjustments. Accrual / carry-forward / comp-off expire jobs credit from the published Global Leave policy after go-live. See flowchart 5 above.
leaveManagementEnabled and leave admin role access; select the team in the header filter so employees load.entitlementAmount and amount are blank — fill from ZingHR / HR export only (do not invent balances).POST /api/v2/admin/data-import/leave-balance?userTeamId={team}&actorId={you}&dryRun=true (body may also include "dryRun": true). Fix reportCsv failures, then re-POST with dryRun=false.numberOfDays.| Use case | What admin does | Outcome |
|---|---|---|
| First go-live | Flags → jurisdiction → publish → holidays → Mon–Fri rule → OB template dry-run → live import | Employees can apply |
| ZingHR cutover | Download OB template → fill → dry-run → live import on Employee leave config | Balances match HR source of truth |
| One-off correction | Select employee → Adjust balance (+ reason; confirmer if ≥5 days) | Ledger updated; audit when enabled |
| Add UAE | AE jurisdiction → Sun–Thu rule → assign employees | Fri–Sat off for those employees |
| Six-day week | Mon–Sat working-day rule | Saturday counts as leave |
| One employee exception | Employee working-day override | Overrides country/team |