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() 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)); + // } } 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 @@ +