diff --git a/src/Services/LabelSystem/BarcodeScanner/BarcodeScanResultHandler.php b/src/Services/LabelSystem/BarcodeScanner/BarcodeScanResultHandler.php index 260506ae..3cf01249 100644 --- a/src/Services/LabelSystem/BarcodeScanner/BarcodeScanResultHandler.php +++ b/src/Services/LabelSystem/BarcodeScanner/BarcodeScanResultHandler.php @@ -142,7 +142,8 @@ final readonly class BarcodeScanResultHandler } if ($barcodeScan instanceof LCSCBarcodeScanResult) { - return $this->resolvePartFromLCSC($barcodeScan); + return $this->resolvePartFromLCSC($barcodeScan) + ?? $this->em->getRepository(Part::class)->getPartBySPN($barcodeScan->mpn); } if ($barcodeScan instanceof AmazonBarcodeScanResult) {