Page 1 of 1

Gantt Percentdone calculation

Posted: Mon Mar 27, 2023 10:11 am
by shaveta

Hi

In some cases (depending on data) PercentDone attribute for parent nodes gets miscalculated.
It is most visible when all child nodes are 100% done but parent gets 99.9999999%.

also try to use

* calculatePercentDone() {
        // for leaf tasks use "percentDone" field value as-is
        const defaultValue = yield * super.calculatePercentDone();
        debugger
        if (this.percentDone > 99.99) {
            return Math.round(this.percentDone);
        }
        return this.percentDone
        // return Math.round(result);
    }

but this not helping as its giving 0 for top parent project row.


Re: Gantt Percentdone calculation

Posted: Mon Mar 27, 2023 11:42 am
by alex.l

Hi shaveta,

Please do not duplicate topics. I've answered in another one here viewtopic.php?p=120779#p120779

I will close this one.