This commit is contained in:
mkm 2023-11-16 16:09:22 +08:00
parent 7f2f1057df
commit 15f0927d41

View File

@ -2359,7 +2359,8 @@ class ProductRepository extends BaseRepository
}
}
if ($orderProduct->is_imported == 0) {
$attrValue->update(['stock' => $attrValue->stock + $stockIn]);
$attrValue->stock=$attrValue->stock + $stockIn;
$product->stock = $stockIn + $product->stock;
$data = [
'order_id' => $params['order_id'] ?? 0,