|
@@ -262,7 +262,7 @@ export default {
|
262
|
262
|
allDown: _.sumBy(this.combine, 'totalDown'),
|
263
|
263
|
allChips: _.sumBy(this.combine, 'chips'),
|
264
|
264
|
allEarned: _.sumBy(this.combine, (item) => {return item.bookieEarned + item.memberEarned}),
|
265
|
|
- allServiceFees: _.sumBy(this.combine, (item) => {return item.totalServiceFees }),
|
|
265
|
+ allServiceFees: _.sumBy(this.combine, (item) => {return item.totalServiceFees }).toFixed(2),
|
266
|
266
|
})
|
267
|
267
|
this.listLoading = false
|
268
|
268
|
})
|
|
@@ -333,11 +333,11 @@ export default {
|
333
|
333
|
sums[index] = values.reduce((prev, curr) => {
|
334
|
334
|
const value = Number(curr);
|
335
|
335
|
if (!isNaN(value)) {
|
336
|
|
- return prev + curr;
|
|
336
|
+ return new Decimal(prev).plus(curr);
|
337
|
337
|
} else {
|
338
|
|
- return prev;
|
|
338
|
+ return new Decimal(prev);
|
339
|
339
|
}
|
340
|
|
- }, 0);
|
|
340
|
+ }, 0).valueOf();
|
341
|
341
|
sums[index];
|
342
|
342
|
} else {
|
343
|
343
|
sums[index] = 'N/A';
|