Previously, get_or_create_product was only called when auto_add was true, so scan responses with auto_add=false returned no product details. Now the DB lookup always runs when product_info is available; inventory insertion is still conditional on auto_add_to_inventory. Fixes preview-only barcode scans returning empty product fields. |
||
|---|---|---|
| .. | ||
| endpoints | ||
| __init__.py | ||
| routes.py | ||