Change qty on product resource

This commit is contained in:
Shohrat 2023-09-14 13:58:30 +05:00
parent cbb8275d26
commit f4a8189240
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' => $product->qty,
'qty2' => $product->inventorySources->qty,
'qty2' => $product->totalQuantity(),
'status' => $this->status,
'product_number' => $this->product_number,
// 'brand' => $product->brand->name ?? '',