|
@@ -344,7 +344,7 @@ class GoodsService extends BaseService
|
|
|
$item['bd_score'] = $bdScore;
|
|
$item['bd_score'] = $bdScore;
|
|
|
$item['cost_price'] = $costPrice;
|
|
$item['cost_price'] = $costPrice;
|
|
|
$item['total'] = $price;
|
|
$item['total'] = $price;
|
|
|
- $profitTotal = round(max(0,$price-$costPrice),2);
|
|
|
|
|
|
|
+ $profitTotal = round(max(0,($price-$costPrice) * $num),2);
|
|
|
$item['profit_total'] = $profitTotal;
|
|
$item['profit_total'] = $profitTotal;
|
|
|
$item['num'] = $num;
|
|
$item['num'] = $num;
|
|
|
$total = round($price * $num,2);
|
|
$total = round($price * $num,2);
|