diff --git a/src/languages/en.ts b/src/languages/en.ts index 61c07d59f91a..3ed590a4fe0c 100755 --- a/src/languages/en.ts +++ b/src/languages/en.ts @@ -1938,10 +1938,11 @@ export default { customersDescription: 'Choose whether to import customers/projects and see where customers/projects are displayed.', locationsDescription: 'Choose whether to import locations, and see where locations are displayed.', taxesDescription: 'Choose whether to import tax rates and tax defaults from your accounting integration.', + locationsAdditionalDescription: `QuickBooks Online does not support adding a location to vendor bills or checks. Update your export preference to journal entry if you'd like to import locations as tags.`, + outOfPocketLocationEnabledDescription: + 'Note: QuickBooks Online does not support a field for locations on vendor bill or check exports. As you have locations enabled on your workspace, this export option is unavailable.', taxesJournalEntrySwitchNote: 'Note: QuickBooks Online does not support a field for tax on Journal Entry exports. Change your export preference to Vendor Bill or Check to import taxes.', - locationsAdditionalDescription: - 'Locations are imported as Tags. This limits exporting expense reports as Vendor Bills or Checks to QuickBooks Online. To unlock these export options, either disable Locations import or upgrade to the Control Plan to export Locations encoded as a Report Field.', export: 'Export', exportAs: 'Export as', exportDescription: 'Configure how data in Expensify gets exported to QuickBooks Online.', @@ -1993,13 +1994,11 @@ export default { bankAccountDescription: 'This is your chosen bank account to write checks from.', optionBelow: 'Choose an option below:', companyCardsLocationEnabledDescription: - 'Note: QuickBooks Online does not support a field for Locations as Tags on Vendor Bills exports. As you import Locations from, this this export option is unavailable.', + 'Note: QuickBooks Online does not support a field for locations on vendor bill exports. As you have locations enabled on your workspace, this export option is unavailable.', outOfPocketTaxEnabledDescription: "Note: QuickBooks Online doesn't support a field for tax on Journal Entry exports. Because you have tax tracking enabled on your workspace, this export option is unavailable.", outOfPocketTaxEnabledError: 'Journal entry is not available when taxes enabled. please select a different export option.', outOfPocketLocationEnabledError: 'Vendor Bills are not available when locations are enabled. Please select a different export option.', - outOfPocketLocationEnabledDescription: - 'Note: QuickBooks Online does not support a field for Locations as Tags on Vendor Bills exports. As you import Locations as Tags, this export option is unavailable.', advancedConfig: { advanced: 'Advanced', autoSync: 'Auto-sync', diff --git a/src/languages/es.ts b/src/languages/es.ts index 0181e04cd4c0..8e1827647abb 100644 --- a/src/languages/es.ts +++ b/src/languages/es.ts @@ -1965,7 +1965,7 @@ export default { taxesJournalEntrySwitchNote: 'Nota: QuickBooks Online no admite un campo para impuestos al exportar entradas en el libro diario. Cambia tu preferencia de exportación a Factura de Proveedor o Cheque para importar impuestos.', locationsAdditionalDescription: - 'Los lugares son importados como Etiquegas. Esto limita a exportar los informes de gastos como Factura del Proveedor o Cheques a Quicbooks Online. Para desbloquear estas opciones de exportación desactiva la importación de Lugares o cambia al Plan Control para exportar Lugares como Campos de Informes.', + 'QuickBooks Online no permite añadir una ubicación a las facturas de proveedores o a los cheques. Actualice su preferencia de exportación a asiento contable si desea importar ubicaciones como etiquetas.', export: 'Exportar', exportAs: 'Exportar cómo', exportExpenses: 'Exportar gastos de bolsillo como', @@ -2025,7 +2025,7 @@ export default { outOfPocketTaxEnabledError: 'La Anotacion en el diario no está disponible cuando los impuestos están activados. Por favor, selecciona una opción de exportación diferente.', outOfPocketLocationEnabledError: 'Las facturas de proveedores no están disponibles cuando las ubicaciones están activadas. Seleccione otra opción de exportación.', outOfPocketLocationEnabledDescription: - 'Nota: QuickBooks Online no admite un campo para Ubicaciones como Etiquetas en las exportaciones de Facturas de Proveedor. Al importar Ubicaciones como Etiquetas, esta opción de exportación no está disponible.', + 'Nota: QuickBooks Online no permite añadir una ubicación a las facturas de proveedores o a los cheques. Al importar ubicaciones como etiquetas, esta opción de exportación no está disponible.', advancedConfig: { advanced: 'Avanzado', diff --git a/src/pages/workspace/accounting/PolicyAccountingPage.tsx b/src/pages/workspace/accounting/PolicyAccountingPage.tsx index 04f47011efb4..ff5e82417ab7 100644 --- a/src/pages/workspace/accounting/PolicyAccountingPage.tsx +++ b/src/pages/workspace/accounting/PolicyAccountingPage.tsx @@ -183,7 +183,7 @@ function PolicyAccountingPage({policy, connectionSyncProgress}: PolicyAccounting title: integrationData?.title, errorText: shouldShowSynchronizationError ? translate('workspace.accounting.syncError', connectedIntegration) : undefined, errorTextStyle: [styles.mt5], - shouldShowRedDotIndicator: true, + shouldShowRedDotIndicator: true, description: isSyncInProgress ? translate('workspace.accounting.connections.syncStageName', connectionSyncProgress.stageInProgress) : datetimeToRelative, rightComponent: isSyncInProgress ? ( - {!isLocationEnabled && {translate('workspace.qbo.exportOutOfPocketExpensesDescription')}} + {translate('workspace.qbo.exportOutOfPocketExpensesDescription')} - {isLocationEnabled && {translate('workspace.qbo.outOfPocketLocationEnabledDescription')}} - {!isLocationEnabled && ( - - Navigation.navigate(ROUTES.POLICY_ACCOUNTING_QUICKBOOKS_ONLINE_EXPORT_OUT_OF_POCKET_EXPENSES_ACCOUNT_SELECT.getRoute(policyID))} - brickRoadIndicator={errorFields?.exportAccount ? CONST.BRICK_ROAD_INDICATOR_STATUS.ERROR : undefined} - shouldShowRightIcon - errorText={errorFields?.exportAccount ? translate('common.genericErrorMessage') : undefined} - /> - - )} + + Navigation.navigate(ROUTES.POLICY_ACCOUNTING_QUICKBOOKS_ONLINE_EXPORT_OUT_OF_POCKET_EXPENSES_ACCOUNT_SELECT.getRoute(policyID))} + brickRoadIndicator={errorFields?.exportAccount ? CONST.BRICK_ROAD_INDICATOR_STATUS.ERROR : undefined} + shouldShowRightIcon + errorText={errorFields?.exportAccount ? translate('common.genericErrorMessage') : undefined} + /> + diff --git a/src/pages/workspace/accounting/qbo/export/QuickbooksOutOfPocketExpenseEntitySelectPage.tsx b/src/pages/workspace/accounting/qbo/export/QuickbooksOutOfPocketExpenseEntitySelectPage.tsx index 1c74b146eea5..14007f81f6b8 100644 --- a/src/pages/workspace/accounting/qbo/export/QuickbooksOutOfPocketExpenseEntitySelectPage.tsx +++ b/src/pages/workspace/accounting/qbo/export/QuickbooksOutOfPocketExpenseEntitySelectPage.tsx @@ -18,6 +18,22 @@ import CONST from '@src/CONST'; import ROUTES from '@src/ROUTES'; import type {Account, QBOReimbursableExportAccountType} from '@src/types/onyx/Policy'; +function Footer({isTaxEnabled, isLocationsEnabled}: {isTaxEnabled: boolean; isLocationsEnabled: boolean}) { + const styles = useThemeStyles(); + const {translate} = useLocalize(); + + if (!isTaxEnabled && !isLocationsEnabled) { + return null; + } + + return ( + + {isTaxEnabled && {translate('workspace.qbo.outOfPocketTaxEnabledDescription')}} + {isLocationsEnabled && {translate('workspace.qbo.outOfPocketLocationEnabledDescription')}} + + ); +} + type CardListItem = ListItem & { value: QBOReimbursableExportAccountType; isShown: boolean; @@ -107,7 +123,12 @@ function QuickbooksOutOfPocketExpenseEntitySelectPage({policy}: WithPolicyConnec onSelectRow={selectExportEntity} shouldDebounceRowSelect initiallyFocusedOptionKey={data.find((mode) => mode.isSelected)?.keyForList} - footerContent={isTaxesEnabled && {translate('workspace.qbo.outOfPocketTaxEnabledDescription')}} + footerContent={ +