mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-08 00:52:01 +01:00
Add UPC support to built-in barcode generator
This commit is contained in:
@@ -102,15 +102,15 @@ class modPhpbarcode extends ModeleBarCode
|
||||
if ($encoding == 'ISBN') {
|
||||
$supported = 1;
|
||||
}
|
||||
if ($encoding == 'UPC') {
|
||||
$supported = 1;
|
||||
}
|
||||
// Formats that hangs on Windows (when genbarcode.exe for Windows is called, so they are not
|
||||
// activated on Windows)
|
||||
if (file_exists($genbarcode_loc) && empty($_SERVER["WINDIR"])) {
|
||||
if ($encoding == 'EAN8') {
|
||||
$supported = 1;
|
||||
}
|
||||
if ($encoding == 'UPC') {
|
||||
$supported = 1;
|
||||
}
|
||||
if ($encoding == 'C39') {
|
||||
$supported = 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user