Merge pull request 'Added one more rule in sticker pdf service' (#1284) from ranjith-dev into master
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 13s

Reviewed-on: #1284
This commit was merged in pull request #1284.
This commit is contained in:
2026-10-20 06:17:23 +00:00

View File

@@ -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 ?? '', '₹')) {