v0.1.19 Patch

Cycle Counts Recognize Bundle Barcodes and Auto-Focus the Scanner

Two small fixes for the cycle-count flow — scanning a pack-bundle UPC during a count now finds the underlying product, and the Add Product modal pulls focus into the input field on open so scanners can shoot a barcode immediately without an extra click.

Two small but operator-visible papercuts on the cycle-count screen at Inventory → Cycle Counts → {count} are gone.

Bundle UPCs now resolve

Many products in the WMS carry pack-bundle variants — a 5-pack, a 10-pack, a case — each with its own barcode stored on product_bundles.pack_upc. Scanning one of those barcodes during a cycle count used to throw Product not found, even though the underlying product was sitting right there in the count.

The lookup now searches all four product-level identifiers (sku, upc, case_sku, case_upc) AND the per-bundle pack_sku / pack_upc columns. This matches the same logic the Quality Control scan already uses, so scanners behave consistently across the warehouse.

Add Product modal auto-focuses on open

Tapping + Add in the Items at this location card opens a modal with a single input field for the SKU/UPC. The input wasn't auto-focused, which meant operators had to click into it before scanning — a small thing, but it broke the rhythm of a count.

The modal now focuses the input the moment it opens. Scanners and keyboard users can start typing immediately.