Added na radio option in quality validation
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 15s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 17s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 20s
Laravel Pint / pint (pull_request) Successful in 1m52s
Laravel Larastan / larastan (pull_request) Failing after 3m46s

This commit is contained in:
dhanabalan
2026-06-19 14:55:01 +05:30
parent dc732016eb
commit 90876dda8d
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,
]);