From 872b3d6b0a3932187d279f17f3c4980a30332d72 Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Wed, 11 Nov 2026 14:29:00 +0530 Subject: [PATCH] Updated warning message when motor testing master not found --- app/Http/Controllers/TestingPanelController.php | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/app/Http/Controllers/TestingPanelController.php b/app/Http/Controllers/TestingPanelController.php index 73f841e7..bfeb8562 100644 --- a/app/Http/Controllers/TestingPanelController.php +++ b/app/Http/Controllers/TestingPanelController.php @@ -231,13 +231,9 @@ class TestingPanelController extends Controller $uniqueInvalidCodes = array_unique($missedItemCodes); if (! empty($uniqueInvalidCodes)) { - - // return response("Item codes : ". implode(', ', $uniqueInvalidCodes)." not found in motor testing master for the specified plant {$plantName}", 400) - // ->header('Content-Type', 'text/plain'); - return response()->json([ 'status_code' => 'ERROR', - 'status_description' => 'Item codes : '.implode(', ', $uniqueInvalidCodes)." not found in master for the specified plant : '{$plantName}'!", + 'status_description' => 'Item codes : '.implode(', ', $uniqueInvalidCodes)." not found in motor testing master for the plant : '{$plantName}'!", ], 404); } @@ -895,13 +891,9 @@ class TestingPanelController extends Controller $uniqueInvalidCodes = array_unique($missedItemCodes); if (! empty($uniqueInvalidCodes)) { - - // return response("Item codes : ". implode(', ', $uniqueInvalidCodes)." not found in motor testing master for the specified plant {$plantName}", 400) - // ->header('Content-Type', 'text/plain'); - return response()->json([ 'status_code' => 'ERROR', - 'status_description' => 'Item codes : '.implode(', ', $uniqueInvalidCodes)." not found in master for the specified plant : '{$plantName}'!", + 'status_description' => 'Item codes : '.implode(', ', $uniqueInvalidCodes)." not found in motor testing master table for the plant : '{$plantName}'!", ], 404); } @@ -1079,7 +1071,7 @@ class TestingPanelController extends Controller if (! $motorTestingMaster) { return response()->json([ 'status_code' => 'ERROR', - 'status_description' => "Item code not found in motor testing master table for the plant : '$plantName'!", + 'status_description' => "Item code not found in motor testing master table for the plant : '{$plantName}'!", ], 404); }