Open tauhidul35 opened 5 years ago
There have a condition in approve action @leave.start_date < Date.today. But admin or TTF can approve the application after start date.
@leave.start_date < Date.today
https://github.com/nascenia/timetracker/blob/6d1743a885ba37b58364c9bf53cb9b2c77ee4013/app/controllers/leaves_controller.rb#L97
Most of the time we apply for leave and get rejected by Admin. For example I have applied for medical leave yesterday and get rejected by Admin. http://timetracker.nascenia.com/leaves/2686
There have a condition in approve action
@leave.start_date < Date.today
. But admin or TTF can approve the application after start date.https://github.com/nascenia/timetracker/blob/6d1743a885ba37b58364c9bf53cb9b2c77ee4013/app/controllers/leaves_controller.rb#L97