Purchase Invoice Total Autoconverts to Base Currency, Making Summary Wrong

I have discovered a bug on version 21.11.81 that was not there before. Purchase invoices denoted in foreign currencies have the “invoice total” column display incorrect values. Please see below for an example.

USD denominated invoices have the correct “invoice total” amount. Note that the top two purchase invoices have invoice total amounts that do not correspond to the invoice amount as seen on the individual purchase invoices.

First purchase invoice in EUR is for 1,420.19. The purchase invoices column says 1,613.86 for invoice total.

Second purchase invoice in MYR is for 3,497.25. The purchase invoices column says 826.77 for invoice total.

Example of USD invoice where invoice amount corresponds with invoice total column on the purchase invoices tab page.

post screenshots of the edit screens for these purchase invoices to understand the issue better.
are you using withholding tax on the invoices? there was a recent change for sales invoices and purchase invoices.

I have found the bug. @lubos can you please take a look at this. When creating an invoice in a currency other than the base currency, manager displays the invoice total in the base currency, converted with the exchange rate on file, without changing the currency symbol. However, the invoice total should not be converted since the total is in a different currency.

Example.

Your base currency is USD.
Create Supplier A with currency EUR.
supplier a

Enter exchange rate as 1 USD = 2 EUR
exchange rate

Create a new invoice for 100 EUR

Invoice total on purchase invoice tab now incorrectly shows invoice total as 50 EUR

This appears to be fixed as of 21.11.87.