Change qty on product resource
This commit is contained in:
parent
cbb8275d26
commit
f4a8189240
|
|
@ -56,7 +56,7 @@ class Product extends JsonResource
|
|||
'new' => $this->new,
|
||||
'featured' => $this->featured,
|
||||
'qty' => $product->qty,
|
||||
'qty2' => $product->inventorySources->qty,
|
||||
'qty2' => $product->totalQuantity(),
|
||||
'status' => $this->status,
|
||||
'product_number' => $this->product_number,
|
||||
// 'brand' => $product->brand->name ?? '',
|
||||
|
|
|
|||
Loading…
Reference in New Issue