diff --git a/app/Http/Controllers/ModulePlantLineController.php b/app/Http/Controllers/ModulePlantLineController.php index 0b0347e..09a3345 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';