Change qty on product resource

This commit is contained in:
Shohrat 2023-09-14 14:04:49 +05:00
parent c932c4f5e3
commit 54e55fdace
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ class Product extends JsonResource
'new' => $this->new,
'featured' => $this->featured,
'qty' => $this->qty,
'qty2' => $product->totalQuantity(),
'inventory' => $product->inventory_sources(),
'status' => $this->status,
'product_number' => $this->product_number,
// 'brand' => $product->brand->name ?? '',