mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-09 08:02:51 +00:00
[Fix] Exchange rate revaluation, get entries not working if accounts of the other currency than company currency not available (#16379)
This commit is contained in:
committed by
Rushabh Mehta
parent
5c86cf54a2
commit
ba54209c86
@@ -39,6 +39,8 @@ frappe.ui.form.on('Exchange Rate Revaluation', {
|
||||
});
|
||||
frm.events.get_total_gain_loss(frm);
|
||||
refresh_field("accounts");
|
||||
} else {
|
||||
frappe.msgprint(__("No records found"));
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
@@ -67,6 +67,8 @@ class ExchangeRateRevaluation(Document):
|
||||
and account_currency != %s
|
||||
order by name""",(self.company, company_currency))
|
||||
|
||||
account_details = []
|
||||
if accounts:
|
||||
account_details = frappe.db.sql("""
|
||||
select
|
||||
account, party_type, party, account_currency,
|
||||
|
||||
Reference in New Issue
Block a user