From 3e9659525a41cadc3e9941903bf5cea136ba82a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Sun, 29 Mar 2026 14:48:53 +0200 Subject: [PATCH] Try to find TME part via SPN --- .../LabelSystem/BarcodeScanner/BarcodeScanResultHandler.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Services/LabelSystem/BarcodeScanner/BarcodeScanResultHandler.php b/src/Services/LabelSystem/BarcodeScanner/BarcodeScanResultHandler.php index b734faa9..60a1136f 100644 --- a/src/Services/LabelSystem/BarcodeScanner/BarcodeScanResultHandler.php +++ b/src/Services/LabelSystem/BarcodeScanner/BarcodeScanResultHandler.php @@ -248,6 +248,12 @@ final readonly class BarcodeScanResultHandler if ($part !== null) { return $part; } + + //Try to find the part by SPN/SKU + $part = $this->em->getRepository(Part::class)->getPartBySPN($pn); + if ($part !== null) { + return $part; + } } // Fallback: search by MPN