snipe / snipe-it

A free open source IT asset/license management system
https://snipeitapp.com
GNU Affero General Public License v3.0
10.81k stars 3.13k forks source link

Bulk Checkout doesn't work with Zebra CS3070 bluetooth scanners #10136

Open Trog3r opened 2 years ago

Trog3r commented 2 years ago

Debug mode

Describe the bug

When trying to do a bulk checkout with a Zebra CS3070 it doesn't register the CR correctly. I haven't tried other scanners yet, but if I go into a text editor and scan barcodes it is reading the assetID and then following it with either a LF or a CR. I have tried to use each type of suffix and even tried both suffixes when doing a bulk checkout and Snipe-it doesn't seem to be catching the CR.

My guess is that it's sending the assetID and snipe-it is processing the typeahead JS while the barcode scanner is sending the CR. I can reproduce the problem by cutting and pasting an assetID with the CR into the field and it will find the asset, but then I have to press the return character to choose it from the typeahead.

This adds an unnecessary extra step when assets to the bulk checkout field.

Reproduction steps

  1. Go to the Bulk Checkout page
  2. scan in a barcode with "CR" set as the barcode suffix on the scanner
  3. A valid asset will be selected if there is a matching assetID, but the user will need to press CR after scanning the asset before being able to scan another asset.

Expected behavior

I would expect to be able to scan multiple asset barcodes one after the other without having to press the return key between each scan.

Screenshots

No response

Snipe-IT Version

5.2.0

Operating System

CentOS

Web Server

Apache

PHP Version

7.3.30

Operating System

MacOS 11.5.2

Browser

Chrome

Version

94.0.4606.54

Device

No response

Operating System

No response

Browser

No response

Version

No response

Error messages

no error messages

Additional context

fresh install of 5.1.8 experienced the problem... upgraded to 5.2.0 and problem still exists MacOS/Chrome install.sh no errors no manual edits

welcome[bot] commented 2 years ago

👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

snipe commented 2 years ago

Have you tried pulling latest from master? I think this has already been fixed.

Trog3r commented 2 years ago

Thanks for responding so quickly! I just upgraded earlier to "Version v5.2.0 - build 6339 (master)" and I'm still experiencing the problem. I've asked my team to try using different scanners, but I can confirm that the issue exists with the CS3070 and the latest version.

Trog3r commented 2 years ago

Note: the user setup a tethered scanner instead of the bluetooth 3070 scanner and it appears to be working for him.

Trog3r commented 2 years ago

Note from the user: Just wanted to let you know I believe the bulk checkout issue was within the now retired model of scanner, CS3070.

I had bulk checkout success with the upgraded blue tooth scanner model (CS6080) and one of the photo studio's larger tethered models (non-bluetooth) when adding auto TAB.

athompsoncmc commented 2 years ago

Hi, I was still having this issue and wanted to post my steps in case anyone comes across them. I tried Carriage Return (CR) and Line Feed (LF) and the results would populate on the next row in excel, but they still would have trouble going through bulk checkout. I'm using a cheapo Tera HW002 Bluetooth or Tethered Scanner. From @Trog3r 's suggestion about the auto TAB, I used my manufacturer docs to change the suffix on the scanner to TAB. This does make it jump a row in excel/notepad, but it functions with bulk checkout so I'm fine with this. It also audits the item twice in bulk audit. Note this is with LF+CR on, when they're both off bulk checkout skips again. image