diff --git a/app/Livewire/PanelCheckList.php b/app/Livewire/PanelCheckList.php index 9ed9093..e4cc9b2 100644 --- a/app/Livewire/PanelCheckList.php +++ b/app/Livewire/PanelCheckList.php @@ -147,19 +147,24 @@ public $records = []; foreach ($this->checklist as $characteristicId => $value) { - $status = 'Ok'; + // $status = 'Ok'; $characteristic = ProductCharacteristicsMaster::find($characteristicId); - if ( - $characteristic && - is_numeric($value) && - $value >= $characteristic->lower && - $value <= $characteristic->upper - ) { - $status = 'Ok'; - } else { - $status = 'NotOk'; + if (($characteristic?->inspection_type ?? null) === 'Value') { + if ( + $characteristic && + is_numeric($value) && + $value >= $characteristic->lower && + $value <= $characteristic->upper + ) { + $status = 'Ok'; + } else { + $status = 'NotOk'; + } + } + else { + $status = $value; } ProductionCharacteristic::create([