Here is the example (https://jsfiddle.net/savoine/pvt259ns/17/) where I need to do a total / subtotal break, but the subtotal is calculated correctly, but the total does not update correctly.
I'll check it out and get back to you.
ps. The rows are misaligned. I would change rowHeights: 17, to rowHeights: 25,
It updates the total value by ignoring the last change of values
I've asked our developer to examine the example. I should get it to later than tomorrow.
This is a working example - https://jsfiddle.net/253wrb18/
And the developers feedback
I needed a slightly improved example from a client. Total summary firstly counts and always has 0 + 0. And next count subtotals. So I gather all ranges without this two for subtotals sum.