refactor(admin): 修改商品采购价为会员价
- 将商品采购价计算逻辑修改为直接使用会员价 - 注释掉原有的通过 StoreProductGroupPrice 模型计算采购价的代码 - 此修改可能影响订单总价计算和后台利润显示
This commit is contained in:
parent
227bde742d
commit
c12ef1cd29
@ -901,7 +901,7 @@ class BeforehandOrderLogic extends BaseLogic
|
||||
$v['unit_name'] = StoreProductUnit::where('id', $find['unit'])->value('name');
|
||||
$v['store_name'] = $find['store_name'];
|
||||
$v['mark'] = $find['after_sales'];
|
||||
$v['purchase'] = StoreProductGroupPrice::where('product_id', $v['product_id'])->where('group_id', $user_ship)->value('price');
|
||||
$v['purchase'] = $v['vip_price'];//StoreProductGroupPrice::where('product_id', $v['product_id'])->where('group_id', $user_ship)->value('price');
|
||||
if ($v['purchase']) {
|
||||
$v['pay_price'] = bcmul($v['purchase'], $v['nums'], 2);
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user