Skip to content
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

[WIP] Build order consume #8191

Draft
wants to merge 14 commits into
base: master
Choose a base branch
from

Conversation

SchrodingersGat
Copy link
Member

This is a large(ish) feature branch which allows stock to be consumed by a build order before the build order is complete.

This allows more complex (and useful) workflows, where the build might take some significant time, but the stock is consumed at the start. e.g. a batch of PCBs are loaded, but then require a lot of testing, etc.

Currently, the allocated stock must "languish" in the build order, and this makes tracking of real stock quantities difficult.

Given that this feature might take a while to integrate and test, I am targetting it (for now at least) against 1.0.0. This will not be implemented in the legacy user interface.

TODO

  • Update documenation around new workflows
  • PUI updates
  • Playwright testing
  • Updated unit testing
  • Ensure partial allocation vs partial consumption works well

@SchrodingersGat SchrodingersGat added this to the 1.0.0 milestone Sep 26, 2024
@SchrodingersGat SchrodingersGat marked this pull request as draft September 26, 2024 10:37
Copy link

netlify bot commented Sep 26, 2024

Deploy Preview for inventree-web-pui-preview ready!

Name Link
🔨 Latest commit d559ef8
🔍 Latest deploy log https://app.netlify.com/sites/inventree-web-pui-preview/deploys/67284ba3f3f9b0000897bf5c
😎 Deploy Preview https://deploy-preview-8191--inventree-web-pui-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 100 (no change from production)
Accessibility: 86 (no change from production)
Best Practices: 100 (no change from production)
SEO: 78 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

codecov bot commented Sep 26, 2024

Codecov Report

Attention: Patch coverage is 69.23077% with 8 lines in your changes missing coverage. Please review.

Project coverage is 84.24%. Comparing base (4df42cd) to head (d559ef8).

Files with missing lines Patch % Lines
src/backend/InvenTree/build/api.py 40.00% 3 Missing ⚠️
src/backend/InvenTree/build/models.py 71.42% 2 Missing ⚠️
src/frontend/src/tables/build/BuildLineTable.tsx 0.00% 2 Missing ⚠️
src/frontend/src/tables/ColumnRenderers.tsx 50.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #8191      +/-   ##
==========================================
- Coverage   84.44%   84.24%   -0.21%     
==========================================
  Files        1170     1166       -4     
  Lines       53456    52205    -1251     
  Branches     1999     1828     -171     
==========================================
- Hits        45141    43979    -1162     
+ Misses       7793     7764      -29     
+ Partials      522      462      -60     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@matmair matmair left a comment

Choose a reason for hiding this comment

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

Nice addition!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Build orders feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants