mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
conditions 1dbarcode to populate based on settings
This commit is contained in:
parent
02862d80eb
commit
6559581bad
|
@ -106,15 +106,17 @@ class Label implements View
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($template->getSupport1DBarcode()) {
|
if ($template->getSupport1DBarcode()) {
|
||||||
$barcode1DType = $settings->label2_1d_type;
|
if ($settings->alt_barcode_enabled) {
|
||||||
$barcode1DType = ($barcode1DType == 'default') ?
|
$barcode1DType = $settings->label2_1d_type;
|
||||||
(($settings->alt_barcode_enabled) ? $settings->alt_barcode : null) :
|
$barcode1DType = ($barcode1DType == 'default') ?
|
||||||
$barcode1DType;
|
(($settings->alt_barcode_enabled) ? $settings->alt_barcode : null) :
|
||||||
if ($barcode1DType != 'none') {
|
$barcode1DType;
|
||||||
$assetData->put('barcode1d', (object)[
|
if ($barcode1DType != 'none') {
|
||||||
'type' => $barcode1DType,
|
$assetData->put('barcode1d', (object)[
|
||||||
'content' => $asset->asset_tag,
|
'type' => $barcode1DType,
|
||||||
]);
|
'content' => $asset->asset_tag,
|
||||||
|
]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue