Holiday Master Documentation
Navigation Path
Company → Masters → Holiday Master
1. Holiday List Page
URL
/masters/holiday-master
Page Description
- Displays a list of all holidays configured in the system
- Allows administrators to manage unit-wise and national holidays
- Provides options to add, edit, and delete holiday records
List Table Columns
| Column Name | Description |
|---|---|
| S No | Serial number |
| Year | Holiday year |
| Holiday Name | Name of the holiday |
| Unit | Associated unit |
| Date | Holiday date |
| National Holiday | Indicates if it is a national holiday |
| Actions | Edit and Delete options |
Row Actions
| Action | Description |
|---|---|
| Edit | Opens Edit Holiday page |
| Delete | Opens delete confirmation alert |
2. Add Holiday
Triggered From
Holiday List Page → Add Holiday button
Page Description
- Allows admins to add a new holiday
- Supports unit-specific and national holidays
Add Holiday – Fields
| Field Name | Type | Mandatory | Description |
|---|---|---|---|
| Year | Dropdown | Yes | Select holiday year |
| Holiday Name | Text Input | Yes | Enter holiday name |
| Unit | Select / Create | No | Select or create a unit |
| Date | Date Picker | Yes | Select holiday date |
| Is National Holiday | Checkbox | No | Mark as national holiday |
Actions
| Action | Behavior |
|---|---|
| Save | Validates and saves the holiday |
| Reset | Clears all entered values |
| Cancel | Returns to Holiday List page |
Validation Rules
- Year must be selected
- Holiday Name cannot be empty
- Date is mandatory
- Duplicate holidays for the same date and unit may not be allowed
3. Edit Holiday
Triggered From
Holiday List Page → Edit icon
URL
/masters/holiday-master/edit-holiday-master/:id
Page Description
- Allows updating existing holiday details
- All fields are pre-filled with saved data
Editable Fields
| Field Name | Editable |
|---|---|
| Year | Yes |
| Holiday Name | Yes |
| Unit | Yes |
| Date | Yes |
| Is National Holiday | Yes |
Actions
| Action | Behavior |
|---|---|
| Update | Saves updated holiday details |
| Cancel | Discards changes and navigates back |
4. Delete Holiday Confirmation Alert
Triggered From
Holiday List Page → Delete icon
Alert Content
- Confirmation message before deletion
Actions:
- Confirm / Yes → Deletes the holiday
- Cancel → Closes the alert without action
Delete Behavior
- Holiday is permanently removed after confirmation
- Deletion may be restricted if the holiday is mapped to other records
End of Documentation