Modify Attendance
Screen to update muster roll status based on different roles
Screen to update muster roll status based on different roles
All content on this page by eGov Foundation is licensed under a Creative Commons Attribution 4.0 International License.
Objective: To view and modify the attendance days and perform various actions like verify, reject and approve based on roles.
Users can navigate to this screen by clicking on the muster roll id on the inbox page.
Initially, the muster has 'Submitted' status. Junior Engineer can view, Edit, Verify and Reject the Attendance.
Verify: Clicking on the ‘Verify’ action button verifies the existing muster and the user is redirected to the success page
Edit: Clicking on the ‘Edit’ action button displays the extra details in the table. The working days can be edited. Based on that ‘Modified Amount’ is updated dynamically.
As soon as the user updates anything ‘Action’ button changes to the ‘Save’ button. On click of Save, muster is verified with updated details and the user is redirected to the success page.
Reject: Clicking on the ‘Reject’ action displays a popup where the user can provide any comments and reject the muster.
On 'Confirm Reject', muster will be rejected and the user will be redirected to the success page.
The municipal Engineer can view, Approve, and Reject the attendance which is verified by Junior Engineer
Approve: Clicking on the ‘Approve action displays a popup where the user can provide any comments and approve the muster.
On 'Approve Attendance', the muster will be approved and the user will be redirected to the success page.
The municipal Engineer can also reject the attendance verified by Jr Engineer by clicking on the 'Reject' action.
Modify attendance technical implementation where all actions are handled can be found in the below file.
Hooks used
To update muster (modify, verify, reject, approve, resubmit), ‘useUpdateAttendance’ is used which updated muster roll details.
APIs used
Endpoint:
Sample curl for Update muster API:
Wage seeker skills data is fetched from MDMS using 'getMultipleTypesWithFilter' service.
Localisation keys are added under the ‘rainmaker-attendencemgmt’ locale module. In future, if any new labels are implemented in the attendance module they should also be pushed in the locale DB under rainmaker-attendencemgmt locale module. Below is an example of a few locale labels for Hindi and English.
The content on this screen is rendered based on the configuration passed on ApplicationDetails template component. Its implementation can be found in the below file.
/muster-roll/v1/_update
JUNIOR_ENGINEER
Reject
Send for Approval
Modify/Verify Muster Roll
/muster-roll/v1/_update
MUNICIPAL_ENGINEER
Approve
Reject