Add cartidge/consumable restock target value #9687
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add a stock target value for consumables and cartridges.
The alarm threshold is the lowest amount desired to have in stock before ordering more but previously there was no way to track how much we want in stock. Ordering just one or two at a time to go back over the threshold could mean a lot of small orders instead of fewer larger ones. There could be a lot of consumables in inventory and the stock target may not always be known by the person doing the ordering. Previously, only the remaining stock was known in the notification email and not the alarm threshold.
Example:
I have 10' HDMI cables in stock. I want to keep 20 in stock but don't want to order another batch until I only have 5 left.
The stock target of 20 is a "soft" upper limit.
I added the
stock_target
andto_order
tags to the alarm notifications to know the target stock level and the amount to order right from the notification. If the stock target is 0 (default), the amount to order will be the amount needed to go one over the alarm threshold.