Currency¶
Use the Currency Rule Type when a field should contain a monetary amount. The rule validates and normalizes the extracted value, applies culture-aware formatting, and optionally strips characters that donβt belong in a currency amount.
When to use¶
- Invoice totals, line-item amounts, taxes, fees, balances, and payments.
- Any field that must be parsed as a number and formatted as currency with consistent separators and decimals.
Open the field configuration¶
See Field Rules (Rules Engine) for how to open the field configuration:
- From the document overlay (supported services), or
- From the Fields panel on the right sidebar.
Configure the Currency rule¶
Core settings:
- Rule Type: Currency
- Default Value: Value to return when nothing is extracted (e.g., Empty Text, 0, or a business default).
- Remove Invalid Characters: When enabled, removes non-numeric and non-currency characters from the extracted value.
Keep it clean
Enabling βRemove Invalid Charactersβ helps eliminate stray labels (e.g., βTotal:β) and whitespace before parsing.
Output Format¶
Define the culture and presentation of the final output.
-
Culture Language Code (optional)
Two-letter language code used for output (e.g.,en
,fr
). -
Culture Country Code (optional)
Two-letter country code used for output (e.g.,US
,ZA
). -
Currency Symbol
The symbol to render with the formatted value (e.g.,$
,β¬
,Β£
,R
).
Leave blank to rely on culture defaults, or set explicitly for consistency. -
Decimal Digits
Number of fraction digits for output (e.g., 2 for cents). -
Decimal Separator
Character used for the decimal separator in output (e.g.,.
,,
). -
Group Separator
Character used for the thousands separator in output (e.g.,,
,).
How culture and overrides interact
Culture provides sensible defaults for symbol and separators.
If you set Symbol/Separators explicitly, those take precedence over culture defaults.
Separator mix-ups
If the output uses .
for decimals but the source uses ,
, parsing may fail or misinterpret values (e.g., 1.234 vs 1,234). Use βAdditional Parsing Formatsβ to accept multiple input styles safely.
Additional Parsing Formats¶
Accept more than one input style while still producing a single, consistent output.
-
Additional Cultures
Add culture codes the parser should accept on input (e.g.,de-DE
,fr-FR
). This allows values like1.234,56 β¬
to be understood even if your output uses a different style. -
Additional Currency Symbols
Add symbol variants the parser should accept on input, mapped by country/context (e.g., acceptZAR
,R
,R
with/without spaces).
Parse wide, format narrow
Accept the common input variations you see (extra cultures/symbols), then standardize output with a single culture and explicit separators. This keeps downstream systems stable.
Examples¶
-
Standardize mixed inputs
- Inputs seen:
β¬1.234,50
,1,234.50 USD
,R 1 234,50
- Additional Cultures:
de-DE
,fr-FR
- Additional Currency Symbols: add
USD
,β¬
,R
- Output Format: Language
en
, CountryUS
, Symbol$
, Decimal Digits2
, Decimal.
Group,
- Result: All values are rendered as
$1,234.50
- Inputs seen:
-
Keep local presentation
- Inputs seen:
1.234,50 β¬
- Output Format: Language
de
, CountryDE
; use culture defaults - Result:
1.234,50 β¬
- Inputs seen:
Suggested reviewer note (HITL)
βVerify the amount and symbol. If separators look wrong, correct thousands/decimal separators before approving.β
HITL triggers (recommended)¶
Trigger review when:
- The value cannot be parsed under any configured culture/symbol.
- The parsed value is negative where only positive amounts are allowed.
- The symbol parsed does not match the expected output or allowed list.
- Decimal digits exceed the configured limit (e.g., > 2).
Testing checklist¶
- [ ] Test typical inputs from each source (e.g.,
1,234.50
,1.234,50
,1 234,50
). - [ ] Verify that removing invalid characters does not remove valid signs or separators.
- [ ] Confirm that the configured culture and separators produce the intended output.
- [ ] Validate edge cases: zero values, negatives (if allowed), and very large numbers.
- [ ] Ensure Additional Cultures/Symbols cover the formats you actually receive.
Troubleshooting¶
-
Amount renders with wrong separators
Check Output Format separators; if input differs, add the input culture under Additional Cultures. -
Symbol is missing or incorrect
Set Currency Symbol explicitly in Output Format.
If input symbols vary, add them to Additional Currency Symbols for parsing. -
Value wonβt parse
Enable βRemove Invalid Charactersβ; ensure the input is covered by Additional Cultures/Symbols; confirm that thousands and decimal separators arenβt conflicting. -
Unexpected decimals (e.g., 3+ fraction digits)
Set Decimal Digits to the required precision; escalate when inputs exceed it.
UI reference¶
-
Overview
-
Output Format
-
Additional Parsing Formats