Questions and discussion about using ProcessMaker: user interface, running cases & functionality

Moderator: ArturoRobles

By avi123
#795706
Hi,
I am facing a problem. In my process, I used a grid and applied SUM function on 2nd column.
See below image.
11111111.png
11111111.png (4.01 KiB) Viewed 1195 times
I want that total 1.00. how to solve this problem?

Thanks & Regards
User avatar
By amosbatto
#795709
Edit the file workflow/public_html/lib/pmdynaform/build/js/PMDynaform.js,

Change lines 8106 - 8111 from:
Code: Select all
                        if (operation) {
                            $(td).addClass("total");
                            icon = iconTotal[operation] ? iconTotal[operation] : iconTotal["other"];
                            label.innerHTML = icon + ": ";
                            result.value = title;
To:
Code: Select all
                        if (operation) {
                            $(td).addClass("total");
                            icon = iconTotal[operation] ? iconTotal[operation] : iconTotal["other"];
                            label.innerHTML = icon + ": ";
                            //Edit: Round to a fixed number of decimal digits
                            var decDigits = 2; //set the number of decimal digits
                            var rounder = Math.pow(10, decDigits);
                            title = (Math.round(title * rounder) / rounder).toFixed(decDigits);
                            //end edit
                            result.value = title;

Hello guys! I want to build a process which each […]

The students, who feel helpless in the face of aca[…]

If I create a report table in an existing process […]