1
0
forked from poc/pds

Updated plant code length should be 4 to 7

This commit is contained in:
dhanabalan
2026-04-30 15:44:39 +05:30
parent 04cbf548de
commit 4de8a306ea
5 changed files with 13 additions and 7 deletions

View File

@@ -58,7 +58,7 @@ class StickerMasterController extends Controller
'status_code' => 'ERROR',
'status_description' => 'Plant code must be between 4 and 7 digits only!',
], 400);
} elseif (! preg_match('/^[1-9]\d{3,}$/', $plantCode)) {
} elseif (! preg_match('/^[1-9]\d{3,6}$/', $plantCode)) {
return response()->json([
'status_code' => 'ERROR',
'status_description' => 'Invalid plant code found!',
@@ -190,7 +190,7 @@ class StickerMasterController extends Controller
'status_code' => 'ERROR',
'status_description' => 'Plant code must be between 4 and 7 digits only!',
], 400);
} elseif (! preg_match('/^[1-9]\d{3,}$/', $plantCode)) {
} elseif (! preg_match('/^[1-9]\d{3,6}$/', $plantCode)) {
return response()->json([
'status_code' => 'ERROR',
'status_description' => 'Invalid plant code found!',