mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-05-19 18:01:30 +00:00
Try to find TME part via SPN
This commit is contained in:
parent
4475257b7b
commit
3e9659525a
1 changed files with 6 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue