Delete Attendance Flag
This feature allows an HR user to delete an attendance flag that is no longer needed, with a safeguard in place that prevents deleting any flag actively linked to a shift, ensuring existing attendance settings are not disrupted.
Before You Begin
- Make sure the “Employee Attendance” setting is enabled under “Human Resources Management” settings; otherwise, the user will not be able to access this screen.
- Make sure you have the “Manage Attendance Settings” permission under the “Employees” sectio
Steps to Delete an Attendance Flag
- From the side menu, click “Attendance”, then go to “Settings”.
- On the “Attendance Settings” screen, click “Attendance Flags”.
- In the row of the attendance flag you want to delete, go to the actions menu and click “Delete”.
- Click Yes on the following confirmation message: “Are you sure you want to delete this Attendance Flag?”, or click No to cancel the deletion of the selected flag.
- Once the deletion is successful, a message will appear at the top of the page: “Attendance Flags Deleted Successfully”.
- You will be automatically redirected to the attendance flags list, which will appear updated without the deleted flag.
How the System Works
- Before performing any deletion, the system first checks whether the attendance flag is linked to a specific shift.
- If the flag is not linked to any shift, the system displays the confirmation message, and clicking Yes deletes the flag immediately.
- If the flag is linked to at least one shift, the system blocks the deletion entirely and displays the error message “You cannot delete this flag name as it is assigned” instead of the confirmation message.
- Upon successful deletion:
- The system redirects the user to the attendance flags list screen.
- A success message confirming the deletion of the selected flag appears at the top of the page.
- The attendance flags list updates to reflect the current flags without the deleted one, with no need to manually reload the page.
- The deletion process is immediate and final once confirmed.
Validation Rules
- The attendance flag to be deleted must not be linked to any shift; otherwise, the deletion will not proceed and the following error message will appear: “You cannot delete this flag name as it is assigned”.
- It is recommended to confirm the flag is not used elsewhere in the system before deleting it.