refactor: simplify expression

This expression always evaluates to avalue that is equal to account_currency.
This commit is contained in:
barredterra
2025-10-18 19:55:57 +02:00
parent 63a65838d3
commit 2de88dadd3

View File

@@ -3088,9 +3088,7 @@ def set_balance_in_account_currency(
_("Account: {0} with currency: {1} can not be selected").format(gl_dict.account, account_currency)
)
gl_dict["account_currency"] = (
company_currency if account_currency == company_currency else account_currency
)
gl_dict["account_currency"] = account_currency
# set debit/credit in account currency if not provided
if flt(gl_dict.debit) and not flt(gl_dict.debit_in_account_currency):