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

Add add/remove from stock to API

Open cooki371 opened this issue 2 years ago • 1 comments

Is your feature request related to a problem? Please describe. Right now the only way to update the amount in stock of a part is to patch the partLot, as far as I know. I assume this consumes a lot more data than an API call, which triggers the add/remove workflow already implemented for the UI.

Describe the solution you'd like We'd like an additional API call to trigger the withdraw workflow, either with a GET or POST request.

Describe alternatives you've considered Patching the part.

cooki371 avatar Oct 15 '23 08:10 cooki371

For the moment you have to emulate it yourself by patching the partLots. In the future it should be possible to do a proper withdraw/add operation, which also triggers the correct log entries.

jbtronics avatar Oct 15 '23 10:10 jbtronics