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:
-
Create a new Purchase Invoice.
-
Select Supplier A.
-
Add the item and verify that the rate is fetched correctly.
-
Change the supplier to Supplier B.
-
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?