Merge pull request #31157 from frappe/mergify/bp/version-13-hotfix/pr-31155

fix: Exchange rate reste to 1 on making mapped doc (backport #31155)
This commit is contained in:
Deepesh Garg
2022-05-27 12:18:26 +05:30
committed by GitHub

View File

@@ -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();
}
}
},