mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-18 05:08:13 +01:00
Do the EIGP114 detection after userdefined barcode detection, so that users can override it on their partLots
This commit is contained in:
@@ -94,12 +94,6 @@ final class BarcodeScanHelper
|
||||
}
|
||||
|
||||
//Null means auto and we try the different formats
|
||||
|
||||
//If the barcode is formatted as EIGP114, we can parse it directly
|
||||
if (EIGP114BarcodeScanResult::isFormat06Code($input)) {
|
||||
return $this->parseEIGP114Barcode($input);
|
||||
}
|
||||
|
||||
$result = $this->parseInternalBarcode($input);
|
||||
|
||||
if ($result !== null) {
|
||||
@@ -112,6 +106,11 @@ final class BarcodeScanHelper
|
||||
return $result;
|
||||
}
|
||||
|
||||
//If the barcode is formatted as EIGP114, we can parse it directly
|
||||
if (EIGP114BarcodeScanResult::isFormat06Code($input)) {
|
||||
return $this->parseEIGP114Barcode($input);
|
||||
}
|
||||
|
||||
//Try to parse as IPN barcode
|
||||
$result = $this->parseIPNBarcode($input);
|
||||
if ($result !== null) {
|
||||
|
||||
Reference in New Issue
Block a user