Merge pull request 'Added na radio option in quality validation' (#778) from ranjith-dev into master
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 30s

Reviewed-on: #778
This commit was merged in pull request #778.
This commit is contained in:
2026-06-19 09:25:26 +00:00
2 changed files with 13 additions and 1 deletions

View File

@@ -176,7 +176,12 @@ class ProductionCheckList extends Component
'serial_number' => $this->data['serial_number'] ?? null,
'characteristic_name' => $characteristic?->name ?? null,
'observed_value' => $this->data['observed_value'] ?? null,
'status' => $value == 'ok' ? 'Ok' : 'NotOk',
// 'status' => $value == 'ok' ? 'Ok' : 'NotOk',
'status' => match (strtolower($value)) {
'ok' => 'Ok',
'na' => 'N/A',
'not_ok' => 'NotOk',
},
'inspection_status' => $finalInspectionStatus ?? null,
'created_by' => $this->data['operator_id'] ?? null,
]);

View File

@@ -18,6 +18,7 @@
<th class="border px-2 py-1 w-2/3">Characteristics</th>
<th class="border px-2 py-1 w-1/6">OK</th>
<th class="border px-2 py-1 w-1/6">Not OK</th>
<th class="border px-2 py-1 w-1/6">N/A</th>
</tr>
</thead>
<tbody>
@@ -38,6 +39,12 @@
wire:model="checklist.{{ $record['id'] }}"
value="not_ok">
</td>
<td class="border text-center">
<input type="radio"
wire:model="checklist.{{ $record['id'] }}"
value="na">
</td>
</tr>
@endforeach
</tbody>