mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-05-19 18:01:30 +00:00
added in fallback of LCSC barcode scan to search on supplier part number, which scans the orderdetails DB table
This commit is contained in:
parent
fb22117f10
commit
332fae055b
1 changed files with 2 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue