From a139f8159bc647eb84ce8800df1d791f419a0565 Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Sat, 14 Nov 2026 11:08:08 +0530 Subject: [PATCH] Added leak line type in send produciton report page --- app/Console/Commands/SendProductionReport.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/app/Console/Commands/SendProductionReport.php b/app/Console/Commands/SendProductionReport.php index 1de66463..aa1c489d 100644 --- a/app/Console/Commands/SendProductionReport.php +++ b/app/Console/Commands/SendProductionReport.php @@ -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 ") -- 2.49.1