Add 2D barcode scanning for serial number stickers #50
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What: Serial number stickers on vending machines often have 2D barcodes (QR codes, DataMatrix) in addition to 1D barcodes. The ZXing scanner was restricted to 1D-only formats.
Changes:
_barcodeHints()so all common 2D formats are scannedGET /api/assets/searchto also match byconnect_idcolumn — so scanning a full Connect ID likeVM-05912-0000068454finds the asset directlyTesting done:
VM-05064-0000099387→ returns asset99387→ still worksFiles changed:
static/index.html,server.py,static/sw.js