Added one more rule in sticker pdf service
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 20s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 28s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 19s
Laravel Pint / pint (pull_request) Successful in 2m56s
Laravel Larastan / larastan (pull_request) Failing after 6m24s
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 20s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 28s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 19s
Laravel Pint / pint (pull_request) Successful in 2m56s
Laravel Larastan / larastan (pull_request) Failing after 6m24s
This commit is contained in:
@@ -1221,6 +1221,30 @@ class StickerPdfService
|
||||
$textValue = $plantRegdUnit->name;
|
||||
}
|
||||
}
|
||||
if ($row->characteristics_type == 'company_name') {
|
||||
|
||||
$column = 'zmm_brand';
|
||||
|
||||
$textValue = $itemCharacteristic?->{$column} != null
|
||||
? $itemCharacteristic->{$column}
|
||||
: '';
|
||||
if($textValue == 'TORMAC'){
|
||||
$cName = Company::where('name', 'TORMAC')->first();
|
||||
$textValue = $cName->name;
|
||||
}
|
||||
else if($textValue == 'CRI'){
|
||||
$cName = Company::where('name', 'CRI')->first();
|
||||
$textValue = $cName->name;
|
||||
}
|
||||
else if($textValue == 'GENVIK'){
|
||||
$cName = Company::where('name', 'GENVIK')->first();
|
||||
$textValue = $cName->name;
|
||||
}
|
||||
else if($textValue == 'ZIRANTEC'){
|
||||
$cName = Company::where('name', 'ZIRANTEC')->first();
|
||||
$textValue = $cName->name;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (str_contains($row->string_value ?? '', '₹')) {
|
||||
|
||||
Reference in New Issue
Block a user