mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-12 03:14:32 +02:00
Added Code93 and Datamatrix as valid barcode types.
This commit is contained in:
parent
6bd3ad6138
commit
3beba96e39
6 changed files with 120 additions and 9 deletions
|
@ -41,9 +41,15 @@ class BarcodeGenerator
|
|||
case 'qr':
|
||||
$type = 'QRCODE';
|
||||
break;
|
||||
case 'datamatrix':
|
||||
$type = 'DATAMATRIX';
|
||||
break;
|
||||
case 'code39':
|
||||
$type = 'C93';
|
||||
break;
|
||||
case 'code93':
|
||||
$type = 'C93';
|
||||
break;
|
||||
case 'none':
|
||||
return null;
|
||||
default:
|
||||
|
@ -61,8 +67,10 @@ class BarcodeGenerator
|
|||
{
|
||||
switch ($options->getBarcodeType()) {
|
||||
case 'qr':
|
||||
case 'datamatrix':
|
||||
return $this->barcodeContentGenerator->getURLContent($target);
|
||||
case 'code39':
|
||||
case 'code93':
|
||||
return $this->barcodeContentGenerator->get1DBarcodeContent($target);
|
||||
case 'none':
|
||||
return null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue