Hi,
My root task has PercentDone = 75.12 % in database, but it is = 79 % when load on bryntum. please help me explain about this and how to fix it?
Thanks.
Hi,
I got an issue very strange. Please take a look at the picture. all children tasks are the same but calculation to parent is difference.
Note:
Parent percentDone = children_completed_duration / children_duration.
Where children_duration is sum of children duration field values.
And children_completed_duration is sum of children (percentDone * duration / 100).
Based on your formula that you give me. I have:
- children_duration = SUM(Duration) = (16 + 1 + 161.5) = 178.5
- children_completed_duration = SUM((PercentDone * Duration) / 100) = (100 * 16 / 100) + (100 * 1 / 100) + (80.72 * 161.5 / 100) = 16 + 1 + 130.3628 = 147.3628
=> PercentDone = children_completed_duration / children_duration = 147.3628 / 178.5 * 100 = 82.56 %
I also attach test_data.json file. please help me check this.
Thanks
I don't know. Try debugging and see what happens? Check the tasks duration not in the column but in debugger (it could round the values).
I'm not following what you're try to achieve by comparing something that you calculate on the server w/ client side calculation..
If you want the value to be calculated on server - do it. Then client side calculation can be turned off https://www.bryntum.com/products/gantt/docs/api/Gantt/model/ProjectModel#field-autoCalculatePercentDoneForParentTasks