Master data management Β· features 286-305
πŸ›’οΈ SQL Server Β· MasterDataLabDB
πŸ’±

292Currencies

ISO 4217 currencies. One of them is the base currency that rates are quoted in.

Try it

Money formatting

Symbol + rounding to each currency's decimal_places (JPY and KRW have none)
Base currency: THB
AUD A$1,234,567.89
CNY Β₯1,234,567.89
EUR €1,234,567.89
GBP Β£1,234,567.89
HKD HK$1,234,567.89
JPY Β₯1,234,568
KRW β‚©1,234,568
SGD S$1,234,567.89
THB ΰΈΏ1,234,567.89
USD $1,234,567.89
# Code Name Symbol Decimals Base currency Status
9 AUD Australian Dollar A$ 2 Active ✏️
6 CNY Chinese Yuan Β₯ 2 Active ✏️
3 EUR Euro € 2 Active ✏️
5 GBP Pound Sterling £ 2 Active ✏️
8 HKD Hong Kong Dollar HK$ 2 Active ✏️
4 JPY Japanese Yen Β₯ 0 Active ✏️
10 KRW Korean Won β‚© 0 Active ✏️
7 SGD Singapore Dollar S$ 2 Active ✏️
1 THB Thai Baht ΰΈΏ 2 βœ“ Active ✏️
2 USD US Dollar $ 2 Active ✏️
Showing 1–10 of 10
πŸŽ“ Learn: how this master is built table currency
  • Filtered unique index: CREATE UNIQUE INDEX ... ON currency(base_currency) WHERE base_currency = 1.
  • decimal_places decides rounding: JPY 0, THB 2.
Entity
domain/Currency.java
Repository
repo/CurrencyRepository.java
Definition
MasterRegistry: "currencies"
Page / form
web/MasterController.java
Try-it panel
templates/tools/currency-format.html
REST API
GET /api/masters/currencies
SELECT code, symbol, decimal_places FROM currency WHERE base_currency = 1;