Skip to content

Supplier Part "Unit Price" is not propagated to Part's "Part Pricing" or other BoM line items, after Pack Quantity change #12285

Closed

Description

@Carabela-del-Cielo

Please verify that this bug has NOT been raised before.

  • I checked and didn't find a similar issue

Describe the bug*

Supplier Part's "Unit Price" is not being utilized by the purchasable part's Part Pricing, nor by BoM line items. This occurs if Pack Quantity is not entered on Supplier Part creation, and the part is added to a BoM - and subsequently Pack Quantity is updated.

It MIGHT occur on any Pack Quantity update but I have not tested that specifically.

The relevant 'refresh data' buttons can be clicked throughout the Steps to Reproduce without fixing the behavior.

Image

Steps to Reproduce

  1. Create a Purchasable part ("PartP")

  2. In PartP's Suppliers tab, add Manufacturer

  3. Add Supplier for the Manufacturer Part just created. do NOT set Pack Quantity now.

  4. Follow into the Supplier Part Details for the supplier part, and into Supplier Pricing

  5. Add 'price break' and enter a supplier price - say $50

  6. Create a new Assembly part ("PartA")

  7. Add PartP into PartA's BoM, any quantity - note price is $50 x qty selected

  8. Edit PartP: Go back into PartP's "Supplier Part" -> Supplier Part Actions (three vertical dots at top right) -> Edit

  9. Fill out Pack Quantity; say 100. If you look in the Supplier Pricing tab here, "Unit Price" is correctly shown at $0.5

  10. Go back to PartP, open up Part Pricing tab
    First bug is here - Part Pricing reflects the pack price ($50 as entered), and NOT the Unit Price

  11. Now go back to PartA, and open the BoM.
    Second bug: Note that the PartP line item's Total Price still shows $50 x qty selected, and is also NOT reflecting Unit Price

Expected behaviour

Part Pricing in the purchasable Part, as well as BoM line items, ought to be updating from Unit Price from the Supplier Part after its Pack Quantity is changed.

Deployment Method

No response

Version Information

InvenTree-Version: 1.4.0
Django Version: 5.2.15
Commit Hash: 0a9a8b1
Commit Date: 2026-06-24
Commit Branch: null
Database: django.db.backends.postgresql
Debug-Mode: False
Deployed using Docker: True
Platform: Linux-7.0.12-201.fc44.x86_64-x86_64-with-glibc2.41
Installer: DOC
Active plugins: [{"name":"InvenTreeBarcode","slug":"inventreebarcode","version":"2.2.0"},{"name":"Auto Create Builds","slug":"autocreatebuilds","version":"1.1.0"},{"name":"Auto Issue Orders","slug":"autoiissueorders","version":"1.0.0"},{"name":"BOM Exporter","slug":"bom-exporter","version":"1.1.0"},{"name":"InvenTree Exporter","slug":"inventree-exporter","version":"1.0.0"},{"name":"Parameter Exporter","slug":"parameter-exporter","version":"2.0.0"},{"name":"InvenTreeEmailNotifications","slug":"inventree-email-notification","version":"1.0.0"},{"name":"InvenTreeUINotifications","slug":"inventree-ui-notification","version":"1.0.0"},{"name":"InvenTreeCurrencyExchange","slug":"inventreecurrencyexchange","version":"1.0.0"},{"name":"InvenTreeMachines","slug":"inventree-machines","version":"1.0.0"},{"name":"PartNotificationsPlugin","slug":"partnotificationsplugin","version":"1.0.0"},{"name":"InvenTreeLabel","slug":"inventreelabel","version":"1.1.0"},{"name":"InvenTreeLabelMachine","slug":"inventreelabelmachine","version":"1.0.0"},{"name":"DigiKeyBarcodePlugin","slug":"digikeyplugin","version":"1.0.1"},{"name":"MouserBarcodePlugin","slug":"mouserplugin","version":"1.0.1"},{"name":"RMA Automation","slug":"rma-automation","version":"0.2.2"},{"name":"KiCadLibraryPlugin","slug":"kicad-library-plugin","version":"2.0.4"},{"name":"SmartParts","slug":"smartparts","version":"1.1.0"}]

Try to reproduce on the demo site

I tried to reproduce

Is the bug reproducible on the demo site?

Reproducible

Relevant log output

Activity

  1. added
    bug
    question
    triage:not-checked
    on Jun 30, 2026
  2. added
    pricing
    on Jul 9, 2026
  3. SchrodingersGat commented on Jul 9, 2026

    @SchrodingersGat
    Member

    The pricing settings are quite complex and I think that this may be related to how your pricing settings are configured. Please refer to the docs around pricing and check your pricing configuration

  4. Carabela-del-Cielo commented on Jul 9, 2026

    @Carabela-del-Cielo
    Author

    Hmm. That doesn't really sound right. A BOM line item should not be giving the full pack price for every part it contains, or I should be able to update BOM pricing somehow.

    As noted I'd verified this on the demo server. When entering Pack Quantity during part creation, the BOM prices appear CORRECTLY. I've verified on version 1.4.1, if you change Pack Quantity after the item is added to a BOM, the Unit Price does NOT get propagated to the Part Pricing. If there's a way to get it to refresh this data, i haven't found it yet.

    From Pricing docs:
    "If automated pricing updates are enabled, the pricing data updated automatically, and will generally be up-to-date without user interaction."
    -I have that setting ON, and the price is not getting updated.

    "The user can also manually refresh the pricing calculations manually, by pressing the "Refresh" button in the overview section."
    -I've done that multiple times on multiple pages (Supplier Part, Part, etc.), and the original pack size price remains.

    Below are settings I have which I think might be relevant, but regardless - none of them ought to be causing this issue. Some of the docs are a little unclear and images are from older versions, so it's possible I'm missing something, but it's certainly not obvious what. I'll be happy to try to update those as I learn more about InvenTree, but for now I'm going to gently push back and say that I don't think this is related to settings, nor should the behavior be affected by it (from what I can tell by the settings. Perhaps Auto Update Pricing would stop it from regenerating right away - but then 'refresh' somewhere in the chain ought to fix it, i would think).

    Internal Prices - OFF
    Internal Price Override - OFF

    Auto Update Pricing - ON
    Use Supplier Pricing - ON

    Use Stock Item Pricing - ON
    Use Variant Pricing - ON

    Currency Update Plugin - InvenTree Currency Exchange

    Image
  5. removed
    triage:not-checked
    on Jul 31, 2026
  6. added this to the 1.5.0 milestone on Jul 31, 2026
  7. modified the milestones: 1.5.0, 1.6.0 on Aug 10, 2026
  8. added a commit that references this issue on Aug 20, 2026
    be9faff
  9. added a commit that references this issue on Aug 21, 2026
    0ed2c29
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

    bugpricingquestion

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions