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