Merge pull request #31155 from deepeshgarg007/exchnage_rate_reset

fix: Exchange rate reste to 1 on making mapped doc
This commit is contained in:
Deepesh Garg 2022-05-27 12:17:17 +05:30 committed by GitHub
commit 7adcac4e66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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