fix: remove cost_price from select statements in BottlesTable, PerfumesTable, and ProductsTable
This commit is contained in:
parent
95a252dab7
commit
156eca433c
@ -106,7 +106,7 @@ class='flex items-center space-x-2 bg-gray-50 border border-gray-200 rounded-lg
|
||||
|
||||
public function builder(): Builder
|
||||
{
|
||||
return Bottle::select('id', 'name', 'size', 'cost_price', 'sale_price')
|
||||
return Bottle::select('id', 'name', 'size', 'sale_price')
|
||||
->with('outlets')
|
||||
->whereHas(
|
||||
'outlets',
|
||||
|
||||
@ -114,7 +114,6 @@ public function builder(): Builder
|
||||
'sku',
|
||||
'perfumes.name',
|
||||
'concentration',
|
||||
'cost_price',
|
||||
'sale_price'
|
||||
)
|
||||
->with([
|
||||
|
||||
@ -98,7 +98,7 @@ class='flex items-center space-x-2 bg-gray-50 border border-gray-200 rounded-lg
|
||||
|
||||
public function builder(): Builder
|
||||
{
|
||||
return Product::select('products.id', 'sku', 'products.name', 'cost_price', 'sale_price')
|
||||
return Product::select('products.id', 'sku', 'products.name', 'sale_price')
|
||||
->with('outlets')
|
||||
->whereHas(
|
||||
'outlets',
|
||||
|
||||
Loading…
Reference in New Issue
Block a user