Overview
By default the Point of Sale only knows about products that were loaded when the session opened, so scanning an archived item or one not flagged available-in-POS returns nothing and stalls the cashier. This module catches that miss, queries the database once for the scanned barcode, and merges the matching product into the live session so the scan succeeds. It also looks deeper than the native lookup, checking archived products and the variant barcode field directly, and gracefully handles leading-zero barcodes.
Key Features
- Catches POS barcode scans that the native lookup fails to resolve and retries against the database.
- Fetches the matching product on demand and merges it into the running POS session automatically.
- Finds products that were never loaded into the session, including those not flagged available-in-POS.
- Searches archived products and variants so retired items still ring up correctly.
- Matches against the product variant barcode field directly, not just active variants.
- Normalizes leading-zero barcodes by also trying the stripped numeric form.
- Logs a clear warning when a barcode is genuinely absent from the database, separating missing items from load bugs.