Scan/OCR improvements: Scan New Asset button, fix barcode scanner, serial number OCR search #63
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?
Changes
1. Scan New Asset button
Scan Newbutton after scanning/OCR'ing an existing asset in both barcode and OCR modesresetBarcodeScanner()andresetOcrScanner()functions that cleanly reset to scan-ready stateScan Newbutton to theshowNewAssetForm(asset not found case)2. Barcode scanner fix
TRY_HARDERdecode hint (was too slow on mobile — caused frame-rate decode thrashing)checkZxingLoaded()to detect CDN load failures earlyshowFallbackCameraError()for clear messaging when camera is unavailable3. OCR serial number search
matched_assetsfrom DB cross-referencing (serial_number, connect_id, etc.)displayOcrResult()ignoredmatched_assetswhen machine_id was null✅ Asset found via serial/ID matchwith matched asset details and View Details buttonsFiles modified
static/index.html— frontend SPAVerification
dd4744dpushed to gitea