feat: auto check-in on barcode scan of existing assets

- handleBarcode() now calls autoCheckin() after finding asset via barcode
- showScannedAsset() no longer shows manual checkin card
- Replace 'Check In' button with 'Auto checked in' indicator
- Add CSS for sr-checkin-done span
This commit is contained in:
2026-05-20 17:57:04 -04:00
parent c1020ac702
commit b69bffe44a
3 changed files with 160 additions and 6 deletions
+4 -2
View File
@@ -39,14 +39,16 @@
---
## Feature 4: Building # → trailer number sync
## Feature 4: Building # → trailer number sync ✅ DONE
**Current:** `building_number` and `trailer_number` are separate fields
**Target:** When building_number is entered, auto-populate trailer_number with same value
**Files:**
- `static/index.html` — manual form event listeners, auto-checkin logic
**Change:** Add an `oninput` handler on the building number field that copies the value to trailer number. Also handle the OCR/barcode creation paths if they ever populate building number.
**Change:** Added `oninput` handler on `manBuildingNumber` → copies to `manAddress` (address/trailer combo field) and `locFormBldgNum` → copies to `locFormTrailer`.
**Commit:** 02b3ba6
---