feat: #100000 更新库存编码修改
This commit is contained in:
parent
f826eb12ed
commit
cde2baf7ce
@ -18,14 +18,13 @@ class Goods
|
|||||||
|
|
||||||
public static function incrQuantity($shopId, $quantity, $businessGoods)
|
public static function incrQuantity($shopId, $quantity, $businessGoods)
|
||||||
{
|
{
|
||||||
[$goodsCode, $skuCode] = explode('_', $businessGoods['external_sku_id']);
|
|
||||||
return [
|
return [
|
||||||
'data' => [
|
'data' => [
|
||||||
'stock' => $quantity,
|
'stock' => $quantity,
|
||||||
'business_sku_id' => $businessGoods['sku_id'],
|
'business_sku_id' => $businessGoods['sku_id'],
|
||||||
'business_goods_id' => $businessGoods['goods_id'],
|
'business_goods_id' => $businessGoods['goods_id'],
|
||||||
'erp_shop_id' => $shopId,
|
'erp_shop_id' => $shopId,
|
||||||
'erp_sku_id' => $skuCode,
|
'erp_sku_id' => $businessGoods['external_sku_id'],
|
||||||
],
|
],
|
||||||
'type' => '更新库存',
|
'type' => '更新库存',
|
||||||
];
|
];
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user