From 7984207dfc03fb3c5a3400d2657fdfce5237c420 Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Fri, 5 Jun 2026 09:14:33 +0530 Subject: [PATCH 1/3] Added panel box code column and created by and updated by in serial validation migration file --- ...y_and_updated_by_to_serial_validations.php | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 database/migrations/2026_06_05_083749_add_panel_box_code_and_created_by_and_updated_by_to_serial_validations.php diff --git a/database/migrations/2026_06_05_083749_add_panel_box_code_and_created_by_and_updated_by_to_serial_validations.php b/database/migrations/2026_06_05_083749_add_panel_box_code_and_created_by_and_updated_by_to_serial_validations.php new file mode 100644 index 0000000..c4716c5 --- /dev/null +++ b/database/migrations/2026_06_05_083749_add_panel_box_code_and_created_by_and_updated_by_to_serial_validations.php @@ -0,0 +1,45 @@ + Date: Fri, 5 Jun 2026 09:15:26 +0530 Subject: [PATCH 2/3] Added three column sin serial validation model file --- app/Models/SerialValidation.php | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/app/Models/SerialValidation.php b/app/Models/SerialValidation.php index a78a639..eff5e2e 100644 --- a/app/Models/SerialValidation.php +++ b/app/Models/SerialValidation.php @@ -10,7 +10,7 @@ use Illuminate\Database\Eloquent\SoftDeletes; class SerialValidation extends Model { - use Prunable; + // use Prunable; use SoftDeletes; protected $fillable = [ @@ -30,6 +30,9 @@ class SerialValidation extends Model 'batch_number', 'quantity', 'operator_id', + 'created_by', + 'updated_by', + 'panel_box_code', ]; public function plant(): BelongsTo @@ -47,8 +50,8 @@ class SerialValidation extends Model return $this->belongsTo(StickerMaster::class, 'sticker_master_id'); } - public function prunable(): Builder - { - return static::where('created_at', '<=', now()->subMonthsNoOverflow(6)); - } + // public function prunable(): Builder + // { + // return static::where('created_at', '<=', now()->subMonthsNoOverflow(6)); + // } } -- 2.49.1 From 9337865501a5133e577d13cebe5fe3004463608d Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Fri, 5 Jun 2026 09:18:40 +0530 Subject: [PATCH 3/3] Added three columns in serial validation resource page --- .../Resources/SerialValidationResource.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/app/Filament/Resources/SerialValidationResource.php b/app/Filament/Resources/SerialValidationResource.php index 96b7b99..899214a 100644 --- a/app/Filament/Resources/SerialValidationResource.php +++ b/app/Filament/Resources/SerialValidationResource.php @@ -267,6 +267,9 @@ class SerialValidationResource extends Resource Tables\Columns\TextColumn::make('scanned_status') ->label('Scanned Status') ->alignCenter(), + Tables\Columns\TextColumn::make('panel_box_code') + ->label('Panel Box Code') + ->alignCenter(), Tables\Columns\TextColumn::make('panel_box_supplier') ->label('Panel Box Supplier') ->alignCenter(), @@ -296,12 +299,25 @@ class SerialValidationResource extends Resource ->dateTime() ->alignCenter() ->sortable(), + Tables\Columns\TextColumn::make('created_by') + ->label('Created By') + ->alignCenter() + ->sortable(), + Tables\Columns\TextColumn::make('operator_id') + ->label('Operator ID') + ->alignCenter() + ->sortable(), Tables\Columns\TextColumn::make('updated_at') ->label('Updated At') ->dateTime() ->alignCenter() ->sortable() ->toggleable(isToggledHiddenByDefault: true), + Tables\Columns\TextColumn::make('updated_by') + ->label('Updated By') + ->alignCenter() + ->sortable() + ->toggleable(isToggledHiddenByDefault: true), Tables\Columns\TextColumn::make('deleted_at') ->label('Deleted At') ->dateTime() -- 2.49.1