Skip to content

Commit

Permalink
fix: price_list_currency not found error (#42534)
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitwaghchaure authored Jul 30, 2024
1 parent 0ecfa70 commit 23fed83
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 @@ -1791,6 +1791,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 23fed83

Please sign in to comment.