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

Price range calculation discrepancy (due to no max price for some parts) Calculates correctly in BOM total #8468

Open
Spillygoose opened this issue Nov 12, 2024 · 2 comments
Labels
pricing Pricing functionality question This is a question

Comments

@Spillygoose
Copy link

The price range calculation for a part assembled from other parts (i.e where the price range is gleaned from the bill of materials) is incorrect (could be a setting I am missing...)

The calculated range at the bottom of the bill of materials is correct, but elsewhere the maximum price is incorrect.

I believe this is because the bill of materials is comprised of some parts that have a minimum/maximum price set, and other parts where a minimum price only is set.
Where this is the case it looks like the maximum price is calculated from the parts that have a maximum price set only, rather than using the minimum price for parts who have no max price set.
Again the price range total at the end of the bill of materials is calculated correctly.

As per the image below, the correct price as shown on the BOM should be 1500 min to 2500 max, rather than 1500 to 2000 as shown in the price range.

Image

And below where the second part now has a max price the calculation is correct in both areas.

Image

@SchrodingersGat SchrodingersGat transferred this issue from inventree/inventree-app Nov 12, 2024
@SchrodingersGat SchrodingersGat added pricing Pricing functionality question This is a question labels Nov 12, 2024
@SchrodingersGat
Copy link
Member

@Spillygoose what version of InvenTree are you using? This seems to be working just as expected in latest master version:

Image

@Spillygoose
Copy link
Author

@SchrodingersGat
agh, forgot the basics. still on 1.6.1
Will have it updated soon and recheck.

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pricing Pricing functionality question This is a question
Projects
None yet
Development

No branches or pull requests

2 participants