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 3ba590d406f..17cdd2fd872 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 b10b1ae9ae3..41c47147503 100644 --- a/erpnext/setup/doctype/company/company.json +++ b/erpnext/setup/doctype/company/company.json @@ -750,6 +750,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?" @@ -841,7 +842,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", @@ -903,9 +904,10 @@ "select": 1 } ], + "row_format": "Dynamic", "show_name_in_global_search": 1, "sort_field": "creation", "sort_order": "ASC", "states": [], "track_changes": 1 -} \ No newline at end of file +}