更新
This commit is contained in:
parent
15f0927d41
commit
785b5bd562
@ -2358,6 +2358,7 @@ class ProductRepository extends BaseRepository
|
||||
throw new ValidateException('商品规格导入出错');
|
||||
}
|
||||
}
|
||||
$product->stock = $stockIn + $product->stock;
|
||||
if ($orderProduct->is_imported == 0) {
|
||||
|
||||
$attrValue->stock=$attrValue->stock + $stockIn;
|
||||
@ -2377,6 +2378,8 @@ class ProductRepository extends BaseRepository
|
||||
throw new ValidateException('入库失败');
|
||||
}
|
||||
$orderProduct->save(['is_imported' => 1]);
|
||||
$attrValue->save();
|
||||
$product->save();
|
||||
Db::commit();
|
||||
return true;
|
||||
}else{
|
||||
|
Loading…
x
Reference in New Issue
Block a user