Merge pull request 'Solved issue in panel box validation' (#770) from ranjith-dev into master
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 28s
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 28s
Reviewed-on: #770
This commit was merged in pull request #770.
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user