Merge pull request 'fix(admin): 修复仓库产品入库价格为零的问题' (#345) from dev into main
Reviewed-on: #345
This commit is contained in:
commit
d93efd49d2
@ -62,7 +62,11 @@ class WarehouseProductLogic extends BaseLogic
|
||||
if (!$storeProduct) {
|
||||
throw new BusinessException('商品不存在');
|
||||
}
|
||||
$total_price = bcmul($after_nums, $storeProduct['purchase'], 2);
|
||||
if($storeProduct['purchase']<=0){
|
||||
$total_price=0;
|
||||
}else{
|
||||
$total_price = bcmul($after_nums, $storeProduct['purchase'], 2);
|
||||
}
|
||||
$data = [
|
||||
'warehouse_id' => $params['warehouse_id'],
|
||||
'product_id' => $params['product_id'],
|
||||
|
Loading…
x
Reference in New Issue
Block a user