Solved issue in panel box validation
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 16s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 17s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 15s
Laravel Pint / pint (pull_request) Successful in 1m43s
Laravel Larastan / larastan (pull_request) Failing after 3m29s

This commit is contained in:
dhanabalan
2026-06-18 16:29:26 +05:30
parent be4611d863
commit c1f5d232ac

View File

@@ -147,10 +147,11 @@ public $records = [];
foreach ($this->checklist as $characteristicId => $value) { foreach ($this->checklist as $characteristicId => $value) {
$status = 'Ok'; // $status = 'Ok';
$characteristic = ProductCharacteristicsMaster::find($characteristicId); $characteristic = ProductCharacteristicsMaster::find($characteristicId);
if (($characteristic?->inspection_type ?? null) === 'Value') {
if ( if (
$characteristic && $characteristic &&
is_numeric($value) && is_numeric($value) &&
@@ -161,6 +162,10 @@ public $records = [];
} else { } else {
$status = 'NotOk'; $status = 'NotOk';
} }
}
else {
$status = $value;
}
ProductionCharacteristic::create([ ProductionCharacteristic::create([
'plant_id' => $this->data['plant_id'] ?? null, 'plant_id' => $this->data['plant_id'] ?? null,