Selaa lähdekoodia

fix bookieEarned

ethan 6 vuotta sitten
vanhempi
commit
f52e3bc303
1 muutettua tiedostoa jossa 5 lisäystä ja 1 poistoa
  1. 5 1
      src/views/agnetManagement/gambleMemberManagement/index.vue

+ 5 - 1
src/views/agnetManagement/gambleMemberManagement/index.vue

@@ -234,13 +234,17 @@ export default {
234 234
             row.memberEarned = _.sumBy(bookie.false, item => {
235 235
               return Math.abs(item.earned)
236 236
             });
237
+            console.log('membeEarned', row.memberEarned)
237 238
             row.memberServiceFees = _.sumBy(bookie.false, 'serviceFees')*this.data.secondLayer.feeRatio/100;
238 239
           }
239 240
           if (bookie.true) {
240 241
             row.bookieWagerFee = _.sumBy(bookie.true, (item) => {
241 242
               return item.wagerServiceFees
242 243
             }) * this.data.secondLayer.feeRatio/100;
243
-            row.bookieEarned = _.sumBy(bookie.true, 'earned');
244
+            row.bookieEarned = _.sumBy(bookie.true, item => {
245
+              return Math.abs(item.earned)
246
+            });
247
+            console.log('bookieEarned' , row.bookieEarned)
244 248
             row.bookieServiceFees = _.sumBy(bookie.true, (item) => { return item.serviceFees})*this.data.secondLayer.feeRatio/100;
245 249
           }
246 250
           row.totalServiceFees = Number(new Decimal(row.bookieServiceFees).plus(row.memberServiceFees).plus(row.bookieWagerFee).valueOf())