Skip to content

Commit 1c966a1

Browse files
authored
Merge pull request Expensify#88602 from brunovjk/xero-travel-invoicing-payable-account
Xero - Add Travel Invoicing payable account selector
2 parents 383a164 + ba25c14 commit 1c966a1

24 files changed

Lines changed: 284 additions & 12 deletions

File tree

src/CONST/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2758,6 +2758,7 @@ const CONST = {
27582758
REPORT_FIELD: 'REPORT_FIELD',
27592759
},
27602760
ACCOUNTING_METHOD: 'accountingMethod',
2761+
TRAVEL_INVOICING_PAYABLE_ACCOUNT: 'travelInvoicingPayableAccountID',
27612762
},
27622763

27632764
SAGE_INTACCT_MAPPING_VALUE: {

src/ROUTES.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,14 @@ const DYNAMIC_ROUTES = {
310310
path: 'purchase-bill-date-select',
311311
entryScreens: [SCREENS.WORKSPACE.ACCOUNTING.DYNAMIC_XERO_EXPORT],
312312
},
313+
POLICY_ACCOUNTING_XERO_TRAVEL_INVOICING_CONFIGURATION: {
314+
path: 'xero-travel-invoicing',
315+
entryScreens: [SCREENS.WORKSPACE.ACCOUNTING.DYNAMIC_XERO_EXPORT],
316+
},
317+
POLICY_ACCOUNTING_XERO_TRAVEL_INVOICING_PAYABLE_ACCOUNT_SELECT: {
318+
path: 'xero-travel-invoicing-payable-account',
319+
entryScreens: [SCREENS.WORKSPACE.ACCOUNTING.DYNAMIC_XERO_TRAVEL_INVOICING_CONFIGURATION],
320+
},
313321
POLICY_ACCOUNTING_XERO_AUTO_SYNC: {
314322
path: 'xero-autosync',
315323
entryScreens: [SCREENS.WORKSPACE.ACCOUNTING.XERO_ADVANCED, SCREENS.WORKSPACE.ACCOUNTING.CARD_RECONCILIATION],

src/SCREENS.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -614,6 +614,8 @@ const SCREENS = {
614614
XERO_MAP_TRACKING_CATEGORY: 'Policy_Accounting_Xero_Map_Tracking_Category',
615615
DYNAMIC_XERO_EXPORT: 'Dynamic_Policy_Accounting_Xero_Export',
616616
DYNAMIC_XERO_EXPORT_PURCHASE_BILL_DATE_SELECT: 'Dynamic_Policy_Accounting_Xero_Export_Purchase_Bill_Date_Select',
617+
DYNAMIC_XERO_TRAVEL_INVOICING_CONFIGURATION: 'Dynamic_Policy_Accounting_Xero_Travel_Invoicing_Configuration',
618+
DYNAMIC_XERO_TRAVEL_INVOICING_PAYABLE_ACCOUNT_SELECT: 'Dynamic_Policy_Accounting_Xero_Travel_Invoicing_Payable_Account_Select',
617619
XERO_ADVANCED: 'Policy_Accounting_Xero_Advanced',
618620
DYNAMIC_XERO_AUTO_SYNC: 'Dynamic_Policy_Accounting_Xero_Auto_Sync',
619621
DYNAMIC_XERO_ACCOUNTING_METHOD: 'Dynamic_Policy_Accounting_Xero_Accounting_Method',

src/languages/de.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4352,7 +4352,7 @@ ${amount} für ${merchant} – ${date}`,
43524352
budgetFrequencyUnit: {monthly: 'Monat', yearly: 'Jahr'},
43534353
budgetTypeForNotificationMessage: {tag: 'Tag', category: 'Kategorie'},
43544354
deepDiveExpensifyCard: `<muted-text-label>Transaktionen der Expensify Karte werden automatisch in ein „Expensify Karte Verbindlichkeitskonto” exportiert, das mit <a href=”${CONST.DEEP_DIVE_EXPENSIFY_CARD}”>unserer Integration</a> erstellt wird.</muted-text-label>`,
4355-
travelInvoicing: 'Expensify Travel-Verbindlichkeiten exportieren nach',
4355+
travelInvoicing: 'Reiseabrechnungskosten exportieren als',
43564356
travelInvoicingVendor: 'Reiseanbieter',
43574357
travelInvoicingPayableAccount: 'Reiseverbindlichkeitskonto',
43584358
hr: 'Personalwesen',
@@ -4683,6 +4683,7 @@ ${amount} für ${merchant} – ${date}`,
46834683
exportDeepDiveCompanyCard:
46844684
'Exportierte Ausgaben werden als Banktransaktionen auf das unten angegebene Xero-Bankkonto gebucht, und die Buchungsdaten entsprechen den Daten auf Ihrem Kontoauszug.',
46854685
bankTransactions: 'Banktransaktionen',
4686+
travelInvoicingDescription: 'Reisekosten werden als Banktransaktionen auf das unten angegebene Xero-Konto exportiert.',
46864687
xeroBankAccount: 'Xero-Bankkonto',
46874688
xeroBankAccountDescription: 'Wählen Sie, wo Spesen als Banktransaktionen verbucht werden.',
46884689
exportExpensesDescription: 'Berichte werden als Einkaufsrechnung mit dem unten ausgewählten Datum und Status exportiert.',

src/languages/en.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4438,7 +4438,7 @@ const translations = {
44384438
viewTransactions: 'View transactions',
44394439
policyExpenseChatName: (displayName: string) => `${displayName}'s expenses`,
44404440
deepDiveExpensifyCard: `<muted-text-label>Expensify Card transactions will automatically export to an "Expensify Card Liability Account" created with <a href="${CONST.DEEP_DIVE_EXPENSIFY_CARD}">our integration</a>.</muted-text-label>`,
4441-
travelInvoicing: 'Export Expensify Travel Payable To',
4441+
travelInvoicing: 'Export travel invoicing expenses as',
44424442
travelInvoicingVendor: 'Travel vendor',
44434443
travelInvoicingPayableAccount: 'Travel payable account',
44444444
},
@@ -4762,6 +4762,7 @@ const translations = {
47624762
purchaseBill: 'Purchase bill',
47634763
exportDeepDiveCompanyCard: 'Exported expenses will post as bank transactions to the Xero bank account below, and transaction dates will match the dates on your bank statement.',
47644764
bankTransactions: 'Bank transactions',
4765+
travelInvoicingDescription: 'Travel expenses will export as bank transactions to the Xero account specified below.',
47654766
xeroBankAccount: 'Xero bank account',
47664767
xeroBankAccountDescription: 'Choose where expenses will post as bank transactions.',
47674768
exportExpensesDescription: 'Reports will export as a purchase bill with the date and status selected below.',

src/languages/es.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4240,7 +4240,7 @@ ${amount} para ${merchant} - ${date}`,
42404240
viewTransactions: 'Ver transacciones',
42414241
policyExpenseChatName: (displayName) => `${displayName}'s gastos`,
42424242
deepDiveExpensifyCard: `<muted-text-label>Las transacciones de la Tarjeta Expensify se exportan automáticamente a una "Cuenta de Responsabilidad de la Tarjeta Expensify" creada con <a href="${CONST.DEEP_DIVE_EXPENSIFY_CARD}">nuestra integración</a>.</muted-text-label>`,
4243-
travelInvoicing: 'Exportar Viajes de Expensify por Pagar a',
4243+
travelInvoicing: 'Exportar gastos de facturación de viajes como',
42444244
travelInvoicingVendor: 'Proveedor de viajes',
42454245
travelInvoicingPayableAccount: 'Cuenta por pagar de viajes',
42464246
},
@@ -4566,6 +4566,7 @@ ${amount} para ${merchant} - ${date}`,
45664566
exportDeepDiveCompanyCard:
45674567
'Cada gasto exportado se contabiliza como una transacción bancaria en la cuenta bancaria de Xero que selecciones a continuación. Las fechas de las transacciones coincidirán con las fechas de el extracto bancario.',
45684568
bankTransactions: 'Transacciones bancarias',
4569+
travelInvoicingDescription: 'Los gastos de viaje se exportarán como transacciones bancarias a la cuenta de Xero especificada a continuación.',
45694570
xeroBankAccount: 'Cuenta bancaria de Xero',
45704571
xeroBankAccountDescription: 'Elige dónde se contabilizarán los gastos como transacciones bancarias.',
45714572
exportExpensesDescription: 'Los informes se exportarán como una factura de compra utilizando la fecha y el estado que seleccione a continuación',

src/languages/fr.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4361,7 +4361,7 @@ ${amount} pour ${merchant} - ${date}`,
43614361
budgetTypeForNotificationMessage: {tag: 'tag', category: 'catégorie'},
43624362
policyExpenseChatName: (displayName: string) => `Dépenses de ${displayName}`,
43634363
deepDiveExpensifyCard: `<muted-text-label>Les transactions de la Carte Expensify seront automatiquement exportées vers un « compte de passif Carte Expensify » créé avec <a href="${CONST.DEEP_DIVE_EXPENSIFY_CARD}">notre intégration</a>.</muted-text-label>`,
4364-
travelInvoicing: 'Exporter Expensify Travel à payer vers',
4364+
travelInvoicing: 'Exporter les frais de facturation de voyages en tant que',
43654365
travelInvoicingVendor: 'Fournisseur de voyages',
43664366
travelInvoicingPayableAccount: 'Compte fournisseur déplacements',
43674367
hr: 'RH',
@@ -4693,6 +4693,7 @@ ${amount} pour ${merchant} - ${date}`,
46934693
exportDeepDiveCompanyCard:
46944694
'Les dépenses exportées seront enregistrées comme des transactions bancaires sur le compte bancaire Xero ci-dessous, et les dates de transaction correspondront aux dates figurant sur votre relevé bancaire.',
46954695
bankTransactions: 'Transactions bancaires',
4696+
travelInvoicingDescription: 'Les frais de voyage seront exportés sous forme de transactions bancaires vers le compte Xero indiqué ci-dessous.',
46964697
xeroBankAccount: 'Compte bancaire Xero',
46974698
xeroBankAccountDescription: 'Choisissez où les dépenses seront enregistrées comme transactions bancaires.',
46984699
exportExpensesDescription: 'Les notes de frais seront exportées sous forme de facture d’achat avec la date et le statut sélectionnés ci-dessous.',

src/languages/it.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4338,7 +4338,7 @@ ${amount} per ${merchant} - ${date}`,
43384338
budgetFrequencyUnit: {monthly: 'mese', yearly: 'anno'},
43394339
budgetTypeForNotificationMessage: {tag: 'etichetta', category: 'categoria'},
43404340
deepDiveExpensifyCard: `<muted-text-label>Le transazioni della Carta Expensify verranno esportate automaticamente in un "Conto Passivo Carta Expensify" creato con <a href="${CONST.DEEP_DIVE_EXPENSIFY_CARD}">la nostra integrazione</a>.</muted-text-label>`,
4341-
travelInvoicing: 'Esporta conti da pagare di Expensify Travel a',
4341+
travelInvoicing: 'Esporta le spese di fatturazione viaggi come',
43424342
travelInvoicingVendor: 'Fornitore di viaggi',
43434343
travelInvoicingPayableAccount: 'Conto debiti per viaggi',
43444344
hr: 'Risorse umane',
@@ -4668,6 +4668,7 @@ ${amount} per ${merchant} - ${date}`,
46684668
exportDeepDiveCompanyCard:
46694669
'Le spese esportate verranno registrate come transazioni bancarie sul conto bancario Xero indicato di seguito e le date delle transazioni corrisponderanno alle date sul tuo estratto conto bancario.',
46704670
bankTransactions: 'Transazioni bancarie',
4671+
travelInvoicingDescription: 'Le spese di viaggio verranno esportate come transazioni bancarie nel conto Xero specificato di seguito.',
46714672
xeroBankAccount: 'Conto bancario Xero',
46724673
xeroBankAccountDescription: 'Scegli dove registrare le spese come transazioni bancarie.',
46734674
exportExpensesDescription: 'I report verranno esportati come note di acquisto con la data e lo stato selezionati di seguito.',

src/languages/ja.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4306,7 +4306,7 @@ ${integrationName === CONST.ONBOARDING_ACCOUNTING_MAPPING.other ? 'あなたの'
43064306
budgetFrequency: {monthly: '毎月', yearly: '年次'},
43074307
budgetFrequencyUnit: {monthly: '月', yearly: '年'},
43084308
budgetTypeForNotificationMessage: {tag: 'タグ', category: 'カテゴリ'},
4309-
travelInvoicing: 'Expensify Travel 買掛金のエクスポート先',
4309+
travelInvoicing: '出張請求費用を次の形式でエクスポート',
43104310
travelInvoicingVendor: '出張ベンダー',
43114311
travelInvoicingPayableAccount: '旅費未払金勘定',
43124312
hr: '人事',
@@ -4626,6 +4626,7 @@ ${integrationName === CONST.ONBOARDING_ACCOUNTING_MAPPING.other ? 'あなたの'
46264626
purchaseBill: '仕入請求書',
46274627
exportDeepDiveCompanyCard: 'エクスポートされた経費は、以下のXero銀行口座に銀行取引として記帳され、取引日付は銀行取引明細書の日付と一致します。',
46284628
bankTransactions: '銀行取引',
4629+
travelInvoicingDescription: '旅費は、以下で指定したXeroアカウントに銀行取引としてエクスポートされます。',
46294630
xeroBankAccount: 'Xero 銀行口座',
46304631
xeroBankAccountDescription: '経費を銀行取引として計上する先を選択してください。',
46314632
exportExpensesDescription: 'レポートは、以下で選択された日付とステータスで仕入請求書としてエクスポートされます。',

src/languages/nl.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4334,7 +4334,7 @@ ${amount} voor ${merchant} - ${date}`,
43344334
budgetFrequencyUnit: {monthly: 'maand', yearly: 'jaar'},
43354335
budgetTypeForNotificationMessage: {tag: 'tag', category: 'categorie'},
43364336
deepDiveExpensifyCard: `<muted-text-label>Transacties met de Expensify Kaart worden automatisch geëxporteerd naar een "Expensify Kaart Passivarekening" dat wordt aangemaakt via <a href="${CONST.DEEP_DIVE_EXPENSIFY_CARD}">onze integratie</a>.</muted-text-label>`,
4337-
travelInvoicing: 'Expensify Travel-tegoed exporteren naar',
4337+
travelInvoicing: 'Reisfacturatiekosten exporteren als',
43384338
travelInvoicingVendor: 'Reisaanbieder',
43394339
travelInvoicingPayableAccount: 'Reiscrediteurenrekening',
43404340
hr: 'HR',
@@ -4659,6 +4659,7 @@ ${amount} voor ${merchant} - ${date}`,
46594659
exportDeepDiveCompanyCard:
46604660
'Geëxporteerde uitgaven worden als banktransacties geboekt op de onderstaande Xero-bankrekening, en transactiedata komen overeen met de data op je bankafschrift.',
46614661
bankTransactions: 'Banktransacties',
4662+
travelInvoicingDescription: 'Reiskosten worden als banktransacties geëxporteerd naar het hieronder opgegeven Xero-account.',
46624663
xeroBankAccount: 'Xero-bankrekening',
46634664
xeroBankAccountDescription: 'Kies waar onkosten als banktransacties worden geboekt.',
46644665
exportExpensesDescription: 'Rapporten worden geëxporteerd als een inkoopfactuur met de datum en status die hieronder zijn geselecteerd.',

0 commit comments

Comments
 (0)