From 4a8b9e307186cedebc684d9d8df1833a117f9eb9 Mon Sep 17 00:00:00 2001 From: Fedi Rajhi Date: Wed, 12 Nov 2025 13:31:16 +0100 Subject: [PATCH 1/3] feat: Add convertedAmount field to Transaction type --- src/types/onyx/Transaction.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/types/onyx/Transaction.ts b/src/types/onyx/Transaction.ts index bbe5c4b9fcb0..19f0e48b952c 100644 --- a/src/types/onyx/Transaction.ts +++ b/src/types/onyx/Transaction.ts @@ -406,6 +406,9 @@ type Transaction = OnyxCommon.OnyxValueWithOfflineFeedback< /** Selected accountant */ accountant?: Accountant; + /** The Transaction converted amount */ + convertedAmount?: number; + /** The transaction tax amount */ taxAmount?: number; From 13630aed1b50aca75d35889e5a2ec9c5c13f7210 Mon Sep 17 00:00:00 2001 From: Fedi Rajhi Date: Wed, 12 Nov 2025 14:09:38 +0100 Subject: [PATCH 2/3] chore: Add convertedAmount to transaction draft validation --- src/libs/DebugUtils.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libs/DebugUtils.ts b/src/libs/DebugUtils.ts index e4b54580c40d..b3500faf0345 100644 --- a/src/libs/DebugUtils.ts +++ b/src/libs/DebugUtils.ts @@ -1033,6 +1033,7 @@ function validateTransactionDraftProperty(key: keyof Transaction, value: string) attendees: CONST.RED_BRICK_ROAD_PENDING_ACTION, amount: CONST.RED_BRICK_ROAD_PENDING_ACTION, taxAmount: CONST.RED_BRICK_ROAD_PENDING_ACTION, + convertedAmount: CONST.RED_BRICK_ROAD_PENDING_ACTION, taxCode: CONST.RED_BRICK_ROAD_PENDING_ACTION, billable: CONST.RED_BRICK_ROAD_PENDING_ACTION, category: CONST.RED_BRICK_ROAD_PENDING_ACTION, From d4549a9757f6331c287541abac35a8e7fff264d0 Mon Sep 17 00:00:00 2001 From: Fedi Rajhi Date: Wed, 12 Nov 2025 14:42:52 +0100 Subject: [PATCH 3/3] chore: Add convertedAmount validation to transaction draft --- src/libs/DebugUtils.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libs/DebugUtils.ts b/src/libs/DebugUtils.ts index b3500faf0345..1f4d72fe12a9 100644 --- a/src/libs/DebugUtils.ts +++ b/src/libs/DebugUtils.ts @@ -965,6 +965,7 @@ function validateTransactionDraftProperty(key: keyof Transaction, value: string) case 'modifiedAmount': case 'cardID': case 'originalAmount': + case 'convertedAmount': return validateNumber(value); case 'iouRequestType': return validateConstantEnum(value, CONST.IOU.REQUEST_TYPE);