lrf пре 2 година
родитељ
комит
9b5f68fe8f
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      app/service/user/cashBack.js

+ 1 - 1
app/service/user/cashBack.js

@@ -84,7 +84,7 @@ class CashBackService extends CrudService {
       else if (type === 'percent') {
         const specId = _.get(gs, '_id');
         const realPay = _.get(moneyDetail, `${specId}.${priceKey}`);
-        const grm = this.ctx.multiply(realPay, this.ctx.divide(money, 10));
+        const grm = this.ctx.multiply(realPay, this.ctx.divide(money, 100));
         rmoney = this.ctx.plus(rmoney, grm);
       }
     }