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
  • Loading branch information
deepeshgarg007 committed May 27, 2022
1 parent 935e5b1 commit 2a10f09
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 @@ -944,7 +944,11 @@ erpnext.TransactionController = class TransactionController extends erpnext.taxe
} 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 2a10f09

Please sign in to comment.