From 7755d15741cb0b183a38f9f5f9c40a3a8f954e19 Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Wed, 13 May 2026 17:12:25 +0530 Subject: [PATCH] Updated filter logic --- app/Filament/Resources/ProductionCharacteristicResource.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/Filament/Resources/ProductionCharacteristicResource.php b/app/Filament/Resources/ProductionCharacteristicResource.php index 9740e09..38abd32 100644 --- a/app/Filament/Resources/ProductionCharacteristicResource.php +++ b/app/Filament/Resources/ProductionCharacteristicResource.php @@ -339,8 +339,9 @@ class ProductionCharacteristicResource extends Resource // return ($userHas && strlen($userHas) > 0) ? Plant::where('id', $userHas)->pluck('name', 'id')->toArray() : Plant::orderBy('code')->pluck('name', 'id')->toArray(); }) ->afterStateUpdated(function ($state, callable $set, callable $get) { - $set('Item', null); $set('Line', null); + $set('Item', null); + $set('Machine', null); }), Select::make('Line') ->label('Search by Line Name') @@ -361,7 +362,7 @@ class ProductionCharacteristicResource extends Resource })->pluck('name', 'id'); }) ->afterStateUpdated(function ($state, callable $set, callable $get) { - $set('process_order', null); + $set('Machine', null); }), Select::make('Item') ->label('Search by Item Code')