...
|
...
|
@@ -76,7 +76,6 @@ class Order extends Model |
|
|
if ($goods['type'] == 3) $goods['type'] = '1';
|
|
|
//根据仓库进行拆单
|
|
|
$data[] = $goodsModel->getDepot($goods['goods_id'], $areaId, $goods['number'], $goods['type']);
|
|
|
if (!$data[$key]) return ['code' => -1, 'msg' => $goods['ch_goods_name'] . ' 库存不足'];
|
|
|
}
|
|
|
//获取以仓库分好的商品
|
|
|
$goodsDepotList = setArr($data);
|
...
|
...
|
@@ -234,7 +233,6 @@ class Order extends Model |
|
|
if ($goods['type'] == 3) $goods['type'] = '1';
|
|
|
//根据仓库进行拆单
|
|
|
$data[] = $goodsModel->getDepot($goods['goods_id'], $areaId, $goods['number'], $goods['type']);
|
|
|
if (!$data[$key]) return ['code' => -1, 'msg' => $goods['ch_goods_name'] . ' 库存不足'];
|
|
|
}
|
|
|
//获取以仓库分好的商品
|
|
|
$goodsDepotList = setArr($data);
|
...
|
...
|
|