You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
BOM Pricing pie charts for Variants not including Inherited Parts #4159
Variant BOM Pricing pie chart does not seem to be including inherited parts.
Template part:
Variant part:
I expected pie chart for the Variant part to also include the inherited parts, but it only appears to include the non-inherited parts. Note that the BOM Pricing is calculated correctly, but the pie chart is not including the inherited parts for display.
Here's the version info for the Inventree installation (via Docker image).
Version Information:
InvenTree-Version: 0.8.4
Django Version: 3.2.15
Commit Hash: ca1fbf9
Commit Date: 2022-10-20
Database: mysql
Debug-Mode: False
Deployed using Docker: True
Originally posted by Geekly January 5, 2023
I'm trying to view pricing for variant BOMs. I'm referring specifically to the pie chart that shows the contribution of each part in a BOM to the total price. The total under Pricing Information seems correct, it's just the pie chart that's incomplete.
Template Part BOM
Part A (Inherited)
Part B
The BOM Pricing pie chart for the Template Part is complete and correct. Both parts show up in the pie chart with prices.
Variant 1 (based on Template Part)
Part A (Inherited)
Part C
The BOM Pricing pie chart for Variant 1 is incomplete. Only the Part C shows up in the pie chart and non of the inherited parts. Obviously we want to see all of the parts.
Does anyone have suggestions about what I could be doing wrong? Is this the right place for this post?
@SchrodingersGat seems like a bug to me. @Geekly thanks for the report; please try to paste the version info the next time. There should be a button to copy those in the modal. I have a script running that automatically scrapes the bug reports to get statics but they only work with text info.
Hey @Geekly the pricing system has received a major overhaul in the latest release (0.9.0) and this issue has been addressed there. I'd suggest that you update to fix this; the changes are significant and not compatible with a backport to 0.8.x
Activity
matmair commentedon Jan 5, 2023
@SchrodingersGat seems like a bug to me.
@Geekly thanks for the report; please try to paste the version info the next time. There should be a button to copy those in the modal. I have a script running that automatically scrapes the bug reports to get statics but they only work with text info.
SchrodingersGat commentedon Jan 6, 2023
Hey @Geekly the pricing system has received a major overhaul in the latest release (
0.9.0) and this issue has been addressed there. I'd suggest that you update to fix this; the changes are significant and not compatible with a backport to 0.8.xSchrodingersGat commentedon Jan 6, 2023
example - https://demo.inventree.org/part/81/?display=pricing