pavulon18 / gcas_timesheet_php_website

A website built in PHP for GCAS Timesheet application.
MIT License
2 stars 0 forks source link

Need to review the night time run calculations. #57

Open pavulon18 opened 6 years ago

pavulon18 commented 6 years ago

Expected Behavior

Currently, the system only checks each individual entry for time >= 3 hours. The system needs to check for the entire night

Also, two other scenarios must be considered. Both of these are end of shift situations

Start time End time
< 0700 > 0700 && < 0800
<0700 > 0800

In our service, we are back on the clock for one hour between 0700 and 0800. If we are on a run during that time, we cannot charge for that time.

Anything after 0800 (at the end of the shift) cannot count for the three hours during the night; however, this time is still classified as overtime

Actual Behavior

Steps to Reproduce the Problem

1. 1. 1.

Specifications

Need to account for the following situations:

1 -- This is technically not a night run so therefore cannot contribute to the night time hours, but this is still paid as overtime. 2 -- The author of the run report gets credited with the time taken to write the report. The standard is ALS = 1 Hr and BLS = (is it 30 or 45 minutes. I'll have to check). There could be non-standard times, also. The report time will contribute to the night time hours as long as it falls between 2300 and 0700

pavulon18 commented 6 years ago

On "night runs", some users enter the actual start time of the run, which could be before 2300 hrs. The calculations must account for this and remove the part prior to 2300.