|
|
|
|
243
|
row.bookieEarned = _.sumBy(bookie.true, 'earned');
|
243
|
row.bookieEarned = _.sumBy(bookie.true, 'earned');
|
244
|
row.bookieServiceFees = _.sumBy(bookie.true, (item) => { return item.serviceFees})*this.data.secondLayer.feeRatio/100;
|
244
|
row.bookieServiceFees = _.sumBy(bookie.true, (item) => { return item.serviceFees})*this.data.secondLayer.feeRatio/100;
|
245
|
}
|
245
|
}
|
246
|
- row.totalServiceFees = new Decimal(row.bookieServiceFees).plus(row.memberServiceFees).valueOf()
|
|
|
247
|
-
|
|
|
|
|
246
|
+ row.totalServiceFees = new Decimal(row.bookieServiceFees).plus(row.memberServiceFees).puls(row.bookieWagerFee).valueOf()
|
248
|
let chipsLog = _.groupBy(member.GambleMemberChipsLogs, 'type')
|
247
|
let chipsLog = _.groupBy(member.GambleMemberChipsLogs, 'type')
|
249
|
// console.log('type', chipsLog)
|
248
|
// console.log('type', chipsLog)
|
250
|
if (chipsLog['0'] || chipsLog['2']) {
|
249
|
if (chipsLog['0'] || chipsLog['2']) {
|