Added date of test rule in test certificate template
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 13s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 9s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 13s
Laravel Larastan / larastan (pull_request) Failing after 4m12s
Laravel Pint / pint (pull_request) Successful in 6m13s

This commit is contained in:
dhanabalan
2026-09-21 18:42:36 +05:30
parent febd15ae1c
commit 269f85cfb6

View File

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