Merge pull request 'Added current date logic in sticker pdf service' (#895) from ranjith-dev into master
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 28s

Reviewed-on: #895
This commit was merged in pull request #895.
This commit is contained in:
2026-08-13 05:43:27 +00:00

View File

@@ -889,6 +889,9 @@ class StickerPdfService
if ($row->characteristics_type == 'plant_address') {
$textValue = $plantAddress ?? '';
}
if ($row->characteristics_type == 'current_date') {
$textValue = date('M-y');
}
$pdf->Text(
(float) ($row->string_x_value ?? 0),