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:
@@ -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);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user