removed some filter logic in production temp
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 14s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 15s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 21s
Laravel Pint / pint (pull_request) Successful in 2m52s
Laravel Larastan / larastan (pull_request) Failing after 5m12s

This commit is contained in:
dhanabalan
2026-09-18 09:54:41 +05:30
parent d676e31091
commit 4673a4146c

View File

@@ -1579,24 +1579,6 @@ class ProductionTempResource extends Resource
$set('machine', null);
$set('item_id', null);
}),
Select::make('item_id')
->label('Search by Item Code')
->nullable()
->searchable()
->reactive()
->options(function (callable $get) {
$plantId = $get('Plant');
if (empty($plantId)) {
return [];
}
return Item::whereHas('productionTemp', function ($query) use ($plantId) {
if ($plantId) {
$query->where('plant_id', $plantId);
}
})->pluck('code', 'id');
}),
TextInput::make('aufnr')
->label('Job Number')
->placeholder('Enter Job Number')
@@ -1618,14 +1600,6 @@ class ProductionTempResource extends Resource
->placeholder('Select To DateTime')
->reactive()
->native(false),
Select::make('created_by')
->label('Search by Created By')
->nullable()
->searchable()
->reactive()
->options(function () {
return ProductionTemp::pluck('created_by', 'created_by');
}),
DateTimePicker::make('updated_from')
->label('Updated From')
->placeholder('Select From DateTime')
@@ -1636,14 +1610,6 @@ class ProductionTempResource extends Resource
->placeholder('Select To DateTime')
->reactive()
->native(false),
Select::make('updated_by')
->label('Search by Updated By')
->nullable()
->searchable()
->reactive()
->options(function () {
return ProductionTemp::pluck('updated_by', 'updated_by');
}),
])
->query(function ($query, array $data) {
// Hide all records initially if no filters are applied