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); }