Skip to content

Commit a009ced

Browse files
authored
Merge pull request #56022 from truph01/fix/55921
fix: Show the connected QBO file
2 parents fbb2870 + 7970a9c commit a009ced

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

src/languages/en.ts

+1
Original file line numberDiff line numberDiff line change
@@ -2862,6 +2862,7 @@ const translations = {
28622862
itemsDescription: 'Choose how to handle QuickBooks Desktop items in Expensify.',
28632863
},
28642864
qbo: {
2865+
connectedTo: 'Connected to',
28652866
importDescription: 'Choose which coding configurations to import from QuickBooks Online to Expensify.',
28662867
classes: 'Classes',
28672868
locations: 'Locations',

src/languages/es.ts

+1
Original file line numberDiff line numberDiff line change
@@ -2889,6 +2889,7 @@ const translations = {
28892889
itemsDescription: 'Elige cómo gestionar los elementos de QuickBooks Desktop en Expensify.',
28902890
},
28912891
qbo: {
2892+
connectedTo: 'Conectado a',
28922893
importDescription: 'Elige que configuraciónes de codificación son importadas desde QuickBooks Online a Expensify.',
28932894
classes: 'Clases',
28942895
locations: 'Lugares',

src/pages/workspace/accounting/PolicyAccountingPage.tsx

+12
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,18 @@ function PolicyAccountingPage({policy}: PolicyAccountingPageProps) {
256256
Navigation.navigate(ROUTES.POLICY_ACCOUNTING_SAGE_INTACCT_ENTITY.getRoute(policyID));
257257
},
258258
};
259+
case CONST.POLICY.CONNECTIONS.NAME.QBO:
260+
return !policy?.connections?.quickbooksOnline?.config?.companyName
261+
? {}
262+
: {
263+
description: translate('workspace.qbo.connectedTo'),
264+
title: policy?.connections?.quickbooksOnline?.config?.companyName,
265+
wrapperStyle: [styles.sectionMenuItemTopDescription],
266+
titleStyle: styles.fontWeightNormal,
267+
shouldShowDescriptionOnTop: true,
268+
interactive: false,
269+
};
270+
259271
default:
260272
return undefined;
261273
}

0 commit comments

Comments
 (0)