Added proper logic in sticker reprint controller
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 10s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 10s
Gemini PR Review / review (pull_request) Failing after 32s
Laravel Pint / pint (pull_request) Successful in 2m31s
Laravel Larastan / larastan (pull_request) Failing after 3m13s

This commit is contained in:
dhanabalan
2025-12-26 12:27:03 +05:30
parent 8d05164215
commit 0490516836

View File

@@ -24,6 +24,8 @@ class ProductionStickerReprintController extends Controller
{
$palletNo = urldecode($palletNo);
$qrPayload = rtrim($palletNo, '|') . '|';
$parts = explode('|', $palletNo);
$itemCode = trim($parts[0]);
$serialNumberRaw = isset($parts[1]) ? trim($parts[1]) : null;
@@ -79,7 +81,7 @@ class ProductionStickerReprintController extends Controller
// $palletNo = preg_replace('/\/.*/', '', $palletNo);
// 5. Generate QR Code (base64)
$qrCode = new QrCode($palletNo);
$qrCode = new QrCode($qrPayload);
$output = new Output\Png();
$qrBinary = $output->output($qrCode, 100); // 100 = size
$qrBase64 = base64_encode($qrBinary);