File tree Expand file tree Collapse file tree
src/Services/LabelSystem/BarcodeScanner Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -304,19 +304,19 @@ private function getCreationInfoForEIGP114(EIGP114BarcodeScanResult $scanResult)
304304 return null ;
305305 }
306306
307- // Digi-Key: can use customerPartNumber or supplierPartNumber directly
307+ // Digi-Key: supplierPartNumber directly
308308 if ($ vendor === 'digikey ' ) {
309309 return [
310310 'providerKey ' => 'digikey ' ,
311- 'providerId ' => $ scanResult ->customerPartNumber ?? $ scanResult -> supplierPartNumber ,
311+ 'providerId ' => $ scanResult ->supplierPartNumber ?? throw new \ RuntimeException ( ' Digikey barcode does not contain required supplier part number ' ) ,
312312 ];
313313 }
314314
315315 // Element14: can use supplierPartNumber directly
316316 if ($ vendor === 'element14 ' ) {
317317 return [
318318 'providerKey ' => 'element14 ' ,
319- 'providerId ' => $ scanResult ->supplierPartNumber ,
319+ 'providerId ' => $ scanResult ->supplierPartNumber ?? throw new \ RuntimeException ( ' Element14 barcode does not contain required supplier part number ' ) ,
320320 ];
321321 }
322322
You can’t perform that action at this time.
0 commit comments