Merge pull request 'changed logic in sticker pdf service' (#37) from ranjith-dev into master
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled
Reviewed-on: #37
This commit was merged in pull request #37.
This commit is contained in:
@@ -16,9 +16,16 @@ class StickerPdfService
|
|||||||
$structure = StickerStructureDetail::where('sticker_id', $stickerId)
|
$structure = StickerStructureDetail::where('sticker_id', $stickerId)
|
||||||
->first();
|
->first();
|
||||||
|
|
||||||
$stickerId = $structure->sticker_id;
|
// $stickerId = $structure->sticker_id;
|
||||||
|
|
||||||
$elements = StickerDetail::where('sticker_structure_detail_id', $stickerId)->get();
|
// $elements = StickerDetail::where('sticker_structure_detail_id', $stickerId)->get();
|
||||||
|
|
||||||
|
// dd($elements);
|
||||||
|
$structureId = $structure->id;
|
||||||
|
$elements = StickerDetail::where(
|
||||||
|
'sticker_structure_detail_id',
|
||||||
|
$structureId
|
||||||
|
)->get();
|
||||||
|
|
||||||
$width = (float) $structure->sticker_width;
|
$width = (float) $structure->sticker_width;
|
||||||
$height = (float) $structure->sticker_height;
|
$height = (float) $structure->sticker_height;
|
||||||
|
|||||||
Reference in New Issue
Block a user