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,6 +106,7 @@ class Label implements View
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($template->getSupport1DBarcode()) {
|
if ($template->getSupport1DBarcode()) {
|
||||||
|
if ($settings->alt_barcode_enabled) {
|
||||||
$barcode1DType = $settings->label2_1d_type;
|
$barcode1DType = $settings->label2_1d_type;
|
||||||
$barcode1DType = ($barcode1DType == 'default') ?
|
$barcode1DType = ($barcode1DType == 'default') ?
|
||||||
(($settings->alt_barcode_enabled) ? $settings->alt_barcode : null) :
|
(($settings->alt_barcode_enabled) ? $settings->alt_barcode : null) :
|
||||||
|
@ -117,6 +118,7 @@ class Label implements View
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if ($template->getSupport2DBarcode()) {
|
if ($template->getSupport2DBarcode()) {
|
||||||
$barcode2DType = $settings->label2_2d_type;
|
$barcode2DType = $settings->label2_2d_type;
|
||||||
|
|
Loading…
Reference in a new issue