|
|
|
|
267
|
console.log('bookieEarned' , row.bookieEarned)
|
267
|
console.log('bookieEarned' , row.bookieEarned)
|
268
|
row.bookieServiceFees = _.sumBy(bookie.true, (item) => { return item.serviceFees});
|
268
|
row.bookieServiceFees = _.sumBy(bookie.true, (item) => { return item.serviceFees});
|
269
|
}
|
269
|
}
|
270
|
- row.totalServiceFees = Number(new Decimal(row.bookieServiceFees).plus(row.memberServiceFees).plus(row.bookieWagerFee).valueOf())
|
|
|
|
|
270
|
+ row.totalServiceFees = Number(new Decimal(row.bookieServiceFees).plus(row.memberServiceFees).plus(row.bookieWagerFee).times(row.feeRatio).valueOf())
|
271
|
let chipsLog = _.groupBy(member.GambleMemberChipsLogs, 'type')
|
271
|
let chipsLog = _.groupBy(member.GambleMemberChipsLogs, 'type')
|
272
|
// console.log('type', chipsLog)
|
272
|
// console.log('type', chipsLog)
|
273
|
if (chipsLog['0'] || chipsLog['2']) {
|
273
|
if (chipsLog['0'] || chipsLog['2']) {
|