mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-22 03:35:43 +00:00
fix(exchange rate revaluation): add check for gain_loss
(cherry picked from commit e5affb16c7)
This commit is contained in:
@@ -134,7 +134,8 @@ class ExchangeRateRevaluation(Document):
|
|||||||
accounts = self.get_accounts_data()
|
accounts = self.get_accounts_data()
|
||||||
if accounts:
|
if accounts:
|
||||||
for acc in accounts:
|
for acc in accounts:
|
||||||
self.append("accounts", acc)
|
if acc.get("gain_loss"):
|
||||||
|
self.append("accounts", acc)
|
||||||
|
|
||||||
@frappe.whitelist()
|
@frappe.whitelist()
|
||||||
def get_accounts_data(self):
|
def get_accounts_data(self):
|
||||||
|
|||||||
@@ -766,6 +766,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"default": "0",
|
"default": "0",
|
||||||
|
"description": "Upon enabling this, the JV will be submitted for a different exchange rate.",
|
||||||
"fieldname": "submit_err_jv",
|
"fieldname": "submit_err_jv",
|
||||||
"fieldtype": "Check",
|
"fieldtype": "Check",
|
||||||
"label": "Submit ERR Journals?"
|
"label": "Submit ERR Journals?"
|
||||||
@@ -857,7 +858,7 @@
|
|||||||
"image_field": "company_logo",
|
"image_field": "company_logo",
|
||||||
"is_tree": 1,
|
"is_tree": 1,
|
||||||
"links": [],
|
"links": [],
|
||||||
"modified": "2025-01-09 20:12:25.471544",
|
"modified": "2025-08-25 18:34:03.602046",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Setup",
|
"module": "Setup",
|
||||||
"name": "Company",
|
"name": "Company",
|
||||||
@@ -919,6 +920,7 @@
|
|||||||
"select": 1
|
"select": 1
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"row_format": "Dynamic",
|
||||||
"show_name_in_global_search": 1,
|
"show_name_in_global_search": 1,
|
||||||
"sort_field": "modified",
|
"sort_field": "modified",
|
||||||
"sort_order": "ASC",
|
"sort_order": "ASC",
|
||||||
|
|||||||
Reference in New Issue
Block a user