Content
View differences
Updated by Tobias Dillmann 12 months ago
### Steps to reproduce
1. Have 2 phases (A, B) with dates set
2. Clear phase A finish date
3. Clear phase B start date
4. On phase A, set the finish date to an
1. **earlier date** than phase B's finish date.
2. **later date** than phase B's finish date.
5. Open the Phase B edit dialog. It will display the default start date and the finish date, but the start date field is not yet set, so it will not appear as completely set.
6. Clicking save on phase B without any modifications will either:
1. set the range correctly. (If 4.a is chosen)
2. display an error message on the disabled start date. (If 4.b is chosen)
### What is the buggy behavior?
* In case **4.a** the range appears to be complete on **phase B**, however the start date is not yet stored and we display the default start date only.
* In case **4.b** the same issue as 4.a on **phase B**, plus it will display a validation error message on the start date being later than the finish date.
### What is the expected behavior?
1. In case **4.a:**
1. Set the start date of B to the next working day after the finish date of A.
2. The duration is updated accordingly (finish date - start date of B).
3. The values are stored in the database.
2. In case **4.b:**
1. Set the start date of B to the next working day after the finish date of A
2. Set the finish date of B to the next working day after the finish date of A.
3. The duration is set to 1.
4. The values are stored in the database.
3. In case 4.a/4.b are done not with the finish date on A but with the start date only, the behaviour should be just the same. Meaning if only the start date of phase A is set and not the finish date, it will have an affect on the dates of B.
The behaviour should by that be identical to how scheduling happens for work packages.
<br>
### Screenshots and other files
1. **Setting earlier dates on Phase A than Phase B finish date.**
<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/649692/content">
2. **Setting latter dates on Phase A than Phase B finish date.**
<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/649694/content">
###
1. Have 2 phases (A, B) with dates set
2. Clear phase A finish date
3. Clear phase B start date
4. On phase A, set the finish date to an
1. **earlier date** than phase B's finish date.
2. **later date** than phase B's finish date.
5. Open the Phase B edit dialog. It will display the default start date and the finish date, but the start date field is not yet set, so it will not appear as completely set.
6. Clicking save on phase B without any modifications will either:
1. set the range correctly. (If 4.a is chosen)
2. display an error message on the disabled start date. (If 4.b is chosen)
### What is the buggy behavior?
* In case **4.a** the range appears to be complete on **phase B**, however the start date is not yet stored and we display the default start date only.
* In case **4.b** the same issue as 4.a on **phase B**, plus it will display a validation error message on the start date being later than the finish date.
### What is the expected behavior?
1. In case **4.a:**
1. Set the start date of B to the next working day after the finish date of A.
2. The duration is updated accordingly (finish date - start date of B).
3. The values are stored in the database.
2. In case **4.b:**
1. Set the start date of B to the next working day after the finish date of A
2. Set the finish date of B to the next working day after the finish date of A.
3. The duration is set to 1.
4. The values are stored in the database.
3. In case 4.a/4.b are done not with the finish date on A but with the start date only, the behaviour should be just the same. Meaning if only the start date of phase A is set and not the finish date, it will have an affect on the dates of B.
The behaviour should
<br>
### Screenshots and other files
1. **Setting earlier dates on Phase A than Phase B finish date.**
<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/649692/content">
2. **Setting latter dates on Phase A than Phase B finish date.**
<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/649694/content">
###