mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-05 22:48:27 +00:00
fix(Timesheet): fetch exchange rate only if currency is set (#30057)
This commit is contained in:
@@ -116,7 +116,7 @@ frappe.ui.form.on("Timesheet", {
|
|||||||
|
|
||||||
currency: function(frm) {
|
currency: function(frm) {
|
||||||
let base_currency = frappe.defaults.get_global_default('currency');
|
let base_currency = frappe.defaults.get_global_default('currency');
|
||||||
if (base_currency != frm.doc.currency) {
|
if (frm.doc.currency && (base_currency != frm.doc.currency)) {
|
||||||
frappe.call({
|
frappe.call({
|
||||||
method: "erpnext.setup.utils.get_exchange_rate",
|
method: "erpnext.setup.utils.get_exchange_rate",
|
||||||
args: {
|
args: {
|
||||||
|
|||||||
Reference in New Issue
Block a user