mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-20 19:05:14 +02:00
Added support for Code128 barcode.
This commit is contained in:
parent
c58b36e9c5
commit
f64910374f
5 changed files with 14 additions and 5 deletions
|
@ -75,6 +75,7 @@ class LabelOptionsType extends AbstractType
|
|||
'choices' => [
|
||||
'label_options.barcode_type.none' => 'none',
|
||||
'label_options.barcode_type.qr' => 'qr',
|
||||
'label_options.barcode_type.code128' => 'code128',
|
||||
'label_options.barcode_type.code39' => 'code39',
|
||||
'label_options.barcode_type.code93' => 'code93',
|
||||
'label_options.barcode_type.datamatrix' => 'datamatrix',
|
||||
|
@ -83,7 +84,7 @@ class LabelOptionsType extends AbstractType
|
|||
if (in_array($choice, ['qr', 'datamatrix'])) {
|
||||
return 'label_options.barcode_type.2D';
|
||||
}
|
||||
if (in_array($choice, ['code39', 'code93'])) {
|
||||
if (in_array($choice, ['code39', 'code93', 'code128'])) {
|
||||
return 'label_options.barcode_type.1D';
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue