Hi Team,
Below is my calendar configuration where Sunday is non working day. But when i click on showCritical path action it considering Sunday as working day as well.So if Sunday comes in between tasks, critical path is not showing because of Sunday gap.
calendar : 9999,
// we use an 8hrs calendar for the project
// then duration unit values should match the calendar:
hoursPerDay : 24, // 1 day === 8 hrs
daysPerWeek : 6, // 1 week === 6 days
// calendars data
calendarsData : [
{
id : 9999,
name : 'My calendar',
intervals : [
{
recurrentStartDate : "on Sat at 0:00",
recurrentEndDate : "on Sun at 0:00",
isWorking : false
}
]
}
]
Please find the attached image below.
Screenshot 2021-09-23 at 11.54.55 AM.png (1.31 MiB) Viewed 493 times
If you see rectangle block all dependent task should get highlighted but it shows only last one. Please have a look.
In our system we have decided to keep both start and end dates included in the duration and the subsequent item starts at previous items end date + 1 (In screenshot, 3.2.2 ends on 30th Sep and 3.2.3 starts on 1st Oct), which seems like a gap on the gantt. How do we still show it as part of the critical path with this use case?
Check ConstrainedLateEventMixin class code. There we have totalSlack calculation done in calculateTotalSlack method. So you need to override that method. But as I said you will have to override calculation of the other fields too.
In our system we have decided to keep both start and end dates included in the duration
Have you tried simply using 8hrs/day calendar?
You can try that on the advanced demo (even online here). Just execute this code in your browser console and then try editing tasks: