fix: transaction exchange rate on GL's for Multi currency Journals

This commit is contained in:
ruthra kumar
2024-09-23 14:37:12 +05:30
parent fdd62f7400
commit 8cd9ad5361

View File

@@ -1039,7 +1039,9 @@ class AccountsController(TransactionBase):
gl_dict.update(
{
"transaction_currency": self.get("currency") or self.company_currency,
"transaction_exchange_rate": self.get("conversion_rate", 1),
"transaction_exchange_rate": item.get("exchange_rate", 1)
if self.doctype == "Journal Entry" and item
else self.get("conversion_rate", 1),
"debit_in_transaction_currency": self.get_value_in_transaction_currency(
account_currency, gl_dict, "debit"
),