refactor: only post on base currency for exchange gain/loss

This commit is contained in:
ruthra kumar 2023-06-27 12:29:02 +05:30
parent ee2d1fa36e
commit 78bc712756

View File

@ -1150,7 +1150,7 @@ class AccountsController(TransactionBase):
"reference_type": self.doctype,
"reference_name": self.name,
"reference_detail_no": d.idx,
reverse_dr_or_cr + "_in_account_currency": abs(d.exchange_gain_loss),
reverse_dr_or_cr + "_in_account_currency": 0,
reverse_dr_or_cr: abs(d.exchange_gain_loss),
}
)