Skip to content

Currency logic

Overview

Consult supports multiple currencies, each defined with:

  • A tax type and percentage (e.g. VAT, GST)
  • An exchange rate relative to the base currency (marked as primary)

Conversion logic

All currency conversions are calculated relative to the base currency.

For example:

  • If AUD has an exchange rate of 12.00, and the base currency is ZAR, then 1 AUD = 12 ZAR.

Changing the base currency

If you change the base currency:

  • All exchange rates must be manually updated to be accurate relative to the new base.
  • This must be done before the next day, when exchange rates are persisted to the database.

Exchange rate persistence

  • Exchange rates are saved nightly.
  • This ensures historical accuracy for previous transactions (e.g. if AUD was 12.00 yesterday and is 13.00 today, yesterday’s records still use 12.00).