Added current date logic in sticker pdf service
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 28s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 17s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 46s
Laravel Larastan / larastan (pull_request) Failing after 5m10s
Laravel Pint / pint (pull_request) Successful in 6m15s
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 28s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 17s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 46s
Laravel Larastan / larastan (pull_request) Failing after 5m10s
Laravel Pint / pint (pull_request) Successful in 6m15s
This commit is contained in:
@@ -889,6 +889,9 @@ class StickerPdfService
|
|||||||
if ($row->characteristics_type == 'plant_address') {
|
if ($row->characteristics_type == 'plant_address') {
|
||||||
$textValue = $plantAddress ?? '';
|
$textValue = $plantAddress ?? '';
|
||||||
}
|
}
|
||||||
|
if ($row->characteristics_type == 'current_date') {
|
||||||
|
$textValue = date('M-y');
|
||||||
|
}
|
||||||
|
|
||||||
$pdf->Text(
|
$pdf->Text(
|
||||||
(float) ($row->string_x_value ?? 0),
|
(float) ($row->string_x_value ?? 0),
|
||||||
|
|||||||
Reference in New Issue
Block a user