Employee Activation/Deactivation
Logged User can able to take Action Against Employee
Deactivate Employee
If Employee status is Active. User can Deactivate Employee by clicking on Take Action button placed in Employee Detail Screen.
On Click of Deactivate Employee Button A PopUp appears where user should provide necessary Details such as
Mandatory
Reason for Deactivation
Effective Date
Optional
Order No.
Supported Documents (File Upload)
Remarks
On Deactivation User will be navigated to Acknowledgement screen
Activation Employee
If Employee status is Inactive. User can Re activate Employee by clicking on Take Action button placed in Employee Detail Screen.
On Click of Deactivate Employee Button A PopUp appears where user should provide necessary Details such as
Mandatory
Reason for Reactivation
Effective Date
Optional
Order No.
Supported Documents (File Upload)
Remarks
On Reactivation User will be navigated to Acknowledgement screen
SL No | API | Details |
---|---|---|
1 |
| let documents = {
referenceType: "ACTIVATION",
documentId: uploadedFile,
documentName: file.name,
};
applicationData.Employees[0]["documents"].push(documents);
}
Employees[0]["reactivationDetails"].push(data);
Employees[0].isActive = true;
|
2 |
| let documents = {
referenceType: "DEACTIVATION",
documentId: uploadedFile,
documentName: file.name,
};
applicationData.Employees[0]["documents"].push(documents);
}
Employees[0]["deactivationDetails"].push(data);
Employees[0].isActive = false;
history.push("/digit-ui/employee/hrms/response", { Employees, key: "UPDATE", action: "DEACTIVATION" });
|
Primary Files
Secondary Files
https://github.com/egovernments/digit-ui-internals/blob/development/packages/modules/hrms/src/components/Modal/index.js ,https://github.com/egovernments/digit-ui-internals/blob/development/packages/modules/hrms/src/components/Modal/EmployeeActivation.js , https://github.com/egovernments/digit-ui-internals/blob/development/packages/modules/hrms/src/components/Modal/EmployeeAppliaction.js
MDMS Hook
const { isLoading, isError, errors, data, ...rest } = Digit.Hooks.hrms.useHrmsMDMS(tenantId, "egov-hrms", "DeactivationReason");