Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/CONST/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5464,6 +5464,7 @@ const CONST = {
AUTOREPORTING_OFFSET: 'autoReportingOffset',
GLOBAL_REIMBURSEMENT_FX_PREFER_COMPANY: 'globalReimbursementFXPreferCompany',
IS_COLLECT_DEPOSIT_ACCOUNTS_ENABLED: 'isCollectDepositAccountsEnabled',
REIMBURSEMENT_COUNTRIES: 'reimbursementCountries',
GENERAL_SETTINGS: 'generalSettings',
TIME_ZONE: 'timeZone',
},
Expand Down
9 changes: 9 additions & 0 deletions src/ROUTES.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3562,6 +3562,15 @@ const ROUTES = {
return `workspaces/${policyID}/workflows/currency-conversion-fees` as const;
},
},
WORKSPACE_WORKFLOWS_REIMBURSEMENT_COUNTRIES: {
route: 'workspaces/:policyID/workflows/reimbursement-countries',
getRoute: (policyID: string | undefined) => {
if (!policyID) {
Log.warn('Invalid policyID is used to build the WORKSPACE_WORKFLOWS_REIMBURSEMENT_COUNTRIES route');
}
return `workspaces/${policyID}/workflows/reimbursement-countries` as const;
},
},
WORKSPACE_WORKFLOWS_AUTOREPORTING_MONTHLY_OFFSET: {
route: 'workspaces/:policyID/workflows/auto-reporting-frequency/monthly-offset',
getRoute: (policyID: string | undefined) => {
Expand Down
1 change: 1 addition & 0 deletions src/SCREENS.ts
Original file line number Diff line number Diff line change
Expand Up @@ -973,6 +973,7 @@ const SCREENS = {
WORKFLOWS_AUTO_REPORTING_WEEKLY_OFFSET: 'Workspace_Workflows_Auto_Reporting_Weekly_Offset',
WORKFLOWS_AUTO_REPORTING_SEMI_MONTHLY_OFFSET: 'Workspace_Workflows_Auto_Reporting_Semi_Monthly_Offset',
WORKFLOWS_CURRENCY_CONVERSION_FEES: 'Workspace_Workflows_Currency_Conversion_Fees',
WORKFLOWS_REIMBURSEMENT_COUNTRIES: 'Workspace_Workflows_Reimbursement_Countries',
DESCRIPTION: 'Workspace_Overview_Description',
SHARE: 'Workspace_Overview_Share',
NAME: 'Workspace_Overview_Name',
Expand Down
1 change: 1 addition & 0 deletions src/languages/de.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3313,6 +3313,7 @@ ${amount} für ${merchant} – ${date}`,
disablePaymentsPrompt: 'Dadurch werden alle Ihre Zahlungseinstellungen entfernt.',
businessBankAccountCountries: 'Länder für Geschäftskonten',
businessBankAccountCountriesDescription: 'Mitarbeitende in diesen Ländern geben lokale Überweisungsdaten an. Alle anderen geben internationale Überweisungsdaten an.',
businessBankAccountCountriesError: 'Die Aktualisierung deiner Erstattungsländer ist fehlgeschlagen. Bitte versuche es erneut.',
customApprovalWorkflowEnabled:
'<muted-text-label>Für diesen Workspace ist ein benutzerdefinierter Genehmigungsworkflow aktiviert. Um diesen Workflow zu überprüfen oder zu ändern, wende dich bitte an deine:n <account-manager-link>Account Manager</account-manager-link> oder an <concierge-link>Concierge</concierge-link>.</muted-text-label>',
customApprovalWorkflowEnabledConciergeOnly:
Expand Down
1 change: 1 addition & 0 deletions src/languages/el.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3380,6 +3380,7 @@ ${amount} για ${merchant} - ${date}`,
disablePaymentsPrompt: 'Αυτό θα αφαιρέσει όλες τις ρυθμίσεις πληρωμής σας.',
businessBankAccountCountries: 'Χώρες επαγγελματικών τραπεζικών λογαριασμών',
businessBankAccountCountriesDescription: 'Οι υπάλληλοι σε αυτές τις χώρες δίνουν στοιχεία για τοπική μεταφορά. Όλοι οι υπόλοιποι δίνουν στοιχεία για διεθνές έμβασμα.',
businessBankAccountCountriesError: 'Η ενημέρωση των χωρών αποζημίωσης απέτυχε. Δοκιμάστε ξανά.',
customApprovalWorkflowEnabled:
'<muted-text-label>Μια προσαρμοσμένη ροή έγκρισης είναι ενεργοποιημένη σε αυτόν τον χώρο εργασίας. Για να ελέγξετε ή να αλλάξετε αυτήν τη ροή, επικοινωνήστε με τον/την <account-manager-link>Account Manager</account-manager-link> σας ή το <concierge-link>Concierge</concierge-link>.</muted-text-label>',
customApprovalWorkflowEnabledConciergeOnly:
Expand Down
1 change: 1 addition & 0 deletions src/languages/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3525,6 +3525,7 @@ const translations = {
disablePaymentsPrompt: 'This will remove all of your payment settings.',
businessBankAccountCountries: 'Business bank account countries',
businessBankAccountCountriesDescription: 'Employees in these countries provide local transfer details. Everyone else provides international wire details.',
businessBankAccountCountriesError: 'Your reimbursement countries update failed. Please try again.',
customApprovalWorkflowEnabled:
'<muted-text-label>A custom approval workflow is enabled on this workspace. To review or change this workflow, please reach out to your <account-manager-link>Account Manager</account-manager-link> or <concierge-link>Concierge</concierge-link>.</muted-text-label>',
customApprovalWorkflowEnabledConciergeOnly:
Expand Down
1 change: 1 addition & 0 deletions src/languages/es.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3286,6 +3286,7 @@ ${amount} para ${merchant} - ${date}`,
businessBankAccountCountries: 'Países con cuenta bancaria de empresa',
businessBankAccountCountriesDescription:
'Los empleados de estos países proporcionan datos de transferencia local. Todos los demás proporcionan datos de transferencia bancaria internacional.',
businessBankAccountCountriesError: 'No se pudieron actualizar tus países de reembolso. Inténtalo de nuevo.',
customApprovalWorkflowEnabled:
'<muted-text-label>Este espacio de trabajo tiene habilitado un flujo de aprobación personalizado. Para revisar o cambiar este flujo de trabajo, comunícate con tu <account-manager-link>Administrador de cuenta</account-manager-link> o <concierge-link>Concierge</concierge-link>.</muted-text-label>',
customApprovalWorkflowEnabledConciergeOnly:
Expand Down
1 change: 1 addition & 0 deletions src/languages/fr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3322,6 +3322,7 @@ ${amount} pour ${merchant} - ${date}`,
businessBankAccountCountries: 'Pays des comptes bancaires professionnels',
businessBankAccountCountriesDescription:
'Les employés de ces pays fournissent des coordonnées de virement local. Tous les autres fournissent des coordonnées de virement international.',
businessBankAccountCountriesError: 'La mise à jour de vos pays de remboursement a échoué. Veuillez réessayer.',
customApprovalWorkflowEnabled:
'<muted-text-label>Un workflow d’approbation personnalisé est activé sur cet espace de travail. Pour examiner ou modifier ce workflow, veuillez contacter votre <account-manager-link>chargé de compte</account-manager-link> ou <concierge-link>Concierge</concierge-link>.</muted-text-label>',
customApprovalWorkflowEnabledConciergeOnly:
Expand Down
1 change: 1 addition & 0 deletions src/languages/it.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3300,6 +3300,7 @@ ${amount} per ${merchant} - ${date}`,
disablePaymentsPrompt: 'Questo rimuoverà tutte le tue impostazioni di pagamento.',
businessBankAccountCountries: 'Paesi del conto bancario aziendale',
businessBankAccountCountriesDescription: 'I dipendenti in questi paesi forniscono i dati per i bonifici locali. Tutti gli altri forniscono i dati per i bonifici internazionali.',
businessBankAccountCountriesError: 'L’aggiornamento dei paesi di rimborso non è riuscito. Riprova.',
customApprovalWorkflowEnabled:
'<muted-text-label>In questo spazio di lavoro è attivato un processo di approvazione personalizzato. Per rivedere o modificare questo processo, contatta il tuo <account-manager-link>Account Manager</account-manager-link> o <concierge-link>Concierge</concierge-link>.</muted-text-label>',
customApprovalWorkflowEnabledConciergeOnly:
Expand Down
1 change: 1 addition & 0 deletions src/languages/ja.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3269,6 +3269,7 @@ ${date} の ${merchant} への ${amount}`,
disablePaymentsPrompt: 'これにより、お支払い設定がすべて削除されます。',
businessBankAccountCountries: 'ビジネス銀行口座の国',
businessBankAccountCountriesDescription: 'これらの国の従業員は現地送金の詳細を入力します。それ以外の方は国際電信送金の詳細を入力します。',
businessBankAccountCountriesError: '精算対象国の更新に失敗しました。もう一度お試しください。',
customApprovalWorkflowEnabled:
'<muted-text-label>このワークスペースではカスタム承認ワークフローが有効になっています。このワークフローを確認または変更するには、<account-manager-link>アカウントマネージャー</account-manager-link>または<concierge-link>Concierge</concierge-link>までご連絡ください。</muted-text-label>',
customApprovalWorkflowEnabledConciergeOnly:
Expand Down
1 change: 1 addition & 0 deletions src/languages/nl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3300,6 +3300,7 @@ ${amount} voor ${merchant} - ${date}`,
disablePaymentsPrompt: 'Hiermee verwijder je al je betaalinstellingen.',
businessBankAccountCountries: 'Landen met zakelijke bankrekeningen',
businessBankAccountCountriesDescription: 'Werknemers in deze landen geven lokale overboekingsgegevens op. Iedereen daarbuiten geeft internationale overschrijvingsgegevens op.',
businessBankAccountCountriesError: 'Het bijwerken van je terugbetalingslanden is mislukt. Probeer het opnieuw.',
customApprovalWorkflowEnabled:
'<muted-text-label>Er is een aangepaste goedkeuringsworkflow ingeschakeld voor deze workspace. Neem contact op met je <account-manager-link>Accountmanager</account-manager-link> of <concierge-link>Concierge</concierge-link> om deze workflow te bekijken of te wijzigen.</muted-text-label>',
customApprovalWorkflowEnabledConciergeOnly:
Expand Down
1 change: 1 addition & 0 deletions src/languages/pl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3339,6 +3339,7 @@ ${amount} dla ${merchant} - ${date}`,
disablePaymentsPrompt: 'To usunie wszystkie twoje ustawienia płatności.',
businessBankAccountCountries: 'Kraje firmowych kont bankowych',
businessBankAccountCountriesDescription: 'Pracownicy w tych krajach podają dane do lokalnego przelewu. Wszyscy pozostali podają dane do międzynarodowego przelewu bankowego.',
businessBankAccountCountriesError: 'Nie udało się zaktualizować krajów zwrotu kosztów. Spróbuj ponownie.',
customApprovalWorkflowEnabled:
'<muted-text-label>W tym obszarze roboczym jest włączony niestandardowy proces zatwierdzania. Aby przejrzeć lub zmienić ten proces, skontaktuj się ze swoim <account-manager-link>opiekunem klienta</account-manager-link> lub z <concierge-link>Concierge</concierge-link>.</muted-text-label>',
customApprovalWorkflowEnabledConciergeOnly:
Expand Down
1 change: 1 addition & 0 deletions src/languages/pt-BR.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3303,6 +3303,7 @@ ${amount} para ${merchant} - ${date}`,
businessBankAccountCountries: 'Países de contas bancárias empresariais',
businessBankAccountCountriesDescription:
'Funcionários nesses países fornecem dados para transferência local. Todos os demais fornecem dados para transferência internacional via wire.',
businessBankAccountCountriesError: 'Não foi possível atualizar seus países de reembolso. Tente novamente.',
customApprovalWorkflowEnabled:
'<muted-text-label>Um fluxo de aprovação personalizado está ativado neste workspace. Para revisar ou alterar esse fluxo de trabalho, entre em contato com o(a) seu(sua) <account-manager-link>Gerente de Conta</account-manager-link> ou com o <concierge-link>Concierge</concierge-link>.</muted-text-label>',
customApprovalWorkflowEnabledConciergeOnly:
Expand Down
1 change: 1 addition & 0 deletions src/languages/zh-hans.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3186,6 +3186,7 @@ ${amount},商户:${merchant} - 日期:${date}`,
disablePaymentsPrompt: '这将删除您的所有付款设置。',
businessBankAccountCountries: '企业银行账户国家',
businessBankAccountCountriesDescription: '这些国家的员工需提供本地转账信息,其他员工需提供国际电汇信息。',
businessBankAccountCountriesError: '报销国家更新失败,请重试。',
customApprovalWorkflowEnabled:
'<muted-text-label>此工作区已启用自定义审批流程。若要查看或更改此流程,请联系您的<account-manager-link>客户经理</account-manager-link>或<concierge-link>Concierge</concierge-link>。</muted-text-label>',
customApprovalWorkflowEnabledConciergeOnly:
Expand Down
8 changes: 8 additions & 0 deletions src/libs/API/parameters/SetReimbursementCountriesParams.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
type SetReimbursementCountriesParams = {
policyID: string;

/** Comma-separated ISO country codes. An empty string removes every country the policy has no withdrawal account in */
countryISOList: string;
};

export default SetReimbursementCountriesParams;
1 change: 1 addition & 0 deletions src/libs/API/parameters/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,7 @@ export type {default as SetWorkspaceAutoHarvestingParams} from './SetWorkspaceAu
export type {default as SetWorkspaceAutoReportingFrequencyParams} from './SetWorkspaceAutoReportingFrequencyParams';
export type {default as SetGlobalReimbursementFXPreferenceParams} from './SetGlobalReimbursementFXPreferenceParams';
export type {default as ToggleCollectDepositAccountsParams} from './ToggleCollectDepositAccountsParams';
export type {default as SetReimbursementCountriesParams} from './SetReimbursementCountriesParams';
export type {default as SetWorkspaceAutoReportingMonthlyOffsetParams} from './SetWorkspaceAutoReportingMonthlyOffsetParams';
export type {default as UpdatePolicyTimezoneParams} from './UpdatePolicyTimezoneParams';
export type {default as SetWorkspaceApprovalModeParams} from './SetWorkspaceApprovalModeParams';
Expand Down
2 changes: 2 additions & 0 deletions src/libs/API/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ const WRITE_COMMANDS = {
SET_WORKSPACE_AUTO_REPORTING_FREQUENCY: 'SetWorkspaceAutoReportingFrequency',
SET_GLOBAL_REIMBURSEMENT_FX_PREFERENCE: 'SetGlobalReimbursementFXPreference',
TOGGLE_COLLECT_DEPOSIT_ACCOUNTS: 'ToggleCollectDepositAccounts',
SET_REIMBURSEMENT_COUNTRIES: 'SetReimbursementCountries',
SET_WORKSPACE_AUTO_REPORTING_MONTHLY_OFFSET: 'SetWorkspaceAutoReportingOffset',
UPDATE_POLICY_TIMEZONE: 'UpdatePolicyTimezone',
SET_WORKSPACE_APPROVAL_MODE: 'SetWorkspaceApprovalMode',
Expand Down Expand Up @@ -1100,6 +1101,7 @@ type WriteCommandParameters = {
[WRITE_COMMANDS.SET_WORKSPACE_AUTO_REPORTING_FREQUENCY]: Parameters.SetWorkspaceAutoReportingFrequencyParams;
[WRITE_COMMANDS.SET_GLOBAL_REIMBURSEMENT_FX_PREFERENCE]: Parameters.SetGlobalReimbursementFXPreferenceParams;
[WRITE_COMMANDS.TOGGLE_COLLECT_DEPOSIT_ACCOUNTS]: Parameters.ToggleCollectDepositAccountsParams;
[WRITE_COMMANDS.SET_REIMBURSEMENT_COUNTRIES]: Parameters.SetReimbursementCountriesParams;
[WRITE_COMMANDS.SET_WORKSPACE_AUTO_REPORTING_MONTHLY_OFFSET]: Parameters.SetWorkspaceAutoReportingMonthlyOffsetParams;
[WRITE_COMMANDS.UPDATE_POLICY_TIMEZONE]: Parameters.UpdatePolicyTimezoneParams;
[WRITE_COMMANDS.SET_WORKSPACE_APPROVAL_MODE]: Parameters.SetWorkspaceApprovalModeParams;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1160,6 +1160,7 @@ const SettingsModalStackNavigator = createModalStackNavigator<SettingsNavigatorP
require<ReactComponentModule>('../../../../pages/workspace/accounting/reconciliation/DynamicReconciliationFeedSelectorPage').default,
[SCREENS.WORKSPACE.WORKFLOWS_AUTO_REPORTING_FREQUENCY]: () => require<ReactComponentModule>('../../../../pages/workspace/workflows/WorkspaceAutoReportingFrequencyPage').default,
[SCREENS.WORKSPACE.WORKFLOWS_CURRENCY_CONVERSION_FEES]: () => require<ReactComponentModule>('../../../../pages/workspace/workflows/WorkspaceWorkflowsCurrencyConversionFeesPage').default,
[SCREENS.WORKSPACE.WORKFLOWS_REIMBURSEMENT_COUNTRIES]: () => require<ReactComponentModule>('../../../../pages/workspace/workflows/WorkspaceReimbursementCountrySelectorPage').default,
[SCREENS.WORKSPACE.WORKFLOWS_AUTO_REPORTING_MONTHLY_OFFSET]: () => require<ReactComponentModule>('../../../../pages/workspace/workflows/WorkspaceAutoReportingMonthlyOffsetPage').default,
[SCREENS.WORKSPACE.WORKFLOWS_AUTO_REPORTING_WEEKLY_OFFSET]: () => require<ReactComponentModule>('../../../../pages/workspace/workflows/WorkspaceAutoReportingWeeklyOffsetPage').default,
[SCREENS.WORKSPACE.WORKFLOWS_AUTO_REPORTING_SEMI_MONTHLY_OFFSET]: () =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ const WORKSPACE_TO_RHP: Partial<Record<keyof WorkspaceSplitNavigatorParamList, s
SCREENS.WORKSPACE.WORKFLOWS_AUTO_REPORTING_WEEKLY_OFFSET,
SCREENS.WORKSPACE.WORKFLOWS_AUTO_REPORTING_SEMI_MONTHLY_OFFSET,
SCREENS.WORKSPACE.WORKFLOWS_CURRENCY_CONVERSION_FEES,
SCREENS.WORKSPACE.WORKFLOWS_REIMBURSEMENT_COUNTRIES,
SCREENS.WORKSPACE.WORKFLOWS_PAYER,
SCREENS.WORKSPACE.RULES_AUTO_APPROVE_REPORTS_UNDER,
SCREENS.WORKSPACE.RULES_RANDOM_REPORT_AUDIT,
Expand Down
3 changes: 3 additions & 0 deletions src/libs/Navigation/linkingConfig/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -920,6 +920,9 @@ const config: LinkingOptions<RootNavigatorParamList>['config'] = {
[SCREENS.WORKSPACE.WORKFLOWS_CURRENCY_CONVERSION_FEES]: {
path: ROUTES.WORKSPACE_WORKFLOWS_CURRENCY_CONVERSION_FEES.route,
},
[SCREENS.WORKSPACE.WORKFLOWS_REIMBURSEMENT_COUNTRIES]: {
path: ROUTES.WORKSPACE_WORKFLOWS_REIMBURSEMENT_COUNTRIES.route,
},
[SCREENS.WORKSPACE.WORKFLOWS_AUTO_REPORTING_MONTHLY_OFFSET]: {
path: ROUTES.WORKSPACE_WORKFLOWS_AUTOREPORTING_MONTHLY_OFFSET.route,
},
Expand Down
3 changes: 3 additions & 0 deletions src/libs/Navigation/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1160,6 +1160,9 @@ type WorkspaceSplitNavigatorParamList = {
[SCREENS.WORKSPACE.WORKFLOWS_CURRENCY_CONVERSION_FEES]: {
policyID: string;
};
[SCREENS.WORKSPACE.WORKFLOWS_REIMBURSEMENT_COUNTRIES]: {
policyID: string;
};
[SCREENS.WORKSPACE.WORKFLOWS_AUTO_REPORTING_MONTHLY_OFFSET]: {
policyID: string;
};
Expand Down
Loading
Loading