Part-DB-server icon indicating copy to clipboard operation
Part-DB-server copied to clipboard

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

Open kohlerj opened this issue 5 months ago • 0 comments

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

kohlerj avatar Jun 26 '26 07:06 kohlerj