refactor: only post on base currency for exchange gain/loss
This commit is contained in:
parent
ee2d1fa36e
commit
78bc712756
@ -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),
|
||||
}
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user