mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-03 12:19:12 +00:00
add transaction date call to get_exchange_rate (#10109)
This commit is contained in:
@@ -339,7 +339,8 @@ frappe.ui.form.on('Payment Entry', {
|
|||||||
method: "erpnext.setup.utils.get_exchange_rate",
|
method: "erpnext.setup.utils.get_exchange_rate",
|
||||||
args: {
|
args: {
|
||||||
from_currency: frm.doc.paid_from_account_currency,
|
from_currency: frm.doc.paid_from_account_currency,
|
||||||
to_currency: company_currency
|
to_currency: company_currency,
|
||||||
|
transaction_date: frm.doc.posting_date
|
||||||
},
|
},
|
||||||
callback: function(r, rt) {
|
callback: function(r, rt) {
|
||||||
frm.set_value("source_exchange_rate", r.message);
|
frm.set_value("source_exchange_rate", r.message);
|
||||||
|
|||||||
Reference in New Issue
Block a user