Foreign Currency affects Total Amount in Sales Invoice


We have IDR as base currency, and also have transaction with foreign currency in USD in our company.

Somehow, when this USD transaction occur, the tax for this USD transaction is deducting total amount invoice in USD amount, not IDR. The USD transaction itself already converted into IDR.

Thank you for any suggestion/links