diff --git a/packages/Sarga/API/Http/Resources/Catalog/Product.php b/packages/Sarga/API/Http/Resources/Catalog/Product.php index e679e5b..e3c9a9b 100644 --- a/packages/Sarga/API/Http/Resources/Catalog/Product.php +++ b/packages/Sarga/API/Http/Resources/Catalog/Product.php @@ -55,7 +55,8 @@ class Product extends JsonResource 'logo' => $this->logo ? Storage::url($this->logo) : null, 'new' => $this->new, 'featured' => $this->featured, - 'qty' => $this->qty, + 'qty' => $product->qty, + 'qty2' => $product->inventory_sources->qty, 'status' => $this->status, 'product_number' => $this->product_number, // 'brand' => $product->brand->name ?? '',