fix: transaction exchange rate on GL's for Multi currency Journals
This commit is contained in:
@@ -1039,7 +1039,9 @@ class AccountsController(TransactionBase):
|
|||||||
gl_dict.update(
|
gl_dict.update(
|
||||||
{
|
{
|
||||||
"transaction_currency": self.get("currency") or self.company_currency,
|
"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(
|
"debit_in_transaction_currency": self.get_value_in_transaction_currency(
|
||||||
account_currency, gl_dict, "debit"
|
account_currency, gl_dict, "debit"
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user