mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-24 07:29:22 +00:00
Merge pull request #30502 from dj12djdjs/fix-pe-ex-rate-precision
fix(accounts): payment entry exchange rate precision
This commit is contained in:
@@ -532,7 +532,8 @@ frappe.ui.form.on('Payment Entry', {
|
|||||||
to_currency: to_currency
|
to_currency: to_currency
|
||||||
},
|
},
|
||||||
callback: function(r, rt) {
|
callback: function(r, rt) {
|
||||||
frm.set_value(exchange_rate_field, r.message);
|
const ex_rate = flt(r.message, frm.get_field(exchange_rate_field).get_precision());
|
||||||
|
frm.set_value(exchange_rate_field, ex_rate);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user