Updated warning message when motor testing master not found
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 18s

This commit is contained in:
dhanabalan
2026-11-11 14:29:00 +05:30
parent 7d955b5949
commit 872b3d6b0a

View File

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