mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-16 08:05:00 +00:00
fix(exchange rate revaluation): add check for gain_loss
This commit is contained in:
@@ -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):
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user