Added leak line type in send produciton report page
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 15s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 17s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 18s
Laravel Pint / pint (pull_request) Successful in 2m30s
Laravel Larastan / larastan (pull_request) Failing after 5m22s

This commit is contained in:
dhanabalan
2026-11-14 11:08:08 +05:30
parent 6b64a5f85d
commit a139f8159b

View File

@@ -153,6 +153,7 @@ class SendProductionReport extends Command
$lines = Line::where('plant_id', $plant->id) $lines = Line::where('plant_id', $plant->id)
->whereIn('type', [ ->whereIn('type', [
'Base FG Line', 'Base FG Line',
'Base FG Leak Test Line',
'FG Line', 'FG Line',
'Process FG Line', 'Process FG Line',
'SFG Line', 'SFG Line',
@@ -160,9 +161,10 @@ class SendProductionReport extends Command
->orderByRaw(" ->orderByRaw("
CASE CASE
WHEN LOWER(type) = 'fg line' THEN 0 WHEN LOWER(type) = 'fg line' THEN 0
WHEN LOWER(type) = 'base fg line' THEN 1 WHEN LOWER(type) = 'base fg leak test line' THEN 1
WHEN LOWER(type) = 'process fg line' THEN 2 WHEN LOWER(type) = 'base fg line' THEN 2
WHEN LOWER(type) = 'sfg line' THEN 3 WHEN LOWER(type) = 'process fg line' THEN 3
WHEN LOWER(type) = 'sfg line' THEN 4
ELSE 4 ELSE 4
END END
") ")