diff --git a/app/common/repositories/store/product/ProductRepository.php b/app/common/repositories/store/product/ProductRepository.php index 4052098c..92f0be31 100644 --- a/app/common/repositories/store/product/ProductRepository.php +++ b/app/common/repositories/store/product/ProductRepository.php @@ -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,