Changed logic in sticker pdf service
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 19s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 19s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 15s
Laravel Pint / pint (pull_request) Successful in 7m5s
Laravel Larastan / larastan (pull_request) Failing after 7m51s
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 19s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 19s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 15s
Laravel Pint / pint (pull_request) Successful in 7m5s
Laravel Larastan / larastan (pull_request) Failing after 7m51s
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user