diff --git a/src/CONST/index.ts b/src/CONST/index.ts index 82724fd7114e6..3163df22c18b8 100755 --- a/src/CONST/index.ts +++ b/src/CONST/index.ts @@ -1361,6 +1361,9 @@ const CONST = { UPDATE_DEFAULT_APPROVER: 'POLICYCHANGELOG_UPDATE_DEFAULT_APPROVER', UPDATE_SUBMITS_TO: 'POLICYCHANGELOG_UPDATE_SUBMITS_TO', UPDATE_FORWARDS_TO: 'POLICYCHANGELOG_UPDATE_FORWARDS_TO', + UPDATE_CUSTOM_TAX_NAME: 'POLICYCHANGELOG_UPDATE_CUSTOM_TAX_NAME', + UPDATE_CURRENCY_DEFAULT_TAX: 'POLICYCHANGELOG_UPDATE_CURRENCY_DEFAULT_TAX', + UPDATE_FOREIGN_CURRENCY_DEFAULT_TAX: 'POLICYCHANGELOG_UPDATE_FOREIGN_CURRENCY_DEFAULT_TAX', UPDATE_MANUAL_APPROVAL_THRESHOLD: 'POLICYCHANGELOG_UPDATE_MANUAL_APPROVAL_THRESHOLD', UPDATE_MAX_EXPENSE_AMOUNT: 'POLICYCHANGELOG_UPDATE_MAX_EXPENSE_AMOUNT', UPDATE_MAX_EXPENSE_AMOUNT_NO_RECEIPT: 'POLICYCHANGELOG_UPDATE_MAX_EXPENSE_AMOUNT_NO_RECEIPT', diff --git a/src/languages/de.ts b/src/languages/de.ts index 42b52f8c47037..5e232c89e5f4f 100644 --- a/src/languages/de.ts +++ b/src/languages/de.ts @@ -189,7 +189,9 @@ import type { UpdatedPolicyCategoryMaxExpenseAmountParams, UpdatedPolicyCategoryNameParams, UpdatedPolicyCategoryParams, + UpdatedPolicyCurrencyDefaultTaxParams, UpdatedPolicyCurrencyParams, + UpdatedPolicyCustomTaxNameParams, UpdatedPolicyCustomUnitRateEnabledParams, UpdatedPolicyCustomUnitRateIndexParams, UpdatedPolicyCustomUnitRateParams, @@ -198,6 +200,7 @@ import type { UpdatedPolicyDescriptionParams, UpdatedPolicyFieldWithNewAndOldValueParams, UpdatedPolicyFieldWithValueParam, + UpdatedPolicyForeignCurrencyDefaultTaxParams, UpdatedPolicyFrequencyParams, UpdatedPolicyManualApprovalThresholdParams, UpdatedPolicyPreventSelfApprovalParams, @@ -6594,6 +6597,10 @@ Fordere Spesendetails wie Belege und Beschreibungen an, lege Limits und Standard } } }, + updateCustomTaxName: ({oldName, newName}: UpdatedPolicyCustomTaxNameParams) => `benutzerdefinierten Steuernamen in „${newName}“ geändert (zuvor „${oldName}“)`, + updateCurrencyDefaultTax: ({oldName, newName}: UpdatedPolicyCurrencyDefaultTaxParams) => `Standard-Steuerbetrag der Workspace-Währung auf „${newName}“ geändert (zuvor „${oldName}“)`, + updateForeignCurrencyDefaultTax: ({oldName, newName}: UpdatedPolicyForeignCurrencyDefaultTaxParams) => + `den Standardsteuersatz für Fremdwährungen in „${newName}“ geändert (zuvor „${oldName}“)`, }, roomMembersPage: { memberNotFound: 'Mitglied nicht gefunden.', diff --git a/src/languages/en.ts b/src/languages/en.ts index 7efa6462efd17..30f4ce56d30bc 100755 --- a/src/languages/en.ts +++ b/src/languages/en.ts @@ -177,7 +177,9 @@ import type { UpdatedPolicyCategoryMaxExpenseAmountParams, UpdatedPolicyCategoryNameParams, UpdatedPolicyCategoryParams, + UpdatedPolicyCurrencyDefaultTaxParams, UpdatedPolicyCurrencyParams, + UpdatedPolicyCustomTaxNameParams, UpdatedPolicyCustomUnitRateEnabledParams, UpdatedPolicyCustomUnitRateIndexParams, UpdatedPolicyCustomUnitRateParams, @@ -186,6 +188,7 @@ import type { UpdatedPolicyDescriptionParams, UpdatedPolicyFieldWithNewAndOldValueParams, UpdatedPolicyFieldWithValueParam, + UpdatedPolicyForeignCurrencyDefaultTaxParams, UpdatedPolicyFrequencyParams, UpdatedPolicyManualApprovalThresholdParams, UpdatedPolicyPreventSelfApprovalParams, @@ -6429,6 +6432,10 @@ const translations = { ? `changed the approval workflow for ${approver} to stop forwarding approved reports (previously forwarded to ${previousForwardsTo})` : `changed the approval workflow for ${approver} to stop forwarding approved reports`, updateReimbursementEnabled: ({enabled}: UpdatedPolicyReimbursementEnabledParams) => `${enabled ? 'enabled' : 'disabled'} reimbursements`, + updateCustomTaxName: ({oldName, newName}: UpdatedPolicyCustomTaxNameParams) => `changed the custom tax name to "${newName}" (previously "${oldName}")`, + updateCurrencyDefaultTax: ({oldName, newName}: UpdatedPolicyCurrencyDefaultTaxParams) => `changed the workspace currency default tax rate to "${newName}" (previously "${oldName}")`, + updateForeignCurrencyDefaultTax: ({oldName, newName}: UpdatedPolicyForeignCurrencyDefaultTaxParams) => + `changed the foreign currency default tax rate to "${newName}" (previously "${oldName}")`, addTax: ({taxName}: UpdatedPolicyTaxParams) => `added the tax "${taxName}"`, deleteTax: ({taxName}: UpdatedPolicyTaxParams) => `removed the tax "${taxName}"`, updateTax: ({oldValue, taxName, updatedField, newValue}: UpdatedPolicyTaxParams) => { diff --git a/src/languages/es.ts b/src/languages/es.ts index 258c1b22faee7..bfde46f0607c6 100644 --- a/src/languages/es.ts +++ b/src/languages/es.ts @@ -6139,6 +6139,9 @@ ${amount} para ${merchant} - ${date}`, previousForwardsTo ? `cambió el flujo de aprobación para ${approver} para dejar de reenviar informes aprobados (anteriormente reenviados a ${previousForwardsTo})` : `cambió el flujo de aprobación para ${approver} para dejar de reenviar informes aprobados`, + updateCustomTaxName: ({oldName, newName}) => `cambió el nombre del impuesto personalizado a "${newName}" (antes "${oldName}")`, + updateCurrencyDefaultTax: ({oldName, newName}) => `cambió la tasa impositiva predeterminada de la moneda del espacio de trabajo a "${newName}" (anteriormente "${oldName}")`, + updateForeignCurrencyDefaultTax: ({oldName, newName}) => `cambió la tasa impositiva predeterminada de la moneda extranjera a "${newName}" (anteriormente "${oldName}")`, addTax: ({taxName}) => `añadió el impuesto "${taxName}"`, deleteTax: ({taxName}) => `eliminó el impuesto "${taxName}"`, updateTax: ({oldValue, taxName, updatedField, newValue}) => { diff --git a/src/languages/fr.ts b/src/languages/fr.ts index b058620693398..9c24f7e9a748c 100644 --- a/src/languages/fr.ts +++ b/src/languages/fr.ts @@ -189,7 +189,9 @@ import type { UpdatedPolicyCategoryMaxExpenseAmountParams, UpdatedPolicyCategoryNameParams, UpdatedPolicyCategoryParams, + UpdatedPolicyCurrencyDefaultTaxParams, UpdatedPolicyCurrencyParams, + UpdatedPolicyCustomTaxNameParams, UpdatedPolicyCustomUnitRateEnabledParams, UpdatedPolicyCustomUnitRateIndexParams, UpdatedPolicyCustomUnitRateParams, @@ -198,6 +200,7 @@ import type { UpdatedPolicyDescriptionParams, UpdatedPolicyFieldWithNewAndOldValueParams, UpdatedPolicyFieldWithValueParam, + UpdatedPolicyForeignCurrencyDefaultTaxParams, UpdatedPolicyFrequencyParams, UpdatedPolicyManualApprovalThresholdParams, UpdatedPolicyPreventSelfApprovalParams, @@ -6605,6 +6608,11 @@ Exigez des informations de dépense comme les reçus et les descriptions, défin previousForwardsTo ? `a modifié le flux d’approbation pour ${approver} afin de ne plus transférer les rapports approuvés (auparavant transférés à ${previousForwardsTo})` : `a modifié le flux d'approbation pour ${approver} afin de ne plus transférer les rapports approuvés`, + updateCustomTaxName: ({oldName, newName}: UpdatedPolicyCustomTaxNameParams) => `a modifié le nom de taxe personnalisé en « ${newName} » (auparavant « ${oldName} »)`, + updateCurrencyDefaultTax: ({oldName, newName}: UpdatedPolicyCurrencyDefaultTaxParams) => + `a modifié le taux de taxe par défaut de la devise de l’espace de travail en « ${newName} » (auparavant « ${oldName} »)`, + updateForeignCurrencyDefaultTax: ({oldName, newName}: UpdatedPolicyForeignCurrencyDefaultTaxParams) => + `a modifié le taux de taxe par défaut en devise étrangère en « ${newName} » (auparavant « ${oldName} »)`, }, roomMembersPage: { memberNotFound: 'Membre introuvable.', diff --git a/src/languages/it.ts b/src/languages/it.ts index 7c0ebe4fb586e..b086a583205fb 100644 --- a/src/languages/it.ts +++ b/src/languages/it.ts @@ -189,7 +189,9 @@ import type { UpdatedPolicyCategoryMaxExpenseAmountParams, UpdatedPolicyCategoryNameParams, UpdatedPolicyCategoryParams, + UpdatedPolicyCurrencyDefaultTaxParams, UpdatedPolicyCurrencyParams, + UpdatedPolicyCustomTaxNameParams, UpdatedPolicyCustomUnitRateEnabledParams, UpdatedPolicyCustomUnitRateIndexParams, UpdatedPolicyCustomUnitRateParams, @@ -198,6 +200,7 @@ import type { UpdatedPolicyDescriptionParams, UpdatedPolicyFieldWithNewAndOldValueParams, UpdatedPolicyFieldWithValueParam, + UpdatedPolicyForeignCurrencyDefaultTaxParams, UpdatedPolicyFrequencyParams, UpdatedPolicyManualApprovalThresholdParams, UpdatedPolicyPreventSelfApprovalParams, @@ -6578,6 +6581,11 @@ Richiedi dettagli di spesa come ricevute e descrizioni, imposta limiti e valori } } }, + updateCustomTaxName: ({oldName, newName}: UpdatedPolicyCustomTaxNameParams) => `ha cambiato il nome dell’imposta personalizzata in "${newName}" (precedentemente "${oldName}")`, + updateCurrencyDefaultTax: ({oldName, newName}: UpdatedPolicyCurrencyDefaultTaxParams) => + `ha modificato l’aliquota fiscale predefinita della valuta dello spazio di lavoro in “${newName}” (in precedenza “${oldName}”)`, + updateForeignCurrencyDefaultTax: ({oldName, newName}: UpdatedPolicyForeignCurrencyDefaultTaxParams) => + `ha modificato l'aliquota fiscale predefinita per valuta estera in "${newName}" (in precedenza "${oldName}")`, }, roomMembersPage: { memberNotFound: 'Membro non trovato.', diff --git a/src/languages/ja.ts b/src/languages/ja.ts index 61bf8fd2357fe..87fff00352283 100644 --- a/src/languages/ja.ts +++ b/src/languages/ja.ts @@ -189,7 +189,9 @@ import type { UpdatedPolicyCategoryMaxExpenseAmountParams, UpdatedPolicyCategoryNameParams, UpdatedPolicyCategoryParams, + UpdatedPolicyCurrencyDefaultTaxParams, UpdatedPolicyCurrencyParams, + UpdatedPolicyCustomTaxNameParams, UpdatedPolicyCustomUnitRateEnabledParams, UpdatedPolicyCustomUnitRateIndexParams, UpdatedPolicyCustomUnitRateParams, @@ -198,6 +200,7 @@ import type { UpdatedPolicyDescriptionParams, UpdatedPolicyFieldWithNewAndOldValueParams, UpdatedPolicyFieldWithValueParam, + UpdatedPolicyForeignCurrencyDefaultTaxParams, UpdatedPolicyFrequencyParams, UpdatedPolicyManualApprovalThresholdParams, UpdatedPolicyPreventSelfApprovalParams, @@ -6524,6 +6527,9 @@ ${reportName} } } }, + updateCustomTaxName: ({oldName, newName}: UpdatedPolicyCustomTaxNameParams) => `カスタム税区分名を「${newName}」(以前は「${oldName}」)に変更しました`, + updateCurrencyDefaultTax: ({oldName, newName}: UpdatedPolicyCurrencyDefaultTaxParams) => `ワークスペースの通貨デフォルト税率を「${newName}」(以前は「${oldName}」)に変更しました`, + updateForeignCurrencyDefaultTax: ({oldName, newName}: UpdatedPolicyForeignCurrencyDefaultTaxParams) => `外貨のデフォルト税率を「${newName}」に変更しました(以前は「${oldName}」)。`, }, roomMembersPage: { memberNotFound: 'メンバーが見つかりません。', diff --git a/src/languages/nl.ts b/src/languages/nl.ts index 7fd58d4d3dae6..41a68243c1267 100644 --- a/src/languages/nl.ts +++ b/src/languages/nl.ts @@ -189,7 +189,9 @@ import type { UpdatedPolicyCategoryMaxExpenseAmountParams, UpdatedPolicyCategoryNameParams, UpdatedPolicyCategoryParams, + UpdatedPolicyCurrencyDefaultTaxParams, UpdatedPolicyCurrencyParams, + UpdatedPolicyCustomTaxNameParams, UpdatedPolicyCustomUnitRateEnabledParams, UpdatedPolicyCustomUnitRateIndexParams, UpdatedPolicyCustomUnitRateParams, @@ -198,6 +200,7 @@ import type { UpdatedPolicyDescriptionParams, UpdatedPolicyFieldWithNewAndOldValueParams, UpdatedPolicyFieldWithValueParam, + UpdatedPolicyForeignCurrencyDefaultTaxParams, UpdatedPolicyFrequencyParams, UpdatedPolicyManualApprovalThresholdParams, UpdatedPolicyPreventSelfApprovalParams, @@ -6565,6 +6568,11 @@ Vraag verplichte uitgavedetails zoals bonnetjes en beschrijvingen, stel limieten previousForwardsTo ? `heeft de goedkeuringsworkflow voor ${approver} gewijzigd zodat goedgekeurde rapporten niet meer worden doorgestuurd (voorheen doorgestuurd naar ${previousForwardsTo})` : `heeft de goedkeuringsworkflow voor ${approver} gewijzigd zodat goedgekeurde rapporten niet meer worden doorgestuurd`, + updateCustomTaxName: ({oldName, newName}: UpdatedPolicyCustomTaxNameParams) => `de aangepaste belastingnaam gewijzigd in "${newName}" (voorheen "${oldName}")`, + updateCurrencyDefaultTax: ({oldName, newName}: UpdatedPolicyCurrencyDefaultTaxParams) => + `heeft het standaardbelastingtarief van de werkruimtevaluta gewijzigd in "${newName}" (voorheen "${oldName}")`, + updateForeignCurrencyDefaultTax: ({oldName, newName}: UpdatedPolicyForeignCurrencyDefaultTaxParams) => + `heeft het standaardbelastingtarief voor vreemde valuta gewijzigd in ‘${newName}’ (voorheen ‘${oldName}’)`, }, roomMembersPage: { memberNotFound: 'Lid niet gevonden.', diff --git a/src/languages/params.ts b/src/languages/params.ts index bf84a7607a88b..96c7743de96f0 100644 --- a/src/languages/params.ts +++ b/src/languages/params.ts @@ -332,6 +332,12 @@ type UpdatedPolicyManualApprovalThresholdParams = {oldLimit: string; newLimit: s type UpdatedPolicyReimbursementEnabledParams = {enabled: boolean}; +type UpdatedPolicyCustomTaxNameParams = {oldName: string; newName: string}; + +type UpdatedPolicyCurrencyDefaultTaxParams = {oldName: string; newName: string}; + +type UpdatedPolicyForeignCurrencyDefaultTaxParams = {oldName: string; newName: string}; + type ExportedToIntegrationParams = {label: string; markedManually?: boolean; inProgress?: boolean; lastModified?: string}; type IntegrationsMessageParams = { @@ -957,6 +963,9 @@ export type { UpdatedPolicyAuditRateParams, UpdatedPolicyManualApprovalThresholdParams, UpdatedPolicyReimbursementEnabledParams, + UpdatedPolicyCustomTaxNameParams, + UpdatedPolicyCurrencyDefaultTaxParams, + UpdatedPolicyForeignCurrencyDefaultTaxParams, UpdatePolicyCustomUnitTaxEnabledParams, UpdatePolicyCustomUnitParams, UpdatedPolicyApprovalRuleParams, diff --git a/src/languages/pl.ts b/src/languages/pl.ts index 2dc6491fd4bfb..60b2c98227039 100644 --- a/src/languages/pl.ts +++ b/src/languages/pl.ts @@ -189,7 +189,9 @@ import type { UpdatedPolicyCategoryMaxExpenseAmountParams, UpdatedPolicyCategoryNameParams, UpdatedPolicyCategoryParams, + UpdatedPolicyCurrencyDefaultTaxParams, UpdatedPolicyCurrencyParams, + UpdatedPolicyCustomTaxNameParams, UpdatedPolicyCustomUnitRateEnabledParams, UpdatedPolicyCustomUnitRateIndexParams, UpdatedPolicyCustomUnitRateParams, @@ -198,6 +200,7 @@ import type { UpdatedPolicyDescriptionParams, UpdatedPolicyFieldWithNewAndOldValueParams, UpdatedPolicyFieldWithValueParam, + UpdatedPolicyForeignCurrencyDefaultTaxParams, UpdatedPolicyFrequencyParams, UpdatedPolicyManualApprovalThresholdParams, UpdatedPolicyPreventSelfApprovalParams, @@ -6554,6 +6557,11 @@ Wymagaj szczegółów wydatków, takich jak paragony i opisy, ustawiaj limity i previousForwardsTo ? `zmieniono proces zatwierdzania dla ${approver}, aby przestać przekazywać zatwierdzone raporty (wcześniej przekazywane do ${previousForwardsTo})` : `zmieniono przepływ zatwierdzania dla ${approver}, aby nie przekazywać dalej zatwierdzonych raportów`, + updateCustomTaxName: ({oldName, newName}: UpdatedPolicyCustomTaxNameParams) => `zmieniono niestandardową nazwę podatku na „${newName}” (poprzednio „${oldName}”)`, + updateCurrencyDefaultTax: ({oldName, newName}: UpdatedPolicyCurrencyDefaultTaxParams) => + `zmienił domyślną stawkę podatku waluty w przestrzeni roboczej na „${newName}” (wcześniej „${oldName}”)`, + updateForeignCurrencyDefaultTax: ({oldName, newName}: UpdatedPolicyForeignCurrencyDefaultTaxParams) => + `zmieniono domyślną stawkę podatku dla obcej waluty na „${newName}” (wcześniej „${oldName}”)`, }, roomMembersPage: { memberNotFound: 'Użytkownik nie został znaleziony.', diff --git a/src/languages/pt-BR.ts b/src/languages/pt-BR.ts index 7177c70be644f..7c2251bf16783 100644 --- a/src/languages/pt-BR.ts +++ b/src/languages/pt-BR.ts @@ -189,7 +189,9 @@ import type { UpdatedPolicyCategoryMaxExpenseAmountParams, UpdatedPolicyCategoryNameParams, UpdatedPolicyCategoryParams, + UpdatedPolicyCurrencyDefaultTaxParams, UpdatedPolicyCurrencyParams, + UpdatedPolicyCustomTaxNameParams, UpdatedPolicyCustomUnitRateEnabledParams, UpdatedPolicyCustomUnitRateIndexParams, UpdatedPolicyCustomUnitRateParams, @@ -198,6 +200,7 @@ import type { UpdatedPolicyDescriptionParams, UpdatedPolicyFieldWithNewAndOldValueParams, UpdatedPolicyFieldWithValueParam, + UpdatedPolicyForeignCurrencyDefaultTaxParams, UpdatedPolicyFrequencyParams, UpdatedPolicyManualApprovalThresholdParams, UpdatedPolicyPreventSelfApprovalParams, @@ -6557,6 +6560,11 @@ Exija detalhes de despesas como recibos e descrições, defina limites e padrõe } } }, + updateCustomTaxName: ({oldName, newName}: UpdatedPolicyCustomTaxNameParams) => `alterou o nome do imposto personalizado para "${newName}" (antes "${oldName}")`, + updateCurrencyDefaultTax: ({oldName, newName}: UpdatedPolicyCurrencyDefaultTaxParams) => + `alterou a taxa de imposto padrão da moeda do workspace para "${newName}" (anteriormente "${oldName}")`, + updateForeignCurrencyDefaultTax: ({oldName, newName}: UpdatedPolicyForeignCurrencyDefaultTaxParams) => + `alterou a alíquota de imposto padrão em moeda estrangeira para "${newName}" (anteriormente "${oldName}")`, }, roomMembersPage: { memberNotFound: 'Membro não encontrado.', diff --git a/src/languages/zh-hans.ts b/src/languages/zh-hans.ts index c25a61cad7f5e..aba59dca33ac4 100644 --- a/src/languages/zh-hans.ts +++ b/src/languages/zh-hans.ts @@ -189,7 +189,9 @@ import type { UpdatedPolicyCategoryMaxExpenseAmountParams, UpdatedPolicyCategoryNameParams, UpdatedPolicyCategoryParams, + UpdatedPolicyCurrencyDefaultTaxParams, UpdatedPolicyCurrencyParams, + UpdatedPolicyCustomTaxNameParams, UpdatedPolicyCustomUnitRateEnabledParams, UpdatedPolicyCustomUnitRateIndexParams, UpdatedPolicyCustomUnitRateParams, @@ -198,6 +200,7 @@ import type { UpdatedPolicyDescriptionParams, UpdatedPolicyFieldWithNewAndOldValueParams, UpdatedPolicyFieldWithValueParam, + UpdatedPolicyForeignCurrencyDefaultTaxParams, UpdatedPolicyFrequencyParams, UpdatedPolicyManualApprovalThresholdParams, UpdatedPolicyPreventSelfApprovalParams, @@ -6420,6 +6423,9 @@ ${reportName} } } }, + updateCustomTaxName: ({oldName, newName}: UpdatedPolicyCustomTaxNameParams) => `将自定义税种名称更改为“${newName}”(之前为“${oldName}”)`, + updateCurrencyDefaultTax: ({oldName, newName}: UpdatedPolicyCurrencyDefaultTaxParams) => `将工作区货币的默认税率更改为“${newName}”(之前为“${oldName}”)`, + updateForeignCurrencyDefaultTax: ({oldName, newName}: UpdatedPolicyForeignCurrencyDefaultTaxParams) => `将外币默认税率更改为“${newName}”(之前为“${oldName}”)`, }, roomMembersPage: { memberNotFound: '未找到成员。', diff --git a/src/libs/ReportActionsUtils.ts b/src/libs/ReportActionsUtils.ts index 60164e4052cca..cd3eefe7c79bb 100644 --- a/src/libs/ReportActionsUtils.ts +++ b/src/libs/ReportActionsUtils.ts @@ -2644,6 +2644,39 @@ function getWorkspaceTaxUpdateMessage(action: ReportAction): string { return getReportActionText(action); } +function getCustomTaxNameUpdateMessage(action: ReportAction): string { + const {oldName = '', newName} = getOriginalMessage(action as ReportAction) ?? {}; + + if (newName) { + // eslint-disable-next-line @typescript-eslint/no-deprecated + return translateLocal('workspaceActions.updateCustomTaxName', {oldName, newName}); + } + + return getReportActionText(action); +} + +function getCurrencyDefaultTaxUpdateMessage(action: ReportAction): string { + const {oldName = '', newName} = getOriginalMessage(action as ReportAction) ?? {}; + + if (newName) { + // eslint-disable-next-line @typescript-eslint/no-deprecated + return translateLocal('workspaceActions.updateCurrencyDefaultTax', {oldName, newName}); + } + + return getReportActionText(action); +} + +function getForeignCurrencyDefaultTaxUpdateMessage(action: ReportAction): string { + const {oldName = '', newName} = getOriginalMessage(action as ReportAction) ?? {}; + + if (newName) { + // eslint-disable-next-line @typescript-eslint/no-deprecated + return translateLocal('workspaceActions.updateForeignCurrencyDefaultTax', {oldName, newName}); + } + + return getReportActionText(action); +} + function getWorkspaceTagUpdateMessage(action: ReportAction | undefined): string { const {tagListName, tagName, enabled, newName, newValue, oldName, oldValue, updatedField, count} = getOriginalMessage(action as ReportAction) ?? {}; @@ -3720,6 +3753,9 @@ export { getWorkspaceReimbursementUpdateMessage, getWorkspaceCurrencyUpdateMessage, getWorkspaceTaxUpdateMessage, + getCustomTaxNameUpdateMessage, + getCurrencyDefaultTaxUpdateMessage, + getForeignCurrencyDefaultTaxUpdateMessage, getWorkspaceFrequencyUpdateMessage, getPolicyChangeLogMaxExpenseAmountNoReceiptMessage, getPolicyChangeLogMaxExpenseAmountMessage, diff --git a/src/libs/SidebarUtils.ts b/src/libs/SidebarUtils.ts index ead6cb601e8ee..c447b38d92636 100644 --- a/src/libs/SidebarUtils.ts +++ b/src/libs/SidebarUtils.ts @@ -31,8 +31,11 @@ import { getAddedConnectionMessage, getCardIssuedMessage, getChangedApproverActionMessage, + getCurrencyDefaultTaxUpdateMessage, + getCustomTaxNameUpdateMessage, getDefaultApproverUpdateMessage, getDeletedApprovalRuleMessage, + getForeignCurrencyDefaultTaxUpdateMessage, getForwardsToUpdateMessage, getIntegrationSyncFailedMessage, getLastVisibleMessage, @@ -874,6 +877,12 @@ function getOptionData({ isActionOfType(lastAction, CONST.REPORT.ACTIONS.TYPE.POLICY_CHANGE_LOG.UPDATE_TAX) ) { result.alternateText = getWorkspaceTaxUpdateMessage(lastAction); + } else if (isActionOfType(lastAction, CONST.REPORT.ACTIONS.TYPE.POLICY_CHANGE_LOG.UPDATE_CUSTOM_TAX_NAME)) { + result.alternateText = getCustomTaxNameUpdateMessage(lastAction); + } else if (isActionOfType(lastAction, CONST.REPORT.ACTIONS.TYPE.POLICY_CHANGE_LOG.UPDATE_CURRENCY_DEFAULT_TAX)) { + result.alternateText = getCurrencyDefaultTaxUpdateMessage(lastAction); + } else if (isActionOfType(lastAction, CONST.REPORT.ACTIONS.TYPE.POLICY_CHANGE_LOG.UPDATE_FOREIGN_CURRENCY_DEFAULT_TAX)) { + result.alternateText = getForeignCurrencyDefaultTaxUpdateMessage(lastAction); } else if (isActionOfType(lastAction, CONST.REPORT.ACTIONS.TYPE.POLICY_CHANGE_LOG.UPDATE_TAG_LIST_NAME)) { result.alternateText = getCleanedTagName(getTagListNameUpdatedMessage(lastAction) ?? ''); } else if (isTagModificationAction(lastAction?.actionName ?? '')) { diff --git a/src/pages/home/report/PureReportActionItem.tsx b/src/pages/home/report/PureReportActionItem.tsx index 3cd043f984296..9a258ba7eb103 100644 --- a/src/pages/home/report/PureReportActionItem.tsx +++ b/src/pages/home/report/PureReportActionItem.tsx @@ -68,10 +68,13 @@ import { getAddedApprovalRuleMessage, getAddedConnectionMessage, getChangedApproverActionMessage, + getCurrencyDefaultTaxUpdateMessage, + getCustomTaxNameUpdateMessage, getDefaultApproverUpdateMessage, getDeletedApprovalRuleMessage, getDemotedFromWorkspaceMessage, getDismissedViolationMessageText, + getForeignCurrencyDefaultTaxUpdateMessage, getForwardsToUpdateMessage, getHarvestCreatedExpenseReportMessage, getIntegrationSyncFailedMessage, @@ -956,6 +959,7 @@ function PureReportActionItem({ } const actionableMentionWhisperOptions = []; + // eslint-disable-next-line @typescript-eslint/no-deprecated const isReportInPolicy = !!report?.policyID && report.policyID !== CONST.POLICY.ID_FAKE && getPersonalPolicy()?.id !== report.policyID; // Show the invite to submit expense button even if one of the mentioned users is a not a policy member @@ -1384,6 +1388,12 @@ function PureReportActionItem({ action.actionName === CONST.REPORT.ACTIONS.TYPE.POLICY_CHANGE_LOG.UPDATE_TAX ) { children = ; + } else if (action.actionName === CONST.REPORT.ACTIONS.TYPE.POLICY_CHANGE_LOG.UPDATE_CUSTOM_TAX_NAME) { + children = ; + } else if (action.actionName === CONST.REPORT.ACTIONS.TYPE.POLICY_CHANGE_LOG.UPDATE_CURRENCY_DEFAULT_TAX) { + children = ; + } else if (action.actionName === CONST.REPORT.ACTIONS.TYPE.POLICY_CHANGE_LOG.UPDATE_FOREIGN_CURRENCY_DEFAULT_TAX) { + children = ; } else if (action.actionName === CONST.REPORT.ACTIONS.TYPE.POLICY_CHANGE_LOG.UPDATE_TAG_LIST_NAME) { children = ; } else if (isTagModificationAction(action.actionName)) {