Updated laser part validation import / create page / report view function
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled
Gemini PR Review / Gemini PR Review (pull_request) Has been cancelled
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Has been cancelled
Laravel Larastan / larastan (pull_request) Has been cancelled
Laravel Pint / pint (pull_request) Has been cancelled

This commit is contained in:
dhanabalan
2026-02-21 00:31:45 +05:30
parent 878e12eff5
commit d243f53f2f
2 changed files with 6 additions and 4 deletions

View File

@@ -205,7 +205,7 @@ class StickerMasterImporter extends Importer
} else { } else {
$itemId = $item->id; $itemId = $item->id;
if (! $laserPart1) { if (! $laserPart1 && ! (Str::length($laserPart2) == 1 && is_numeric($laserPart2))) {
$laserPart1 = $laserPart2; $laserPart1 = $laserPart2;
$laserPart2 = null; $laserPart2 = null;
} }

View File

@@ -264,7 +264,7 @@ class StickerMasterResource extends Resource
->label('Laser Part Validation 2') ->label('Laser Part Validation 2')
->nullable() ->nullable()
->reactive() ->reactive()
->readOnly(fn (callable $get) => empty($get('laser_part_validation1'))) // ->readOnly(fn (callable $get) => empty($get('laser_part_validation1')))
->afterStateUpdated(function ($state, callable $set, callable $get) { ->afterStateUpdated(function ($state, callable $set, callable $get) {
$set('updated_by', Filament::auth()->user()?->name); $set('updated_by', Filament::auth()->user()?->name);
}), }),
@@ -625,11 +625,13 @@ class StickerMasterResource extends Resource
Tables\Columns\TextColumn::make('laser_part_validation1') Tables\Columns\TextColumn::make('laser_part_validation1')
->label('Laser Part Validation 1') ->label('Laser Part Validation 1')
->default('-') ->default('-')
->alignCenter(), ->alignCenter()
->searchable(),
Tables\Columns\TextColumn::make('laser_part_validation2') Tables\Columns\TextColumn::make('laser_part_validation2')
->label('Laser Part Validation 2') ->label('Laser Part Validation 2')
->default('-') ->default('-')
->alignCenter(), ->alignCenter()
->searchable(),
Tables\Columns\TextColumn::make('panel_box_code') Tables\Columns\TextColumn::make('panel_box_code')
->label('Panel Box Code') ->label('Panel Box Code')
->default('-') ->default('-')