Sanjel-Energy-Services / eService_WorkItems

0 stars 0 forks source link

Crew Mgmt - Employee Schedule - modify days off #97

Open JasonSchneider19 opened 12 months ago

JasonSchneider19 commented 12 months ago

When i have a worker scheduled for days off, and they would like to (or are willing to) work their days off, i cannot change them to available in the employee schedule. Trying to modify the 28th from Off shift to available i get the following: image

Would like the same functionality to the Off shift days as the available days where i have the following selections available: image

We often have people work their days off and would like the schedule to reflect these details

arcurve-cheryl-chan commented 11 months ago

@JasonSchneider19 This seems to be a duplicate of DigitalResourceBoard #1093 - is this how you want to proceed (it was deferred in that work item to Future Phases)?

JasonSchneider19 commented 11 months ago

@arcurve-cheryl-chan Yes this appears to be a duplicate. We are in a future phase so we may as well do it

cameliabalan commented 9 months ago

@JasonSchneider19 would like to clarify if we want to allow to switch to only Available, or include all not available options as well? That is, when an employee is Off Shift do we want to show only

Image

or do we want Available and all the other ones as well:

Image

JasonSchneider19 commented 9 months ago

@cameliabalan The first one is all that is required - only need Available Implement the easiest one

JeffFlowerday commented 8 months ago

@JasonSchneider19 do we need to know that they are Off Shift but available. Or is it OK to just change the status of that day to available?

Are these schedule records used elsewhere in the system or are they informational only? Just wondering if deleting the Off Shift entry is ok, because that's what makes them available. No record in the database at all.

FYI @cameliabalan

JasonSchneider19 commented 8 months ago

@JeffFlowerday @awangatsanjel So we are starting to use the data in BI for reporting purposes, so if we have an offshift and change him to available, it should be ok to delete the offshift. What would happen if they wanted to put them to offshift again?

JeffFlowerday commented 8 months ago

@JasonSchneider19

I assume you only want to mark particular days in the off-shift as available? This is not easy to implement as the off-shift event is a single record in the database with a start and end date.

If we could just mark the entire off-shift event as (available if needed), this would be a much simpler solution. It could be implemented by adding a flag to the schedule record to store this special status. I assume this was what Sai was thinking with a flag.

As for your question with regards to deleting the off-shift record and how we would mark off-shift again: Something would have to be implemented as it's currently only done via the shift group edit process.

JasonSchneider19 commented 8 months ago

@JeffFlowerday @awangatsanjel Adam, need your thoughts on this. All we really want to do is change the off shift to available so that they can be assigned without warnings. Some people like to work their days off occasionally and need to track it. Priority is really day by day.

awangatsanjel commented 8 months ago

@JasonSchneider19 @JeffFlowerday

Please let me know if it makes sense.

JeffFlowerday commented 8 months ago

@awangatsanjel @JasonSchneider19

So Adam is there anything that needs to be done on your end to handle these new On Duty and Off Duty operation types in the WorkSchedule table?

I assume that only Off Shift has the ability to toggle to "On Duty" and Available(On Shift) has the ability to toggle to "Off Duty"? Of course actions to reverse these would need to be implemented.

Right now I see the following defined in the code, even though 1,2,3 are the only operation_type values in the table, the rest must be derived from other data:

public enum WorkerScheduleType
{
    [Display(Name = "Not Applicable")]
    NotApplicable = 0,
    Planned = 1,
    Assigned = 2,

    [Display(Name = "Day Off")]
    DayOff = 3,
    [Display(Name = "On Shift")]
    OnShift = 4,
    [Display(Name = "Off Shift")]
    OffShift = 5,
    Training = 6,
    Vacation = 7
}
cameliabalan commented 8 months ago

Tested the behavior in Test environment #219 and it behaves as described, employees who appear Off Shift can be set to On Duty and back to Off Shift. Also, a message has been added when scheduling crew that includes an employee who appears On Duty to indicate that.