diff --git a/src/CONST.ts b/src/CONST.ts index 2e14aa7cf21f..1aeff17bd0d9 100755 --- a/src/CONST.ts +++ b/src/CONST.ts @@ -1681,6 +1681,12 @@ const CONST = { QBO_SYNC_PAYMENTS: 'quickbooksOnlineSyncBillPayments', QBO_IMPORT_TAX_CODES: 'quickbooksOnlineSyncTaxCodes', QBO_CHECK_CONNECTION: 'quickbooksOnlineCheckConnection', + QBO_SYNC_TITLE: 'quickbooksOnlineSyncTitle', + QBO_SYNC_LOAD_DATA: 'quickbooksOnlineSyncLoadData', + QBO_SYNC_APPLY_CATEGORIES: 'quickbooksOnlineSyncApplyCategories', + QBO_SYNC_APPLY_CUSTOMERS: 'quickbooksOnlineSyncApplyCustomers', + QBO_SYNC_APPLY_PEOPLE: 'quickbooksOnlineSyncApplyEmployees', + QBO_SYNC_APPLY_CLASSES_LOCATIONS: 'quickbooksOnlineSyncApplyClassesLocations', JOB_DONE: 'jobDone', }, }, diff --git a/src/languages/en.ts b/src/languages/en.ts index 84f368dd6df7..feeb09c6fa77 100755 --- a/src/languages/en.ts +++ b/src/languages/en.ts @@ -2196,6 +2196,18 @@ export default { return 'Importing your QuickBooks Online data'; case 'startingImport': return 'Importing your QuickBooks Online data'; + case 'quickbooksOnlineSyncTitle': + return 'Synchronizing QuickBooks Online data'; + case 'quickbooksOnlineSyncLoadData': + return 'Loading data'; + case 'quickbooksOnlineSyncApplyCategories': + return 'Updating categories'; + case 'quickbooksOnlineSyncApplyCustomers': + return 'Updating Customers/Projects'; + case 'quickbooksOnlineSyncApplyEmployees': + return 'Updating people list'; + case 'quickbooksOnlineSyncApplyClassesLocations': + return 'Updating report fields'; default: { return `Translation missing for stage: ${stage}`; } diff --git a/src/languages/es.ts b/src/languages/es.ts index f3aedb75690d..224965f130c0 100644 --- a/src/languages/es.ts +++ b/src/languages/es.ts @@ -2191,6 +2191,18 @@ export default { return 'Importando datos desde QuickBooks Online'; case 'startingImport': return 'Importando datos desde QuickBooks Online'; + case 'quickbooksOnlineSyncTitle': + return 'Sincronizando datos desde QuickBooks Online'; + case 'quickbooksOnlineSyncLoadData': + return 'Cargando datos'; + case 'quickbooksOnlineSyncApplyCategories': + return 'Actualizando categorías'; + case 'quickbooksOnlineSyncApplyCustomers': + return 'Actualizando Clientes/Proyectos'; + case 'quickbooksOnlineSyncApplyEmployees': + return 'Actualizando empleados'; + case 'quickbooksOnlineSyncApplyClassesLocations': + return 'Actualizando clases'; default: { return `Translation missing for stage: ${stage}`; } diff --git a/src/pages/workspace/WorkspaceMoreFeaturesPage.tsx b/src/pages/workspace/WorkspaceMoreFeaturesPage.tsx index c3515c393123..d8edc96d3d05 100644 --- a/src/pages/workspace/WorkspaceMoreFeaturesPage.tsx +++ b/src/pages/workspace/WorkspaceMoreFeaturesPage.tsx @@ -102,7 +102,7 @@ function WorkspaceMoreFeaturesPage({policy, route}: WorkspaceMoreFeaturesPagePro titleTranslationKey: 'workspace.moreFeatures.taxes.title', subtitleTranslationKey: 'workspace.moreFeatures.taxes.subtitle', isActive: (policy?.tax?.trackingEnabled ?? false) || isSyncTaxEnabled, - disabled: isSyncTaxEnabled || policy?.connections?.quickbooksOnline.data.country === CONST.COUNTRY.US, + disabled: isSyncTaxEnabled || policy?.connections?.quickbooksOnline?.data?.country === CONST.COUNTRY.US, pendingAction: policy?.pendingFields?.tax, action: (isEnabled: boolean) => { Policy.enablePolicyTaxes(policy?.id ?? '', isEnabled);