From 68d4240ab0510682f7a48054a510f6e11abb9864 Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Mon, 4 Aug 2025 18:23:51 +0530 Subject: [PATCH] Add removed all line for production line stop count and production order count --- app/Http/Controllers/ModulePlantLineController.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/ModulePlantLineController.php b/app/Http/Controllers/ModulePlantLineController.php index 0b0347ef1..09a3345f6 100644 --- a/app/Http/Controllers/ModulePlantLineController.php +++ b/app/Http/Controllers/ModulePlantLineController.php @@ -128,10 +128,17 @@ class ModulePlantLineController extends Controller ], 404); } - if (strtolower(trim($chartName)) != 'production hourly count') { + $normalizedChartName = strtolower(trim($chartName)); + + if ($normalizedChartName != 'production order count' && $normalizedChartName != 'production hourly count' && $normalizedChartName != 'production line stop count') { array_unshift($nonFgLines, 'All Lines'); } + + // if (strtolower(trim($chartName)) != 'production hourly count') { + // array_unshift($nonFgLines, 'All Lines'); + // } + // Add "All Lines" to beginning and "FG Lines" at the end // array_unshift($nonFgLines, 'All Lines'); // $nonFgLines[] = 'FG Line';