mirror of
https://gitee.com/hzchunfen/erp.git
synced 2025-12-01 06:30:49 +00:00
fix: #10000 库存同步全量更新
This commit is contained in:
parent
f6eda150b6
commit
06e07e5007
@ -54,10 +54,7 @@ class UpdateBusinessGoodsStock implements ShouldQueue
|
||||
}
|
||||
|
||||
foreach ($shops as $shop) {
|
||||
$num = $event->num;
|
||||
if ('妙选' === $shop->plat_id) {
|
||||
$num = $event->goodsSku->stock;
|
||||
}
|
||||
$businessGoodsSkus = BusinessGoodsSku::query()->where('shop_id', $shop->id)->where('external_sku_id', $event->businessOrderItem['external_sku_id'])->get();
|
||||
foreach ($businessGoodsSkus as $businessGoodsSku) {
|
||||
BusinessGoodsSkuIncrQuantity::dispatch($shop, $businessGoodsSku->toArray(), $num, false);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user