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:
@@ -1055,7 +1055,11 @@ erpnext.TransactionController = erpnext.taxes_and_totals.extend({
|
|||||||
} else {
|
} else {
|
||||||
// company currency and doc currency is same
|
// company currency and doc currency is same
|
||||||
// this will prevent unnecessary conversion rate triggers
|
// 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();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user