When the template is pushed, it will expire any current
assignment that overlaps with the assignments being pushed. For
example suppose you have two assignment templates, Template A and
Template B with corresponding shifts, Shift A and Shift B. Overlapping
template per person logic as follows:
Scenario 1 of 2:
- A - FROM: 1/1/2010, THROUGH: 12/31/2020
- B - FROM 1/1/2017, THROUGH: null
Result:
- A - FROM: 1/1/2010, THROUGH: 12/31/2016
- B - FROM 1/1/2017, THROUGH: null
Scenario 2 of 2:
- A - FROM: 1/1/2015, THROUGH: 12/31/2020
- B - FROM 1/1/2010, THROUGH: null
Result:
- A - deleted
- B - FROM 1/1/2010, THROUGH: null
In scenario one, A is expired because it is not completely overlapped.
In scenario 2, A is removed because it is completely overlapped.
Additionally, when assigning more than one assignment template
to the same person with dates causing an assignment in the previous
template to end, the application will automatically expire the entire
template holding the old assignment. In other words, if creating
Template B expires template A's assignments, then template A's corresponding
assignment template will expire as well. For example:
- Template
A starts 4/1/2020 which will push a start date of 4/1/2020 to the
assignment in Template A for Person X
- Template B is then added with a 5/1/2020 start date for Person
X. The old assignment in Template A is end dated with 4/30/2020. Template
A assigned to Person X is now also end dated with 4/30/20201.