Added inspection lot number in panel box validation resource page
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 26s

This commit is contained in:
dhanabalan
2026-08-20 09:18:05 +05:30
parent 9f2ffa46ce
commit 3b890374e0
2 changed files with 97 additions and 10 deletions

View File

@@ -46,6 +46,7 @@ class CreatePanelBoxValidation extends CreateRecord {
'last_selected_plant_id',
'last_selected_line',
'last_selected_production',
'last_selected_inspection',
]);
}
@@ -117,6 +118,7 @@ class CreatePanelBoxValidation extends CreateRecord {
'plant_id' => $this->data['plant_id'] ?? null,
'line_id' => $this->data['line_id'] ?? null,
'production_order' => $this->data['production_order'] ?? null,
'inspection_lot_number' => $this->data['inspection_lot_number'] ?? null,
])
);
}
@@ -220,6 +222,7 @@ class CreatePanelBoxValidation extends CreateRecord {
$plant = $this->form->getState()['plant'] ?? null;
$line = $this->form->getState()['line'] ?? null;
$production = $this->form->getState()['production'] ?? null;
$inspection = $this->form->getState()['inspection'] ?? null;
// $this->skipChecklistValidation = false;
// $this->showChecklist = false;
@@ -244,6 +247,7 @@ class CreatePanelBoxValidation extends CreateRecord {
'plant_id' => null,
'line_id' => null,
'production_order' => null,
'inspection_lot_number' => null,
]);
@@ -260,6 +264,9 @@ class CreatePanelBoxValidation extends CreateRecord {
if ($production) {
session(['last_selected_production' => $production]);
}
if ($inspection) {
session(['last_selected_inspection' => $inspection]);
}
}
protected function getRedirectUrl(): string
@@ -270,6 +277,7 @@ class CreatePanelBoxValidation extends CreateRecord {
'plant_id' => $this->data['plant_id'] ?? null,
'line_id' => $this->data['line_id'] ?? null,
'production_order' => $this->data['production_order'] ?? null,
'inspection_lot_number' => $this->data['inspection_lot_number'] ?? null,
]);
}
}