Skip to content

Commit f2faf58

Browse files
authored
Merge pull request #15817 from Godmartinz/label_fix
Removes asset tag if 2D code is not present
2 parents 7b7a848 + 0f1f6bc commit f2faf58

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

app/Models/Labels/Tapes/Dymo/LabelWriter_2112283.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,6 @@ public function write($pdf, $record) {
4949
);
5050
$currentX += $barcodeSize + self::BARCODE_MARGIN;
5151
$usableWidth -= $barcodeSize + self::BARCODE_MARGIN;
52-
} else {
53-
static::writeText(
54-
$pdf, $record->get('tag'),
55-
$pa->x1, $pa->y2 - self::TAG_SIZE,
56-
'freesans', 'b', self::TAG_SIZE, 'R',
57-
$usableWidth, self::TAG_SIZE, true, 0
58-
);
5952
}
6053

6154
if ($record->has('title')) {

app/Models/Labels/Tapes/Dymo/LabelWriter_30252.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,6 @@ public function write($pdf, $record) {
5050
);
5151
$currentX += $barcodeSize + self::BARCODE_MARGIN;
5252
$usableWidth -= $barcodeSize + self::BARCODE_MARGIN;
53-
} else {
54-
static::writeText(
55-
$pdf, $record->get('tag'),
56-
$pa->x1, $pa->y2 - self::TAG_SIZE,
57-
'freemono', 'b', self::TAG_SIZE, 'R',
58-
$usableWidth, self::TAG_SIZE, true, 0
59-
);
6053
}
6154

6255
if ($record->has('title')) {

0 commit comments

Comments
 (0)