Skip to content

"Auto Pricing" overwrites manually entered Purchase Price #10846

@JustusRijke

Description

@JustusRijke

Please verify that this bug has NOT been raised before.

  • I checked and didn't find a similar issue

Describe the bug*

Note: this is more or less a duplicate of #7600, but because that was targeting the previous UI I thought it might be better to raise a new issue.

When modifying the purchase price of a line item of a purchase order, the price entered by the user is overwritten by the Auto Pricing functionality. This leads the user to believe the price has been modified, where in fact it stayed the same.

Steps to Reproduce

  1. Open a purchase order with line items with historical pricing information, e.g. https://demo.inventree.org/web/purchasing/purchase-order/1/line-items
  2. Edit a line item -> modify purchase price -> submit
  3. Purchase price hasn't changed...

Expected behaviour

When modifying the purchase price, the "Auto Pricing" slider should disable automatically.

It'd be nice if, when pressing enter, the form is submitted.

Deployment Method

Other - added info in Steps to Reproduce

Version Information

InvenTree-Version: 1.2.0 dev
Django Version: 5.2.8
Commit Hash: 770f7a2
Commit Date: 2025-11-16
Commit Branch: null
Database: django.db.backends.postgresql
Debug-Mode: False
Deployed using Docker: True
Platform: Linux-5.15.0-100-generic-x86_64-with-glibc2.41
Installer: DOC
Active plugins: false

Try to reproduce on the demo site

I tried to reproduce

Is the bug reproducible on the demo site?

Reproducible

Relevant log output

Metadata

Metadata

Labels

User InterfaceRelated to the frontend / User InterfacebugIdentifies a bug which needs to be addressedpricingPricing functionalityquestionThis is a question

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions