conditions 1dbarcode to populate based on settings

This commit is contained in:
Godfrey M 2024-03-06 15:10:42 -08:00
parent 02862d80eb
commit 6559581bad

View file

@ -106,6 +106,7 @@ class Label implements View
}
if ($template->getSupport1DBarcode()) {
if ($settings->alt_barcode_enabled) {
$barcode1DType = $settings->label2_1d_type;
$barcode1DType = ($barcode1DType == 'default') ?
(($settings->alt_barcode_enabled) ? $settings->alt_barcode : null) :
@ -117,6 +118,7 @@ class Label implements View
]);
}
}
}
if ($template->getSupport2DBarcode()) {
$barcode2DType = $settings->label2_2d_type;