Merge pull request 'Added leak line type in send produciton report page' (#1417) from ranjith-dev into master
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 16s
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 16s
Reviewed-on: #1417
This commit was merged in pull request #1417.
This commit is contained in:
@@ -153,6 +153,7 @@ class SendProductionReport extends Command
|
||||
$lines = Line::where('plant_id', $plant->id)
|
||||
->whereIn('type', [
|
||||
'Base FG Line',
|
||||
'Base FG Leak Test Line',
|
||||
'FG Line',
|
||||
'Process FG Line',
|
||||
'SFG Line',
|
||||
@@ -160,9 +161,10 @@ class SendProductionReport extends Command
|
||||
->orderByRaw("
|
||||
CASE
|
||||
WHEN LOWER(type) = 'fg line' THEN 0
|
||||
WHEN LOWER(type) = 'base fg line' THEN 1
|
||||
WHEN LOWER(type) = 'process fg line' THEN 2
|
||||
WHEN LOWER(type) = 'sfg line' THEN 3
|
||||
WHEN LOWER(type) = 'base fg leak test line' THEN 1
|
||||
WHEN LOWER(type) = 'base fg line' THEN 2
|
||||
WHEN LOWER(type) = 'process fg line' THEN 3
|
||||
WHEN LOWER(type) = 'sfg line' THEN 4
|
||||
ELSE 4
|
||||
END
|
||||
")
|
||||
|
||||
Reference in New Issue
Block a user