-
-
Notifications
You must be signed in to change notification settings - Fork 827
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unsuitable/Damaged stock items are included when allocating stock items #4253
Comments
Stock states are only there as a piece of information. They do not impact business logic. It would be easy to change that - we should be careful though as it could break existing instances. |
I think this issue would be solved better by a "general purpose" solution which also addresses #4253 With the ability to define custom stock status codes, the user can define which codes are considered "in active stock" |
@matmair That makes sense. Breaking existing usage of the status field could be avoided by displaying the stock status in the drop-down menu so the user can (manually) avoid selecting stock items with an unsuitable status. For auto-allocate, a different solution will be needed, if the user has used status as a way to differentiate stock items. @SchrodingersGat A custom stock status (with the ability to mark as active stock) sounds like a good idea too and it would probably solve most of the above issues. |
Closing this issue as a duplicate of #4289 |
Please verify that this bug has NOT been raised before.
Describe the bug*
When allocating stock items for a build order, it seems "unsuitable" stock items are included in the available stock.
Stock items with a status listed as "Damaged", "Atten. Needed etc." should probably not be possible to allocate.
Is this behavior intentional? It does not seem like a good idea to allow allocation of "Invalid" stock items, unless the user is aware of this.
Steps to Reproduce
Expected behavior
Invalid stock items (Damaged, Attn. Needed) should not be possible to allocate. Alternatively, we should have a way to allow this.
Another alternative could be to display the stock item status when allocating the item:
Deployment Method
Version Information
Version Information:
InvenTree-Version: 0.10.0 dev
Django Version: 3.2.16
Commit Hash: fb34409
Commit Date: 2022-12-19
Database: postgresql
Debug-Mode: False
Deployed using Docker: True
Active plugins: False
Relevant log output
No response
The text was updated successfully, but these errors were encountered: