Merge pull request 'Added logic for order by fg line in production report' (#1103) from ranjith-dev into master
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 14s
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 14s
Reviewed-on: #1103
This commit was merged in pull request #1103.
This commit is contained in:
@@ -142,7 +142,10 @@ class SendProductionReport extends Command
|
||||
|
||||
foreach ($plants as $plant) {
|
||||
|
||||
$lines = Line::where('plant_id', $plant->id)->get();
|
||||
// $lines = Line::where('plant_id', $plant->id)->get();
|
||||
$lines = Line::where('plant_id', $plant->id)
|
||||
->orderByRaw("CASE WHEN LOWER(type) = 'fg line' THEN 0 ELSE 1 END")
|
||||
->get();
|
||||
|
||||
foreach ($lines as $line) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user