ranjith-dev #1408

Merged
jothi merged 3 commits from ranjith-dev into master 2026-11-12 09:01:15 +00:00
Showing only changes of commit 872b3d6b0a - Show all commits

View File

@@ -231,13 +231,9 @@ class TestingPanelController extends Controller
$uniqueInvalidCodes = array_unique($missedItemCodes); $uniqueInvalidCodes = array_unique($missedItemCodes);
if (! empty($uniqueInvalidCodes)) { 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([ return response()->json([
'status_code' => 'ERROR', '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); ], 404);
} }
@@ -895,13 +891,9 @@ class TestingPanelController extends Controller
$uniqueInvalidCodes = array_unique($missedItemCodes); $uniqueInvalidCodes = array_unique($missedItemCodes);
if (! empty($uniqueInvalidCodes)) { 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([ return response()->json([
'status_code' => 'ERROR', '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); ], 404);
} }
@@ -1079,7 +1071,7 @@ class TestingPanelController extends Controller
if (! $motorTestingMaster) { if (! $motorTestingMaster) {
return response()->json([ return response()->json([
'status_code' => 'ERROR', '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); ], 404);
} }