Update Update Designation functionality

<UserStory> EMP005 : Update Designation </UserStory>

<Changes>
 - Enabled HR Manager menu option to update employee designation
</Changes>

<Review>
  Smitha Mohan
</Review>
This commit is contained in:
Tinu Johnson
2026-04-14 17:03:33 +05:30
committed by Joel Thomas
parent 5398f5a0ee
commit 55f94f4d45
@@ -13,7 +13,7 @@ void HRManagerMenu::run()
{ {
int choice; int choice;
util::clear(); util::clear();
std::cout << "HR Manager Menu\n1. Apply Leave\n2. View Payslip\n3. View Payslip History\n4. View Employees\n5. Search Employee\n6. View Notification\n7. View Announcements\n8. Create Employee\n9. Regularize Attendance\n10. Update Leave Request\n11. Register CandidateAsEmployee\n12. Update Profile\n13. Deactivate Employee\n14. View Profile\n15. Logout\nEnter your Choice: "; std::cout << "HR Manager Menu\n1. Apply Leave\n2. View Payslip\n3. View Payslip History\n4. View Employees\n5. Search Employee\n6. View Notification\n7. View Announcements\n8. Create Employee\n9. Regularize Attendance\n10. Update Leave Request\n11. Register CandidateAsEmployee\n12. Update Profile\n13. Deactivate Employee\n14. View Profile\n15. Update Designation\n16. Logout\nEnter your Choice: ";
util::read(choice); util::read(choice);
if (!handleOperation(choice)) if (!handleOperation(choice))
{ {
@@ -51,6 +51,9 @@ bool HRManagerMenu::handleOperation(int choice)
viewProfile(m_zenvyController); viewProfile(m_zenvyController);
break; break;
case 15: case 15:
updateDesignation(m_zenvyController);
break;
case 16:
return false; return false;
default: default:
std::cout << "Enter a valid choice!" << std::endl; std::cout << "Enter a valid choice!" << std::endl;