I have a question about Currency Exchange

When reading reports such as Trial Balance and General Ledger

The report calculates the exchange rate from Currency Exchange, as shown in the image for the line that was comment

There is a question about this code.

Why did he call the convert function instead of assigning the value of the debit_in_account_currency or credit_in_account_currency that exists in GL Entry?

Is there an accounting purpose to do this?

Thank you

1 Like

I will explain my problem that prompted me to examine and reach this result.

I have a General Ledger report showing the total in foreign currency for both the debit and the creditor.
For example
Credit = $10,707
Debit = $12,053

In the Trial Balance report
Credit = $10,747.003
Debit = $12,093.003

The result appears in an increment of $40.003, while in local currency it appears identical.
I did a reassessment of the exchange rates, but I had different results between the reports.

Thank you