mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-12 14:27:33 -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()) {
|
||||
$barcode1DType = $settings->label2_1d_type;
|
||||
$barcode1DType = ($barcode1DType == 'default') ?
|
||||
(($settings->alt_barcode_enabled) ? $settings->alt_barcode : null) :
|
||||
$barcode1DType;
|
||||
if ($barcode1DType != 'none') {
|
||||
$assetData->put('barcode1d', (object)[
|
||||
'type' => $barcode1DType,
|
||||
'content' => $asset->asset_tag,
|
||||
]);
|
||||
if ($settings->alt_barcode_enabled) {
|
||||
$barcode1DType = $settings->label2_1d_type;
|
||||
$barcode1DType = ($barcode1DType == 'default') ?
|
||||
(($settings->alt_barcode_enabled) ? $settings->alt_barcode : null) :
|
||||
$barcode1DType;
|
||||
if ($barcode1DType != 'none') {
|
||||
$assetData->put('barcode1d', (object)[
|
||||
'type' => $barcode1DType,
|
||||
'content' => $asset->asset_tag,
|
||||
]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue