Skip to content

Commit

Permalink
fix: Exchange rate reste to 1 on making mapped doc
Browse files Browse the repository at this point in the history
(cherry picked from commit 2a10f09)
  • Loading branch information
deepeshgarg007 authored and mergify[bot] committed May 27, 2022
1 parent f40100d commit 91863c7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion erpnext/public/js/controllers/transaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -1055,7 +1055,11 @@ erpnext.TransactionController = erpnext.taxes_and_totals.extend({
} else {
// company currency and doc currency is same
// this will prevent unnecessary conversion rate triggers
this.frm.set_value("conversion_rate", 1.0);
if(this.frm.doc.currency === this.get_company_currency()) {
this.frm.set_value("conversion_rate", 1.0);
} else {
this.conversion_rate();
}
}
},

Expand Down

0 comments on commit 91863c7

Please sign in to comment.