Premium support for our pure JavaScript UI components


Post 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.


Post 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.

All the best,
Alex


Post Reply