Implement Review Fixes

This commit is contained in:
Princy Jerin
2026-04-16 12:07:47 +05:30
committed by Joel Thomas
parent b9b83ad429
commit 47ca953eac
7 changed files with 12 additions and 38 deletions
@@ -318,9 +318,7 @@ inline void viewPayslip(std::shared_ptr<ZenvyController> controller)
auto payslip = result.second;
if (payroll && payslip)
{
std::cout << "\nPayslip for " << employee->getEmployeeName()
<< " (" << year << "-" << std::setw(2) << std::setfill('0') << month << ")\n\n";
std::cout << "\nPayslip for " << employee->getEmployeeName() << " (" << year << "-" << std::setw(2) << std::setfill('0') << month << ")\n\n";
std::cout << "Basic Salary : " << payroll->getBasicSalary() << "\n";
std::cout << "House Rent Allowance : " << payroll->getHouseRentAllowance() << "\n";
std::cout << "Food Allowance : " << payroll->getFoodAllowance() << "\n";
@@ -335,4 +333,4 @@ inline void viewPayslip(std::shared_ptr<ZenvyController> controller)
std::cout << "Payslip not available for " << year << "-" << month << ".\n";
}
util::pressEnter();
}
}