Skip to content

Build consume stock - #4817

Merged
SchrodingersGat merged 17 commits into
inventree:masterfrom
SchrodingersGat:build-consume-stock
May 16, 2023
Merged

SchrodingersGat merged 17 commits into
inventree:masterfrom
SchrodingersGat:build-consume-stock

Conversation

@SchrodingersGat

@SchrodingersGat SchrodingersGat commented May 15, 2023 •

Copy link
Copy Markdown
Member

Closes #3012

Untracked stock items are now "consumed" by a build order, rather than being "deleted" from the database.

TODO

  • Unit testing
  • Documentation

@SchrodingersGat SchrodingersGat added enhancement This is an suggested enhancement or new feature build Build orders labels May 15, 2023
@SchrodingersGat SchrodingersGat added this to the 0.12.0 milestone May 15, 2023

@matmair matmair left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice addition; Does it make sense to update the selection dropdowns with a separate field for consumed items?

Comment thread docs/docs/terminology.md Resolved
Comment thread InvenTree/InvenTree/tasks.py Resolved
Comment thread InvenTree/stock/models.py Resolved
@SchrodingersGat

Copy link
Copy Markdown
Member Author

Nice addition; Does it make sense to update the selection dropdowns with a separate field for consumed items?

Do you mean the filters in the stock tables? Or something else?

@matmair

matmair commented May 15, 2023

Copy link
Copy Markdown
Member

@SchrodingersGat I mean in the select dropdowns of modals.

@SchrodingersGat

Copy link
Copy Markdown
Member Author

I don't think that the user should manually mark the stock items as "consumed by", or have the ability to do this via the front-end modals.

The stock items can always be manually edited in the admin interface

@SchrodingersGat
SchrodingersGat merged commit 397419f into inventree:master May 16, 2023
@SchrodingersGat
SchrodingersGat deleted the build-consume-stock branch May 16, 2023 11:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build Build orders enhancement This is an suggested enhancement or new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FR] Allocate "untracked stock" to build order

2 participants