StableField type
Currency
Overview
Stores monetary values and displays them in the app's currency and locale.
Purpose
Prices, totals, deposits, invoice amounts. KPIs can sum and average them; tables and detail views show them formatted (for example $1,250.50 or 1 250,50 €).
Inputs
- Fits the Currency input (its Currency code is a display hint). Validation: Minimum / Maximum value.
Configuration
- Options on every editable field: Required, Unique (no duplicates) (checked case-insensitively against existing records), Description (shown to teammates and the AI), a default value and a custom validation message that replaces the standard one.
- The currency symbol comes from the app settings — every Currency field uses the same one.
- Recommended: when you support several currencies, add a separate Single select field for the currency code (USD, EUR, MAD…) and keep the amount here.
Outputs
- Stored as a plain number rounded to 2 decimals, for example
1250.5. Displayed with the currency from Settings → General (currency) and the locale.
Example
Invoice total
Example
Field: Total · Type: Currency · Minimum value: 0 Example value: 1250.50 → shown as $1,250.50 (en-US / USD)
Errors
- “Total must be a number” — typed text with letters.
- “Total must be at least 0”.
Limitations
- No per-field currency; conversions are not performed.
- Amounts are stored with cents precision only.
- An empty value is stored as empty (null); a Required field rejects it with “<Label> is required”.
Advanced
- Stored like Decimal; formatted with
Intl.NumberFormat(locale, { style: "currency", currency: settings.currency }). CSV export writes the raw number.