|
@@ -20,9 +20,10 @@ class OrderDetailService extends CrudService {
|
|
|
if (_.get(data, 'type', '0') === '1') priceKey = 'ggrp';
|
|
|
else priceKey = 'grp';
|
|
|
let detail = this.moneyDetail(data);
|
|
|
+ const at = _.get(detail, 'at', 0);
|
|
|
+ delete detail.at;
|
|
|
detail = Object.values(detail);
|
|
|
let realPay = detail.reduce((p, n) => this.ctx.plus(p, _.get(n, priceKey, 0)), 0);
|
|
|
- const at = _.get(detail, 'at', 0);
|
|
|
realPay = this.ctx.minus(realPay, at);
|
|
|
return realPay;
|
|
|
}
|