Skip to content

Commit

Permalink
fix: transaction exchange rate on GL's for Multi currency Journals
Browse files Browse the repository at this point in the history
(cherry picked from commit 8cd9ad5)
  • Loading branch information
ruthra-kumar authored and mergify[bot] committed Sep 23, 2024
1 parent 250a1c9 commit a7ccc94
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion erpnext/controllers/accounts_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -1036,7 +1036,9 @@ def get_gl_dict(self, args, account_currency=None, item=None):
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"
),
Expand Down

0 comments on commit a7ccc94

Please sign in to comment.