47b44ccaa0
<SRS> SRS02 : Employee Management </SRS> <Changes> - Added Payroll getHeaders, serialize and deserialize functions - Stored payrolls in DataStore - Loaded and saved payrolls along with employees - Linked payroll to employees during creation and load - Added employeeId to Payroll - Renamed TAG role to TALENT_ACQUISITION across the project - Added missing TalentExecutive case in Employee deserialization - Added constructor to TalentExecutive for FileManager integration - Renamed ID counters to m_uid for consistency - Updated salary values in ApplicationConfig </Changes> <Review> Smitha Mohan </Review>
23 lines
313 B
C++
23 lines
313 B
C++
#include "Payslip.h"
|
|
|
|
int Payslip::m_uid = 0;
|
|
|
|
const std::string& Payslip::getPayslipId() const
|
|
{
|
|
return m_id;
|
|
}
|
|
|
|
double Payslip::getSalary() const
|
|
{
|
|
return m_salary;
|
|
}
|
|
|
|
void Payslip::setPayslipId(const std::string& id)
|
|
{
|
|
m_id = id;
|
|
}
|
|
|
|
void Payslip::setSalary(double salary)
|
|
{
|
|
m_salary = salary;
|
|
} |