Skip to content
This repository has been archived by the owner on Apr 3, 2020. It is now read-only.

Need to review the night time run calculations. #57

Open
9 tasks
pavulon18 opened this issue May 2, 2018 · 1 comment
Open
9 tasks

Need to review the night time run calculations. #57

pavulon18 opened this issue May 2, 2018 · 1 comment
Assignees
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@pavulon18
Copy link
Owner

pavulon18 commented May 2, 2018

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

Specifications

  • Version:
  • Platform:
  • Subsystem:

Need to account for the following situations:

  • Night run starts prior to 2300 and ends sometime before 0700 the next morning
  • Night run starts prior to 2300 and ends after 0700 and before 0800
  • Night run starts prior to 2300 and ends after 0800
  • Night run starts after 2300 and ends before 0700
  • Night run starts after 2300 and ends after 0700 and before 0800
  • Night run starts after 2300 and ends after 0800
  • Night run starts between 0700 and 0800 (right before end of shift). *1
  • Add ALS / BLS / Non-standard something for credit for the report
  • Held over past the end of the shift for some reason other than the above *1

*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
Copy link
Owner Author

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.

@pavulon18 pavulon18 self-assigned this May 5, 2018
@pavulon18 pavulon18 added bug Something isn't working help wanted Extra attention is needed labels May 5, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant