Merge pull request 'Added date of test rule in test certificate template' (#1074) from ranjith-dev into master
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled

Reviewed-on: #1074
This commit was merged in pull request #1074.
This commit is contained in:
2026-09-21 13:12:50 +00:00

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 ?? '', '₹')) {