Merge pull request 'Updated laser part validation import / create page / report view function' (#365) from ranjith-dev into master
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled

Reviewed-on: #365
This commit was merged in pull request #365.
This commit is contained in:
2026-02-20 19:02:15 +00:00
2 changed files with 6 additions and 4 deletions

View File

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

View File

@@ -264,7 +264,7 @@ class StickerMasterResource extends Resource
->label('Laser Part Validation 2')
->nullable()
->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) {
$set('updated_by', Filament::auth()->user()?->name);
}),
@@ -625,11 +625,13 @@ class StickerMasterResource extends Resource
Tables\Columns\TextColumn::make('laser_part_validation1')
->label('Laser Part Validation 1')
->default('-')
->alignCenter(),
->alignCenter()
->searchable(),
Tables\Columns\TextColumn::make('laser_part_validation2')
->label('Laser Part Validation 2')
->default('-')
->alignCenter(),
->alignCenter()
->searchable(),
Tables\Columns\TextColumn::make('panel_box_code')
->label('Panel Box Code')
->default('-')