Change qty on product resource

This commit is contained in:
Shohrat 2023-09-14 13:57:01 +05:00
parent cfa9b68553
commit cbb8275d26
1 changed files with 1 additions and 0 deletions

View File

@ -56,6 +56,7 @@ class Product extends JsonResource
'new' => $this->new, 'new' => $this->new,
'featured' => $this->featured, 'featured' => $this->featured,
'qty' => $product->qty, 'qty' => $product->qty,
'qty2' => $product->inventorySources->qty,
'status' => $this->status, 'status' => $this->status,
'product_number' => $this->product_number, 'product_number' => $this->product_number,
// 'brand' => $product->brand->name ?? '', // 'brand' => $product->brand->name ?? '',