mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-26 14:09:43 -08:00
puts textY outside of the forloop
This commit is contained in:
parent
c0215baca5
commit
b7850ab839
|
@ -164,19 +164,18 @@ class DefaultLabel extends RectangleSheet
|
||||||
$fieldsDone = 0;
|
$fieldsDone = 0;
|
||||||
|
|
||||||
if ($settings->labels_display_name && $fieldsDone < $this->getSupportFields()) {
|
if ($settings->labels_display_name && $fieldsDone < $this->getSupportFields()) {
|
||||||
foreach($record->get('fields') as $field)
|
foreach ($record->get('fields') as $field){
|
||||||
if ($asset->name) {
|
|
||||||
static::writeText(
|
static::writeText(
|
||||||
$pdf, $field['label'][0].': '.$field['value'],
|
$pdf, $field['label'][0] . ': ' . $field['value'],
|
||||||
$textX1, $textY,
|
$textX1, $textY,
|
||||||
'freesans', '', $this->textSize, 'L',
|
'freesans', '', $this->textSize, 'L',
|
||||||
$textW, $this->textSize,
|
$textW, $this->textSize,
|
||||||
true, 0
|
true, 0
|
||||||
);
|
);
|
||||||
|
}
|
||||||
$textY += $this->textSize + self::TEXT_MARGIN;
|
$textY += $this->textSize + self::TEXT_MARGIN;
|
||||||
$fieldsDone++;
|
$fieldsDone++;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
// if ($settings->labels_display_company_name && $fieldsDone < $this->getSupportFields()) {
|
// if ($settings->labels_display_company_name && $fieldsDone < $this->getSupportFields()) {
|
||||||
// if ($asset->company) {
|
// if ($asset->company) {
|
||||||
// static::writeText(
|
// static::writeText(
|
||||||
|
|
Loading…
Reference in a new issue