Salary Managing

TOOLSFINANCIALUTILITY

Exposed Methods

addEmployee adds an employee to the company

parameter nametypedetails
_namestringstores name of the new employee
_positionstringemployee's position in the company
_salaryuintemployee's salary
_addraddressemployee's etherum address
isemployedboolstatus of employee, if he is still in the company or not

promotion promotes an employee, changing his position and salary

parameter nametypedetails
_namestringstores name of the new employee
_positionstringemployee's position in the company
bonusuintthe added bonus to the salary

fireEmployee change the employed status of an employee

parameter nametypedetails
_namestringstores name of the new employee

paySalary change the employed status of an employee

parameter nametypedetails
_namestringstores name of the new employee

modifySalary modify only the salary

parameter nametypedetails
_namestringstores name of the new employee
valueuintthe new value of the salary

getEmployeeInfo retrieves the information of an employee

parameter nametypedetails
_namestringstores name of the new employee

Events

EmployeeAdded listens when an employee has been added

Promoted listens when an employee has been promoted

EmployeeFired listens when an employee has been fired

Modify listens when an employeee's salary has been modified

Payday listens when an employee has been been paid

Buy
Reviewed by Modex
Buy Contract Test Contract

Create an account or login to purchase this smart contract