ranjith-dev #322

Merged
jothi merged 4 commits from ranjith-dev into master 2026-02-10 06:15:46 +00:00
Showing only changes of commit 967cb8937b - Show all commits

View File

@@ -746,7 +746,8 @@ class PdfController extends Controller
'status_code' => 'ERROR',
'status_description' => "Coil number can't be empty!",
], 404);
} elseif (! is_numeric($coilNo) || Str::length($coilNo) <= 0 || ! preg_match('/^\d{1,}$/', $coilNo)) { // !ctype_digit($data['plant_code'])
} elseif (! is_numeric($coilNo) || Str::length($coilNo) <= 0 || !preg_match('/^\d+(\.\d+)?$/', $coilNo)
) { // !ctype_digit($data['plant_code'])
return response()->json([
'status_code' => 'ERROR',
'status_description' => 'Invalid coil number found!',