Skip to content

Commit

Permalink
fix: price_list_currency not found error (backport #42534) (#42538)
Browse files Browse the repository at this point in the history
fix: price_list_currency not found error (#42534)

(cherry picked from commit 23fed83)

Co-authored-by: rohitwaghchaure <rohitw1991@gmail.com>
  • Loading branch information
mergify[bot] and rohitwaghchaure authored Jul 30, 2024
1 parent 8e8d0c7 commit 3ba6f40
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions erpnext/public/js/controllers/transaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -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", "");
}
Expand Down

0 comments on commit 3ba6f40

Please sign in to comment.