Leave Approval Rules
The Leave Approval Rules section defines conditional approval routing and auto-approval thresholds for leave requests.
Rules are evaluated by priority (higher first) and can include condition logic and approver chains.
Leave Approval Rules Index Page
The index page lists all approval rules by leave type and branch.

Available Filters
| Filter | Description |
|---|---|
| Branch | Filters rules by branch (visible when user is not branch-assigned). |
| Leave Type | Filters by leave type. |
| From | Start date for created-at filtering. |
| To | End date for created-at filtering. |
Notes:
- This table has no search box.
Available Actions
- Create: Opens rule creation page.
- Edit: Updates an existing rule.
- Delete: Deletes one rule after confirmation.
- Bulk Delete: Deletes selected rules after confirmation.
Create Leave Approval Rule Page
Use this page to define auto-approval thresholds, conditional matching rules, and approver chain.

Leave Approval Rule Information
| Field | What it does |
|---|---|
| Branch | Rule scope branch (shown on create for non branch-assigned users). |
| Leave Type | Leave type this rule applies to. |
| Max Days Auto-Approve | Auto-approves day-based requests up to this threshold (shown for Day/Both units). |
| Max Minutes Auto-Approve | Auto-approves hour-based requests up to this threshold (shown for Hour/Both units). |
| Priority | Rule order priority; higher priority is evaluated first. |
| Requires Attachment | Forces attachments for matching requests even if leave type does not require one. |
| Active | Enables/disables rule participation in workflow resolution. |
Conditions & Approvers
Match Mode
- All conditions: all condition rows must pass.
- Any condition: at least one condition row must pass.
Condition Builder
Available condition fields:
- Employee
- Department
- Designation
- Effective Days (day-capable leave types)
- Effective Minutes (hour-capable leave types)
- Tenure (Months)
Available operators:
EqualsNot EqualsInNot InGreater Than Or EqualLess Than Or EqualGreater ThanLess Than
Behavior:
In/Not Inaccept multiple values.- Numeric fields (
effective_days,effective_minutes,tenure_months) require numeric values. - Invalid field/unit combinations are blocked:
effective_dayscannot be used when leave type unit isHour.effective_minutescannot be used when leave type unit isDay.
Approver Chain
Approver types:
- Direct Manager
- Role
- Specific User
How it works:
- Approvers are processed in the order listed in the form.
- Each approver row creates one approval level.
- If manager is selected but no manager is resolvable, system falls back to available admin roles by priority.
Edit Leave Approval Rule Page
Use this page to update conditions, approvers, thresholds, or status.

The edit page uses the same structure and rules as create.
Validation Rules
- Leave Type: required.
- Max Days Auto-Approve: optional numeric
0..999999. - Max Minutes Auto-Approve: optional integer
0..999999. - Priority: required integer
1..1000. - Requires Attachment: required boolean.
- Active: required boolean.
- Condition values are required when field/operator is defined.
- Role/User approver entries require valid values.
