Demo

Currency & exchange rates

Multi-currency and FX rates are core. Note the class-name typo CurrencyExchangeRateEnity (missing “t”) — import that exact name.

CurrencyEntity

Table: currency.

  • id: number — primary key
  • currency: string — full name (e.g. US Dollar)
  • symbol: string — e.g. $
  • code: string — ISO code (e.g. USD)
  • decimalPlace: number — display decimals

CurrencyExchangeRateEnity

Table: currency_exchange_rate. Class name is misspelled in core (Enity).

  • id: number — primary key
  • fromCurrencyId / toCurrencyId: number
  • rate: number — conversion rate
  • fromCurrency / toCurrency: CurrencyEntity