You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
RMS allows users to add employees with the same name. However, clockIn and clockOut only accepts a name parameter. It is thus unclear which employee is being clocked in or out.
To Reproduce
Steps to reproduce the behavior:
Add two employees to the system with the same name (but different parameters, such as phone number).
Execute the clockIn command.
Expected behavior
It is not clear what is supposed to happen in this case. Do all the employees with the same name clock in? Or does the first instance of the employee clock in?
Screenshots
Running listemp with 4 employees with the same name added.
Describe the bug
RMS allows users to add employees with the same name. However,
clockIn
andclockOut
only accepts a name parameter. It is thus unclear which employee is being clocked in or out.To Reproduce
Steps to reproduce the behavior:
clockIn
command.Expected behavior
It is not clear what is supposed to happen in this case. Do all the employees with the same name clock in? Or does the first instance of the employee clock in?
Screenshots
Running
listemp
with 4 employees with the same name added.Running
clockIn John Doe
:Reported by: @nianfei97
Severity:
High
[original: nusCS2113-AY1819S1/pe-1#372]
The text was updated successfully, but these errors were encountered: