Questions and discussion about using ProcessMaker: user interface, running cases & functionality
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 4051 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;

A 1xbet clone script is a pre-designed software so[…]

4rabet clone script is enabling entrepreneurs to e[…]

Parimatch clone script is enabling entrepreneurs t[…]

In the world of cryptocurrency, a wallet is an app[…]