Skip to content

Special Codes Do Not Switch Modes After First Scan #278

@rabab2k

Description

@rabab2k

Describe the bug
I am using a handheld scanner to move products in Grocy via Barcode Buddy. When using special codes (such as "Purchase", "Consume", etc.), the mode cannot be changed after scanning a special code for the first time. If I scan a new special code, it is displayed in Barcode Buddy, but is either ignored or shown as an unknown product – all subsequently scanned products are still added to the originally selected list (e.g., Purchase).

Steps to reproduce

  1. Scan a special code (e.g., "Purchase").
  2. Scan some products, which are correctly added to the shopping list.
  3. Scan another special code (e.g., "Consume").
  4. Scan additional products.

Expected behavior
After scanning a new special code, Barcode Buddy should correctly switch the mode and assign the following products to the new mode (e.g., Consume). So, in my example, there should then only be one item present.

Actual behavior
The mode remains set to the first selected one (e.g., Purchase), even if a new special code is scanned. All scanned products continue to be added to this list, until the app is restarted.

Additional information

  • Barcode Buddy version: 1.8.1.8
  • Grocy version: 4.5.0
  • Device: Android smartphone, as Docker container and in Home Assistant
  • Hand scanner model: unknown
  • Operating system: Ubuntu
  • Reproducibility: Always

Restarting the app sometimes helps, but is not a practical solution. All updates are installed.


Thank you very much for your support!

Image

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions