snipe / snipe-it

A free open source IT asset/license management system
https://snipeitapp.com
GNU Affero General Public License v3.0
11.2k stars 3.2k forks source link

[Feature Request]: Add minimum Quantity for categories #15647

Open dominik879 opened 1 month ago

dominik879 commented 1 month ago

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

If the minimum quantity for a specific keyboard (1) is reached, but I bought a different model (2), I am still reminded to buy more for this specific model (1). Its the same with mice, headsets. It would be great to say "you need just to have 10 keyboards in your inventory, whatever the model of it is".

Describe the solution you'd like

you can already specify a minimum quantity for individual accessories, for example, so that you receive an email when this is reached. I would also like this for categories, so that I generally need at least 10 keyboards, regardless of the model, and therefore receive a mail if the minimum quantity is reached, so that i have to buy any keyboard.

Describe alternatives you've considered

So far I have added the minimum quantity for all accessories individually, which is not so great as I have 17 different keyboards and like i sayed, if i bought an other model i still get reminded to buy this specific model.

Additional context

No response

welcome[bot] commented 1 month ago

👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

snipe commented 1 month ago

I'm not sure how we'd make that work with the min quantities for asset models. I imagine they could get out of sync, or at least be pretty confusing.

dominik879 commented 1 month ago

I thought that you could build in a logic that scrapes the remaining quantity of each assets in “/categories/{id}” (where id contains the keyboards) from their JSON Responses. If this then falls below the desired quantity in “/categories/{id}”, i.e. 10, then a mail can be generated. Would this possibly be a possibility?