ranjith-dev #322

Merged
jothi merged 4 commits from ranjith-dev into master 2026-02-10 06:15:46 +00:00
Showing only changes of commit bd176b4b0f - Show all commits

View File

@@ -66,7 +66,7 @@ class StickerMasterResource extends Resource
$set('item_description', null); $set('item_description', null);
$set('item_error', null); $set('item_error', null);
$set('panel_box_code', null); $set('panel_box_code', null);
$set('load_rate', null); $set('load_rate', 0);
$set('bundle_quantity', null); $set('bundle_quantity', null);
$set('material_type', null); $set('material_type', null);
$set('part_validation1', null); $set('part_validation1', null);
@@ -220,7 +220,7 @@ class StickerMasterResource extends Resource
->label('Part Validation 2') ->label('Part Validation 2')
->nullable() ->nullable()
->reactive() ->reactive()
->disabled(fn (Get $get) => empty($get('part_validation1'))) ->readOnly(fn (callable $get) => empty($get('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);
}), }),
@@ -229,7 +229,7 @@ class StickerMasterResource extends Resource
->label('Part Validation 3') ->label('Part Validation 3')
->nullable() ->nullable()
->reactive() ->reactive()
->disabled(fn (Get $get) => empty($get('part_validation2'))) ->readOnly(fn (callable $get) => empty($get('part_validation1')) || empty($get('part_validation2')))
->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);
}), }),
@@ -238,7 +238,7 @@ class StickerMasterResource extends Resource
->label('Part Validation 4') ->label('Part Validation 4')
->nullable() ->nullable()
->reactive() ->reactive()
->disabled(fn (Get $get) => empty($get('part_validation3'))) ->readOnly(fn (callable $get) => empty($get('part_validation1')) || empty($get('part_validation2')) || empty($get('part_validation3')))
->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);
}), }),
@@ -247,7 +247,7 @@ class StickerMasterResource extends Resource
->label('Part Validation 5 (Capacitor QR)') ->label('Part Validation 5 (Capacitor QR)')
->nullable() ->nullable()
->reactive() ->reactive()
->disabled(fn (Get $get) => empty($get('part_validation4')) && empty($get('panel_box_code'))) ->readOnly(fn (callable $get) => (empty($get('part_validation1')) || empty($get('part_validation2')) || empty($get('part_validation3')) || empty($get('part_validation4'))) && empty($get('panel_box_code')))
->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);
}), }),
@@ -264,7 +264,7 @@ class StickerMasterResource extends Resource
->label('Laser Part Validation 2') ->label('Laser Part Validation 2')
->nullable() ->nullable()
->reactive() ->reactive()
->disabled(fn (Get $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);
}), }),