From 2e23e59bc75bd6a66618cfed45bab08bc6a1d4bc Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Fri, 27 Nov 2026 12:47:04 +0530 Subject: [PATCH] Changed logic in sticker pdf service --- app/Services/StickerPdfService.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/Services/StickerPdfService.php b/app/Services/StickerPdfService.php index 69ffdc14..c9b617d2 100644 --- a/app/Services/StickerPdfService.php +++ b/app/Services/StickerPdfService.php @@ -1117,7 +1117,7 @@ class StickerPdfService $textValue = $itemCode; } if ($row->characteristics_type == 'item_description') { - $textValue = chunk_split($itemDesc, 24, "\n"); + $textValue = chunk_split($itemDesc, 21, "\n"); } if ($row->characteristics_type == 'serial_number') { $textValue = '__SERIAL_NUMBER__'; @@ -1769,8 +1769,9 @@ class StickerPdfService if ($alignment == 'center') { - if($stickerId == 'Sewage PumpSet Test Certificate' || $stickerId == 'Submersible Mixer Test Certificate' || $stickerId == 'Pump Test Certificate' || $stickerId == 'Submersible Aerator Pump Test Certificate'){ + // if($stickerId == 'Sewage PumpSet Test Certificate' || $stickerId == 'Submersible Mixer Test Certificate' || $stickerId == 'Pump Test Certificate' || $stickerId == 'Submersible Aerator Pump Test Certificate'){ + if (str_contains($stickerId, 'Test Certificate')) { $leftMargin = 10; // mm from left edge $rightMargin = 24; // mm from right edge -- 2.49.1