Do the EIGP114 detection after userdefined barcode detection, so that users can override it on their partLots

This commit is contained in:
Jan Böhmer 2025-01-04 18:41:27 +01:00
parent 052190c69b
commit bf2a776403

View file

@ -94,12 +94,6 @@ final class BarcodeScanHelper
} }
//Null means auto and we try the different formats //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); $result = $this->parseInternalBarcode($input);
if ($result !== null) { if ($result !== null) {
@ -112,6 +106,11 @@ final class BarcodeScanHelper
return $result; 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 //Try to parse as IPN barcode
$result = $this->parseIPNBarcode($input); $result = $this->parseIPNBarcode($input);
if ($result !== null) { if ($result !== null) {