feat: Add support for CLF currency code (#19420)
## Summary This PR adds support for the **CLF (Unidad de Fomento)** currency code across the application. ## Changes - Added `CLF` to the supported currency list - Updated validation logic to recognize CLF as a valid currency - Adjusted formatting and handling where applicable ## Motivation CLF is a widely used unit of account in Chile, commonly used for financial operations such as real estate, contracts, and indexed payments. Supporting CLF improves localization and enables better adoption of Twenty CRM in the Chilean market. ## Files Modified - Updated 3 files to integrate CLF support (currency configuration, validation, and related logic) ## Testing - Verified that CLF can be selected and processed correctly - Confirmed no regression in existing currency behavior
This commit is contained in:
committed by
GitHub
parent
a8085db5fd
commit
b3d46b0fa3
+1
@@ -98,6 +98,7 @@ export const SETTINGS_FIELD_CURRENCY_CODES: Record<
|
||||
CDF: { label: CURRENCY_CODE_LABELS.CDF.label, Icon: IconCoins },
|
||||
CHF: { label: CURRENCY_CODE_LABELS.CHF.label, Icon: IconCurrencyFrank },
|
||||
CLP: { label: CURRENCY_CODE_LABELS.CLP.label, Icon: IconCoins },
|
||||
CLF: { label: CURRENCY_CODE_LABELS.CLF.label, Icon: IconCoins },
|
||||
CNY: { label: CURRENCY_CODE_LABELS.CNY.label, Icon: IconCurrencyYuan },
|
||||
COP: { label: CURRENCY_CODE_LABELS.COP.label, Icon: IconCoins },
|
||||
CRC: { label: CURRENCY_CODE_LABELS.CRC.label, Icon: IconCoins },
|
||||
|
||||
@@ -28,6 +28,7 @@ export enum CurrencyCode {
|
||||
CDF = 'CDF',
|
||||
CHF = 'CHF',
|
||||
CLP = 'CLP',
|
||||
CLF = 'CLF',
|
||||
CNY = 'CNY',
|
||||
COP = 'COP',
|
||||
CRC = 'CRC',
|
||||
|
||||
@@ -30,6 +30,7 @@ export const CURRENCY_CODE_LABELS: Record<CurrencyCode, { label: string }> = {
|
||||
CDF: { label: 'Congolese franc' },
|
||||
CHF: { label: 'Swiss franc' },
|
||||
CLP: { label: 'Chilean peso' },
|
||||
CLF: { label: 'Unidad de Fomento' },
|
||||
CNY: { label: 'Chinese yuan' },
|
||||
COP: { label: 'Colombian peso' },
|
||||
CRC: { label: 'Costa Rican colon' },
|
||||
|
||||
Reference in New Issue
Block a user