mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-27 00:44:45 +00:00
fix: corrected the pricing rule taking the wrong value (#54894)
(cherry picked from commit 06477119d1)
Co-authored-by: Jatin3128 <140256508+Jatin3128@users.noreply.github.com>
This commit is contained in:
@@ -2266,6 +2266,8 @@ erpnext.TransactionController = class TransactionController extends erpnext.taxe
|
||||
for (const [key, value] of Object.entries(child)) {
|
||||
if (!["doctype", "name"].includes(key)) {
|
||||
if (key === "price_list_rate") {
|
||||
const doc = frappe.get_doc(child.doctype, child.name);
|
||||
if (doc) doc.price_list_rate = value; // silent update so rate trigger uses correct value
|
||||
frappe.model.set_value(child.doctype, child.name, "rate", value);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user