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