|
@@ -857,8 +857,7 @@ class Purch extends Base
|
|
|
|
|
|
if (empty($data)) return error_show(1004, "未找到该采购单数据");
|
|
|
if ($data['status'] != 0) return error_show(1005, '该状态下不允许修改实时金价');
|
|
|
- $sale_price = round($data['demo_fee'] / $data['good_num'] + $data['open_fee'] / $data['good_num'] +
|
|
|
- $data['weight'] * $param["gold_price"] + $data['teach_fee'] * $data['weight'] +
|
|
|
+ $sale_price = round($data['demo_fee'] / $data['good_num'] + $data['open_fee'] / $data['good_num'] +$data['weight'] * $param["gold_price"] + $data['teach_fee'] * $data['weight'] +
|
|
|
$data['pakge_fee'] + $data['mark_fee'] + $data['cert_fee'] +$data['nake_fee'] + $data['delivery_fee'],2);
|
|
|
$total_price = round($data['good_num']*$sale_price,2);
|
|
|
|