diff --git a/erpnext/accounts/doctype/exchange_rate_revaluation/exchange_rate_revaluation.py b/erpnext/accounts/doctype/exchange_rate_revaluation/exchange_rate_revaluation.py index c08bd3878d5..2c4e3eb8996 100644 --- a/erpnext/accounts/doctype/exchange_rate_revaluation/exchange_rate_revaluation.py +++ b/erpnext/accounts/doctype/exchange_rate_revaluation/exchange_rate_revaluation.py @@ -134,7 +134,8 @@ class ExchangeRateRevaluation(Document): accounts = self.get_accounts_data() if accounts: for acc in accounts: - self.append("accounts", acc) + if acc.get("gain_loss"): + self.append("accounts", acc) @frappe.whitelist() def get_accounts_data(self): diff --git a/erpnext/setup/doctype/company/company.json b/erpnext/setup/doctype/company/company.json index ae473e15917..8c4f85ff19f 100644 --- a/erpnext/setup/doctype/company/company.json +++ b/erpnext/setup/doctype/company/company.json @@ -766,6 +766,7 @@ }, { "default": "0", + "description": "Upon enabling this, the JV will be submitted for a different exchange rate.", "fieldname": "submit_err_jv", "fieldtype": "Check", "label": "Submit ERR Journals?" @@ -857,7 +858,7 @@ "image_field": "company_logo", "is_tree": 1, "links": [], - "modified": "2025-01-09 20:12:25.471544", + "modified": "2025-08-25 18:34:03.602046", "modified_by": "Administrator", "module": "Setup", "name": "Company", @@ -919,6 +920,7 @@ "select": 1 } ], + "row_format": "Dynamic", "show_name_in_global_search": 1, "sort_field": "modified", "sort_order": "ASC",