Currency formatting with per-row currency codes
Currency columns format amounts using a fixed ISO 4217 code or a code read from another field in the same row. Accounting sign display and code/symbol/name display are supported. Mixed-currency data is never silently totalled as if it were one currency.
Planned. This page shows the specification from issue #204. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
30 expense rows in mixed currencies, with a footer total.
Expected behavior
JPY shows 0 decimals and BHD shows 3. With per-row currencies, the footer shows a total for each currency instead of one mixed sum.
Planned API surface
column.type='currency'column.currencycolumn.currencyFieldcurrencyDisplaycurrencySignaggregation guardAcceptance criteria
- Minor-unit digits follow ISO 4217 defaults unless they are overridden. (pending)
- Accounting mode shows negative amounts in parentheses where the locale supports it. (pending)
- Aggregating more than one currency groups the totals by code. (pending)
- An invalid currency code renders the raw number and emits a warning. (pending)