Merge pull request #43331 from ruthra-kumar/incorrect_transaction_currency_val_in_gl_entry

fix: transaction exchange rate on GL's for Multi currency Journals
This commit is contained in:
ruthra kumar
2024-09-23 17:32:00 +05:30
committed by GitHub
2 changed files with 20 additions and 1 deletions

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"
),