Skip to content

BOM Pricing pie charts for Variants not including Inherited Parts #4159

Closed

Description

@Geekly

Variant BOM Pricing pie chart does not seem to be including inherited parts.

Template part:
image

Variant part:
image

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).

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

Discussed in #4156

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?

Thanks very much.

Activity

  1. added
    bug
    api
    pricing
    on Jan 5, 2023
  2. modified the milestones: 1.0.0, 0.10.0 on Jan 5, 2023
  3. matmair commented on Jan 5, 2023

    @matmair
    Member

    @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.

  4. SchrodingersGat commented on Jan 6, 2023

    @SchrodingersGat
    Member

    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

  5. added
    wontfix
    and removed
    api
    on Jan 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugpricingwontfix

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions