fix: Exchange rate reste to 1 on making mapped doc
This commit is contained in:
parent
935e5b1dcd
commit
2a10f09d8d
@ -944,7 +944,11 @@ erpnext.TransactionController = class TransactionController extends erpnext.taxe
|
|||||||
} 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();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user