Merge pull request #49306 from aerele/exchange-rate-revaluation-check-gain-loss

fix(exchange rate revaluation): add check for gain_loss
This commit is contained in:
ruthra kumar
2025-09-02 13:33:55 +05:30
committed by GitHub
2 changed files with 6 additions and 3 deletions

View File

@@ -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):

View File

@@ -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
}
}