From b3d46b0fa3202cdf33ca6164beb2729f9ecd04b1 Mon Sep 17 00:00:00 2001 From: Arturo Mantinetti Date: Wed, 8 Apr 2026 01:10:36 -0400 Subject: [PATCH] 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 --- .../settings/data-model/constants/SettingsFieldCurrencyCodes.ts | 1 + packages/twenty-shared/src/constants/CurrencyCode.ts | 1 + packages/twenty-shared/src/constants/CurrencyCodeLabels.ts | 1 + 3 files changed, 3 insertions(+) diff --git a/packages/twenty-front/src/modules/settings/data-model/constants/SettingsFieldCurrencyCodes.ts b/packages/twenty-front/src/modules/settings/data-model/constants/SettingsFieldCurrencyCodes.ts index 960a397b93..87bf1a0eb5 100644 --- a/packages/twenty-front/src/modules/settings/data-model/constants/SettingsFieldCurrencyCodes.ts +++ b/packages/twenty-front/src/modules/settings/data-model/constants/SettingsFieldCurrencyCodes.ts @@ -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 }, diff --git a/packages/twenty-shared/src/constants/CurrencyCode.ts b/packages/twenty-shared/src/constants/CurrencyCode.ts index 48e49d4102..d75dac9d2e 100644 --- a/packages/twenty-shared/src/constants/CurrencyCode.ts +++ b/packages/twenty-shared/src/constants/CurrencyCode.ts @@ -28,6 +28,7 @@ export enum CurrencyCode { CDF = 'CDF', CHF = 'CHF', CLP = 'CLP', + CLF = 'CLF', CNY = 'CNY', COP = 'COP', CRC = 'CRC', diff --git a/packages/twenty-shared/src/constants/CurrencyCodeLabels.ts b/packages/twenty-shared/src/constants/CurrencyCodeLabels.ts index e4558defbc..af78f5ad97 100644 --- a/packages/twenty-shared/src/constants/CurrencyCodeLabels.ts +++ b/packages/twenty-shared/src/constants/CurrencyCodeLabels.ts @@ -30,6 +30,7 @@ export const CURRENCY_CODE_LABELS: Record = { 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' },