Merge pull request 'Added Updated logic in asrs resource pages' (#649) from ranjith-dev into master
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled

Reviewed-on: #649
This commit was merged in pull request #649.
This commit is contained in:
2026-05-26 04:49:09 +00:00
2 changed files with 13 additions and 6 deletions

View File

@@ -112,12 +112,12 @@ class AsrsItemValidationResource extends Resource
'In' => 'In',
'Out' => 'Out',
]),
Forms\Components\Select::make('status')
->label('Status')
->options([
'Updated' => 'Updated',
'NotUpdated' => 'Not Updated',
]),
// Forms\Components\Select::make('status')
// ->label('Status')
// ->options([
// 'Updated' => 'Updated',
// 'NotUpdated' => 'Not Updated',
// ]),
Forms\Components\Hidden::make('created_by')
->label('Created By')
->default(Filament::auth()->user()?->name ?? ''),

View File

@@ -10,6 +10,13 @@ class EditAsrsItemValidation extends EditRecord
{
protected static string $resource = AsrsItemValidationResource::class;
protected function mutateFormDataBeforeSave(array $data): array
{
$data['status'] = 'Updated';
return $data;
}
protected function getHeaderActions(): array
{
return [