diff --git a/src/libs/DebugUtils.ts b/src/libs/DebugUtils.ts index e4b54580c40d..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); @@ -1033,6 +1034,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, diff --git a/src/types/onyx/Transaction.ts b/src/types/onyx/Transaction.ts index 0660e9604e3c..f0cb54f1d373 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;