Skip to content

Use scanner to restock if part exist and order number is new #1428

Description

@kohlerj

Is your feature request related to a problem? Please describe.

Scanner functionality today creates a new part if it does not exist from digikey/mouser tag. If the part exists the part information view is opened.

Describe the solution you'd like

It would be nice if the scanner could be used to restock.

If the part exist and the lot/order number read by the scanner is not in the stock, redirect to the add stock modal with prefilled quantity, description.

If the part exist and the lot/order number exist in the stock, the user just wants information so display the page as it is today.

I vibe-coded this behavior here: https://github.com/kohlerj/Part-DB-server

If there is interest, I can happily rewrite the changes step by step so that they conform with the coding standards.

Describe alternatives you've considered

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions