From f38cc70537c617625898677ed47582fd57603758 Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Fri, 26 Dec 2025 12:02:27 +0530 Subject: [PATCH] Added proper logic in production sticker reprint controller --- app/Http/Controllers/ProductionStickerReprintController.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/ProductionStickerReprintController.php b/app/Http/Controllers/ProductionStickerReprintController.php index 0cf62cc..4599c53 100644 --- a/app/Http/Controllers/ProductionStickerReprintController.php +++ b/app/Http/Controllers/ProductionStickerReprintController.php @@ -28,6 +28,8 @@ class ProductionStickerReprintController extends Controller $itemCode = trim($parts[0]); $serialNumberRaw = isset($parts[1]) ? trim($parts[1]) : null; + // dd($serialNumberRaw); + if ($serialNumberRaw != null) { $serial = preg_replace('/\/.*/', '', $serialNumberRaw); $serial = trim($serial); @@ -74,7 +76,7 @@ class ProductionStickerReprintController extends Controller } } - $palletNo = preg_replace('/\/.*/', '', $palletNo); + // $palletNo = preg_replace('/\/.*/', '', $palletNo); // 5. Generate QR Code (base64) $qrCode = new QrCode($palletNo); -- 2.49.1