mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-19 10:24:50 +02:00
Do the EIGP114 detection after userdefined barcode detection, so that users can override it on their partLots
This commit is contained in:
parent
052190c69b
commit
bf2a776403
1 changed files with 5 additions and 6 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue