From be4611d8632b3a074fff4f2a22906b4e1d36775c Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Thu, 18 Jun 2026 16:14:17 +0530 Subject: [PATCH] Added logic is in production characteristics page --- app/Filament/Resources/ProductionCharacteristicResource.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Filament/Resources/ProductionCharacteristicResource.php b/app/Filament/Resources/ProductionCharacteristicResource.php index 38abd32..b8a708e 100644 --- a/app/Filament/Resources/ProductionCharacteristicResource.php +++ b/app/Filament/Resources/ProductionCharacteristicResource.php @@ -253,7 +253,7 @@ 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)->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('id', $record->product_characteristics_master_id)->first(); // return $record?->plant_id.'-'.$record?->item_id.'-'.$record->line_id.'-'.$record?->machine_id; return $specVal?->lower.' - '.$specVal?->upper; @@ -276,7 +276,7 @@ class ProductionCharacteristicResource extends Resource 'Not Ok' => 'danger', 'NotOk' => 'danger', 'ConditionallyAccepted' => 'success', - default => 'gray', + default => 'black', }) ->alignCenter() ->sortable(),