Purchase Invoice Item Rate Not Updating After Changing Supplier

ERPNext Version: [16]

Issue:
I have configured multiple Supplier Rate Contracts for the same item with different suppliers and rates.

Example:

  • Supplier A → Item Rate = 25

  • Supplier B → Item Rate = 20

Steps to Reproduce:

  1. Create a new Purchase Invoice.

  2. Select Supplier A.

  3. Add the item and verify that the rate is fetched correctly.

  4. Change the supplier to Supplier B.

  5. Observe that the item rate remains unchanged instead of updating to Supplier B’s rate.

Expected Behavior:
When the supplier is changed, the item rate should refresh based on the selected supplier’s rate contract or price list.

Actual Behavior:
The existing item row retains the previous supplier’s rate and does not automatically update.

Testing Performed:

  • Verified that Supplier Rate Contracts are active and submitted.

  • Created separate Purchase Invoices for each supplier and confirmed that the correct rate is fetched when the item is added after selecting the supplier.

  • The issue occurs only when the supplier is changed after items have already been added.

Is this the standard ERPNext behavior, or is there a recommended method to automatically refresh item rates when the supplier changes?

@Meet-Tank4

In order to have respective item prices, you need to visit stock setting where item price update check needs to be marked.

Secondly update item price first for suppliers within price list so that it populates on transactional level dynamically.