fix: remove cost_price from select statements in BottlesTable, PerfumesTable, and ProductsTable

This commit is contained in:
Yoga Pangestu 2026-01-09 20:25:22 +07:00
parent 95a252dab7
commit 156eca433c
3 changed files with 2 additions and 3 deletions

View File

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

View File

@ -114,7 +114,6 @@ public function builder(): Builder
'sku',
'perfumes.name',
'concentration',
'cost_price',
'sale_price'
)
->with([

View File

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