Skip to content

Commit 0e25b07

Browse files
last row does not affect total values bug fix
1 parent 2637032 commit 0e25b07

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/js/DataController.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ DataController.prototype.TOTAL_FUNCTIONS = {
223223
sum += parseFloat(array[i][column]["value"]) || 0;
224224
}
225225
}
226-
return sum || "";
226+
return sum;
227227
},
228228

229229
totalAVG: function (array, iStart, iEnd, column) {
@@ -488,7 +488,7 @@ DataController.prototype.resetRawData = function () {
488488
summary[i] = {
489489
value: getTotalFunction(parseInt(i) - data.info.leftHeaderColumnsNumber).call(
490490
this.TOTAL_FUNCTIONS,
491-
rawData, xh, rawData.length - 1, i, data.info.leftHeaderColumnsNumber
491+
rawData, xh, rawData.length, i, data.info.leftHeaderColumnsNumber
492492
),
493493
style: "font-weight: bold;text-align: right;"
494494
}

0 commit comments

Comments
 (0)