From 3ba6f4006346560c88523aa14c1a7fdfcec5f437 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Tue, 30 Jul 2024 14:52:45 +0530 Subject: [PATCH] fix: price_list_currency not found error (backport #42534) (#42538) fix: price_list_currency not found error (#42534) (cherry picked from commit 23fed831a078055d66b78ef1531ada329bc052d6) Co-authored-by: rohitwaghchaure --- erpnext/public/js/controllers/transaction.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/erpnext/public/js/controllers/transaction.js b/erpnext/public/js/controllers/transaction.js index 6828dc9c7453..bdff0db266c2 100644 --- a/erpnext/public/js/controllers/transaction.js +++ b/erpnext/public/js/controllers/transaction.js @@ -1645,6 +1645,12 @@ erpnext.TransactionController = class TransactionController extends erpnext.taxe apply_price_list(item, reset_plc_conversion) { // We need to reset plc_conversion_rate sometimes because the call to // `erpnext.stock.get_item_details.apply_price_list` is sensitive to its value + + + if (this.frm.doc.doctype === "Material Request") { + return; + } + if (!reset_plc_conversion) { this.frm.set_value("plc_conversion_rate", ""); }