Added current date logic in sticker pdf service #895
@@ -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