From 083402e9a8ca2c6642599d6311ec185bee35bbf1 Mon Sep 17 00:00:00 2001 From: venkat102 Date: Thu, 3 Jul 2025 16:03:21 +0530 Subject: [PATCH] revert: do not convert exchange gain/loss amount to foreign currency (cherry picked from commit c17ae703c7ff9143289c39181f5b4a05b047208b) # Conflicts: # erpnext/accounts/report/general_ledger/test_general_ledger.py --- erpnext/accounts/report/utils.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/erpnext/accounts/report/utils.py b/erpnext/accounts/report/utils.py index f78d95f4160..5d606f648fa 100644 --- a/erpnext/accounts/report/utils.py +++ b/erpnext/accounts/report/utils.py @@ -107,11 +107,7 @@ def convert_to_presentation_currency(gl_entries, currency_info): credit_in_account_currency = flt(entry["credit_in_account_currency"]) account_currency = entry["account_currency"] - if ( - len(account_currencies) == 1 - and account_currency == presentation_currency - and (debit_in_account_currency or credit_in_account_currency) - ): + if len(account_currencies) == 1 and account_currency == presentation_currency: entry["debit"] = debit_in_account_currency entry["credit"] = credit_in_account_currency else: