Implement Review Suggestion

<UserStory>EMP008: Update Salary Details</UserStory>

    <Changes>
  - Refactored salary update and employee selection:
  • Removed unnecessary const qualifiers from double parameters
  • Renamed variables
  • Replaced count() with find() for map lookups
  • Excluded ADMIN employees from salary updates and selection lists
  • Applied util::enforceAuthorization for access control
- Improved readability and consistency:
  • Enhanced tabular output using setw() with left alignment
    Implement Update Salary
    </Changes>

    <Review>
    Smitha Mohan
    </Review>
This commit is contained in:
Jissin Sam Mathew
2026-04-07 20:19:27 +05:30
committed by Joel Thomas
parent 63627075ef
commit 0290467528
7 changed files with 47 additions and 35 deletions
@@ -9,5 +9,5 @@ private:
DataStore& m_dataStore;
public:
PayslipManagementService() : m_dataStore(DataStore::getInstance()) {};
void updateSalary(const std::string&, const double, const double, const double, const double, const double);
void updateSalary(const std::string&, double, double, double, double, double);
};