diff --git a/app/Filament/Resources/ProductionCharacteristicResource.php b/app/Filament/Resources/ProductionCharacteristicResource.php index b8a708e..b8b46fe 100644 --- a/app/Filament/Resources/ProductionCharacteristicResource.php +++ b/app/Filament/Resources/ProductionCharacteristicResource.php @@ -253,9 +253,9 @@ class ProductionCharacteristicResource extends Resource ->label('Spec. Value') // ->searchable() ->formatStateUsing(function ($record) { - $specVal = ProductCharacteristicsMaster::where('plant_id', $record->plant_id)->where('item_id', $record->item_id)->where('line_id', $record->line_id)->where('machine_id', $record->machine_id)->where('id', $record->product_characteristics_master_id)->first(); - + $specVal = ProductCharacteristicsMaster::where('plant_id', $record->plant_id)->where('item_id', $record->item_id)->where('line_id', $record->line_id)->where('machine_id', $record->machine_id)->where('name', $record->characteristic_name)->first(); // return $record?->plant_id.'-'.$record?->item_id.'-'.$record->line_id.'-'.$record?->machine_id; + return $specVal?->lower.' - '.$specVal?->upper; }) ->alignCenter()