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

[Pricing] BOM pricing calculation fix #9125

Merged
merged 1 commit into from
Feb 21, 2025

Conversation

SchrodingersGat
Copy link
Member

Ignore inactive parts when calculating BOM price.

TBH this is another reason to offload pricing calculations to the plugin architecture. The logic here is getting very convoluted and obtuse.

@SchrodingersGat SchrodingersGat added bug Identifies a bug which needs to be addressed pricing Pricing functionality backport Apply this label to a PR to enable auto-backport action backport-to-0.17.x Backport these changes to the 0.17.x branch labels Feb 21, 2025
@SchrodingersGat SchrodingersGat added this to the 1.0.0 milestone Feb 21, 2025
Copy link

netlify bot commented Feb 21, 2025

Deploy Preview for inventree-web-pui-preview canceled.

Name Link
🔨 Latest commit 203c7aa
🔍 Latest deploy log https://app.netlify.com/sites/inventree-web-pui-preview/deploys/67b84a1bb692160008a69f2e

@SchrodingersGat SchrodingersGat merged commit 6930ae7 into inventree:master Feb 21, 2025
27 checks passed
@SchrodingersGat SchrodingersGat deleted the bom-pricing-fix branch February 21, 2025 09:55
Copy link

codecov bot commented Feb 21, 2025

Codecov Report

Attention: Patch coverage is 50.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 86.04%. Comparing base (ab4eff1) to head (203c7aa).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
src/backend/InvenTree/part/models.py 50.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master    #9125   +/-   ##
=======================================
  Coverage   86.03%   86.04%           
=======================================
  Files        1177     1177           
  Lines       51944    51946    +2     
  Branches     2130     2130           
=======================================
+ Hits        44691    44696    +5     
+ Misses       6709     6706    -3     
  Partials      544      544           
Flag Coverage Δ
backend 88.08% <50.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

github-actions bot pushed a commit that referenced this pull request Feb 21, 2025
(cherry picked from commit 6930ae7)
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
0.17.x

Questions ?

Please refer to the Backport tool documentation and see the Github Action logs for details

SchrodingersGat added a commit that referenced this pull request Feb 21, 2025
(cherry picked from commit 6930ae7)

Co-authored-by: Oliver <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport Apply this label to a PR to enable auto-backport action backport-to-0.17.x Backport these changes to the 0.17.x branch bug Identifies a bug which needs to be addressed pricing Pricing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant