Files
Training-Team2-Zenvy-Jan26/Trenser.Zenvy/Trenser.Zenvy/models/Payslip.cpp
T
joelthomastrenser 47b44ccaa0 Added payroll persistance and updated Talent Acquisition role
<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>
2026-04-11 12:13:23 +05:30

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;
}