Change qty on product resource

This commit is contained in:
Shohrat 2023-09-14 13:49:32 +05:00
parent 6ad51930bb
commit 01f1aafad3
1 changed files with 2 additions and 1 deletions

View File

@ -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 ?? '',