Added logic for current date in sticker pdf service
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 14s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 17s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 13s
Laravel Pint / pint (pull_request) Successful in 3m43s
Laravel Larastan / larastan (pull_request) Failing after 5m26s

This commit is contained in:
dhanabalan
2026-10-04 15:14:30 +05:30
parent 9765b93df1
commit 3c594bfdf3

View File

@@ -1054,6 +1054,7 @@ class StickerPdfService
$plantName = $itemCharacteristic?->plant?->name ?? '';
$plantAddress = $itemCharacteristic?->plant?->address ?? '';
$dateOfTest = $itemCharacteristic?->created_at?->format('d.m.Y') ?? '';
$currentDate = $itemCharacteristic?->created_at?->format('M-y') ?? '';
foreach ($dynamicElements as $element) {
@@ -1116,7 +1117,7 @@ class StickerPdfService
$textValue = $plantAddress;
}
if ($row->characteristics_type == 'current_date') {
$textValue = date('M-y');
$textValue = $currentDate;
}
if ($row->characteristics_type == 'date_of_test') {
$textValue = $dateOfTest;