a1dert/lh-tickets-test — Issue #477: Irrelevant value displayed on the employee page under the username
Author: a1dert
Created: 2011-11-30 12:21:47+00:00
State: open

Imported from lighthouse. Original ticket at: http://redtape.lighthouseapp.com/projects/59696/tickets/79. Created by Adina Moldovan - 2010-11-18T16:55:17Z

Steps to reproduce:
1.Log into the app as any user
2.Go to Holidays tab and post a holiday request
3.Log in as administrator and go to Approvals tab and reject the user's holiday request.
4.Log in with the user and post another request.
5.Log in as admin and go to employees tab

Expected results:
Under each username there are two values. The second one represents the number of remaining available holidays that the user still has and the first one should represent: the total number of pending holidays or the maximum number of holidays that the user has, or the accepted holidays.

Actual results:
The second number represents the total number of requested holidays, no matter if they have been rejected or approved. So the user will end up with a value higher than the total number of available holidays(if the manager rejects some of them). This is irrelevant for a manager.He needs to know the total number of pending requests, not the total number of any request ever made.