@@ -231,13 +231,29 @@ const DYNAMIC_ROUTES = {
231231 path : 'qbd-company-card-expense-account-select' ,
232232 entryScreens : [ SCREENS . WORKSPACE . ACCOUNTING . DYNAMIC_QUICKBOOKS_DESKTOP_EXPORT , SCREENS . WORKSPACE . ACCOUNTING . DYNAMIC_QUICKBOOKS_DESKTOP_COMPANY_CARD_EXPENSE_ACCOUNT ] ,
233233 } ,
234+ POLICY_ACCOUNTING_QUICKBOOKS_DESKTOP_COMPANY_CARD_EXPENSE_CARD_SELECT : {
235+ path : 'qbd-card-select' ,
236+ entryScreens : [ SCREENS . WORKSPACE . ACCOUNTING . DYNAMIC_QUICKBOOKS_DESKTOP_COMPANY_CARD_EXPENSE_ACCOUNT ] ,
237+ } ,
234238 POLICY_ACCOUNTING_QUICKBOOKS_DESKTOP_OUT_OF_POCKET_EXPENSE_ACCOUNT_SELECT : {
235239 path : 'qbd-account-select' ,
236- entryScreens : [ SCREENS . WORKSPACE . ACCOUNTING . QUICKBOOKS_DESKTOP_EXPORT_OUT_OF_POCKET_EXPENSES ] ,
240+ entryScreens : [ SCREENS . WORKSPACE . ACCOUNTING . DYNAMIC_QUICKBOOKS_DESKTOP_EXPORT_OUT_OF_POCKET_EXPENSES ] ,
237241 } ,
238242 POLICY_ACCOUNTING_QUICKBOOKS_DESKTOP_OUT_OF_POCKET_EXPENSE_ENTITY_SELECT : {
239243 path : 'qbd-entity-select' ,
240- entryScreens : [ SCREENS . WORKSPACE . ACCOUNTING . QUICKBOOKS_DESKTOP_EXPORT_OUT_OF_POCKET_EXPENSES ] ,
244+ entryScreens : [ SCREENS . WORKSPACE . ACCOUNTING . DYNAMIC_QUICKBOOKS_DESKTOP_EXPORT_OUT_OF_POCKET_EXPENSES ] ,
245+ } ,
246+ POLICY_ACCOUNTING_QUICKBOOKS_DESKTOP_EXPORT_OUT_OF_POCKET_EXPENSES : {
247+ path : 'qbd-out-of-pocket-expense' ,
248+ entryScreens : [ SCREENS . WORKSPACE . ACCOUNTING . DYNAMIC_QUICKBOOKS_DESKTOP_EXPORT ] ,
249+ } ,
250+ POLICY_ACCOUNTING_QUICKBOOKS_DESKTOP_PREFERRED_EXPORTER : {
251+ path : 'qbd-preferred-exporter' ,
252+ entryScreens : [ SCREENS . WORKSPACE . ACCOUNTING . DYNAMIC_QUICKBOOKS_DESKTOP_EXPORT ] ,
253+ } ,
254+ POLICY_ACCOUNTING_QUICKBOOKS_DESKTOP_EXPORT_DATE_SELECT : {
255+ path : 'qbd-date-select' ,
256+ entryScreens : [ SCREENS . WORKSPACE . ACCOUNTING . DYNAMIC_QUICKBOOKS_DESKTOP_EXPORT ] ,
241257 } ,
242258 POLICY_ACCOUNTING_QUICKBOOKS_ONLINE_INVOICE_ACCOUNT_SELECT : {
243259 path : 'invoice-account-select' ,
@@ -309,6 +325,10 @@ const DYNAMIC_ROUTES = {
309325 path : 'quickbooks-online-accounting-method' ,
310326 entryScreens : [ SCREENS . WORKSPACE . ACCOUNTING . DYNAMIC_QUICKBOOKS_ONLINE_AUTO_SYNC , SCREENS . WORKSPACE . ACCOUNTING . CARD_RECONCILIATION ] ,
311327 } ,
328+ WORKSPACE_ACCOUNTING_QUICKBOOKS_DESKTOP_ADVANCED : {
329+ path : 'quickbooks-desktop/advanced' ,
330+ entryScreens : [ SCREENS . WORKSPACE . ACCOUNTING . ROOT ] ,
331+ } ,
312332 WORKSPACE_ACCOUNTING_RECONCILIATION_ACCOUNT_SETTINGS : {
313333 path : 'account-reconciliation-settings' ,
314334 entryScreens : [ SCREENS . WORKSPACE . ACCOUNTING . CARD_RECONCILIATION , SCREENS . WORKSPACE . DYNAMIC_WORKSPACE_EXPENSIFY_CARD_SETTINGS_ACCOUNT ] ,
@@ -2123,17 +2143,6 @@ const ROUTES = {
21232143 route : 'workspaces/:policyID/accounting/netsuite/export/travel-invoicing/journal-posting-preference' ,
21242144 getRoute : ( policyID : string ) => `workspaces/${ policyID } /accounting/netsuite/export/travel-invoicing/journal-posting-preference` as const ,
21252145 } ,
2126- POLICY_ACCOUNTING_QUICKBOOKS_DESKTOP_COMPANY_CARD_EXPENSE_SELECT : {
2127- route : 'workspaces/:policyID/accounting/quickbooks-desktop/export/company-card-expense-account/card-select' ,
2128- getRoute : ( policyID ?: string , backTo ?: string ) => {
2129- if ( ! policyID ) {
2130- Log . warn ( 'Invalid policyID is used to build the POLICY_ACCOUNTING_QUICKBOOKS_DESKTOP_COMPANY_CARD_EXPENSE_SELECT route' ) ;
2131- }
2132-
2133- // eslint-disable-next-line no-restricted-syntax -- Legacy route generation
2134- return getUrlWithBackToParam ( `workspaces/${ policyID } /accounting/quickbooks-desktop/export/company-card-expense-account/card-select` as const , backTo ) ;
2135- } ,
2136- } ,
21372146 POLICY_ACCOUNTING_QUICKBOOKS_DESKTOP_NON_REIMBURSABLE_DEFAULT_VENDOR_SELECT : {
21382147 route : 'workspaces/:policyID/accounting/quickbooks-desktop/export/company-card-expense-account/default-vendor-select' ,
21392148 getRoute : ( policyID ?: string ) => {
@@ -2143,17 +2152,6 @@ const ROUTES = {
21432152 return `workspaces/${ policyID } /accounting/quickbooks-desktop/export/company-card-expense-account/default-vendor-select` as const ;
21442153 } ,
21452154 } ,
2146- WORKSPACE_ACCOUNTING_QUICKBOOKS_DESKTOP_ADVANCED : {
2147- route : 'workspaces/:policyID/accounting/quickbooks-desktop/advanced' ,
2148- getRoute : ( policyID ?: string , backTo ?: string ) => {
2149- if ( ! policyID ) {
2150- Log . warn ( 'Invalid policyID is used to build the WORKSPACE_ACCOUNTING_QUICKBOOKS_DESKTOP_ADVANCED route' ) ;
2151- }
2152-
2153- // eslint-disable-next-line no-restricted-syntax -- Legacy route generation
2154- return getUrlWithBackToParam ( `workspaces/${ policyID } /accounting/quickbooks-desktop/advanced` as const , backTo ) ;
2155- } ,
2156- } ,
21572155 POLICY_ACCOUNTING_QUICKBOOKS_DESKTOP_AUTO_SYNC : {
21582156 route : 'workspaces/:policyID/accounting/quickbooks-desktop/advanced/autosync' ,
21592157 getRoute : ( policyID ?: string ) => {
@@ -2194,39 +2192,6 @@ const ROUTES = {
21942192 return `workspaces/${ policyID } /accounting/quickbooks-desktop/advanced/autosync/accounting-method` as const ;
21952193 } ,
21962194 } ,
2197- POLICY_ACCOUNTING_QUICKBOOKS_DESKTOP_EXPORT_DATE_SELECT : {
2198- route : 'workspaces/:policyID/accounting/quickbooks-desktop/export/date-select' ,
2199- getRoute : ( policyID ?: string , backTo ?: string ) => {
2200- if ( ! policyID ) {
2201- Log . warn ( 'Invalid policyID is used to build the POLICY_ACCOUNTING_QUICKBOOKS_DESKTOP_EXPORT_DATE_SELECT route' ) ;
2202- }
2203-
2204- // eslint-disable-next-line no-restricted-syntax -- Legacy route generation
2205- return getUrlWithBackToParam ( `workspaces/${ policyID } /accounting/quickbooks-desktop/export/date-select` as const , backTo ) ;
2206- } ,
2207- } ,
2208- POLICY_ACCOUNTING_QUICKBOOKS_DESKTOP_PREFERRED_EXPORTER : {
2209- route : 'workspaces/:policyID/accounting/quickbooks-desktop/export/preferred-exporter' ,
2210- getRoute : ( policyID ?: string , backTo ?: string ) => {
2211- if ( ! policyID ) {
2212- Log . warn ( 'Invalid policyID is used to build the POLICY_ACCOUNTING_QUICKBOOKS_DESKTOP_PREFERRED_EXPORTER route' ) ;
2213- }
2214-
2215- // eslint-disable-next-line no-restricted-syntax -- Legacy route generation
2216- return getUrlWithBackToParam ( `workspaces/${ policyID } /accounting/quickbooks-desktop/export/preferred-exporter` as const , backTo ) ;
2217- } ,
2218- } ,
2219- POLICY_ACCOUNTING_QUICKBOOKS_DESKTOP_EXPORT_OUT_OF_POCKET_EXPENSES : {
2220- route : 'workspaces/:policyID/accounting/quickbooks-desktop/export/out-of-pocket-expense' ,
2221- getRoute : ( policyID ?: string , backTo ?: string ) => {
2222- if ( ! policyID ) {
2223- Log . warn ( 'Invalid policyID is used to build the POLICY_ACCOUNTING_QUICKBOOKS_DESKTOP_EXPORT_OUT_OF_POCKET_EXPENSES route' ) ;
2224- }
2225-
2226- // eslint-disable-next-line no-restricted-syntax -- Legacy route generation
2227- return getUrlWithBackToParam ( `workspaces/${ policyID } /accounting/quickbooks-desktop/export/out-of-pocket-expense` as const , backTo ) ;
2228- } ,
2229- } ,
22302195 POLICY_ACCOUNTING_QUICKBOOKS_DESKTOP_EXISTING_CONNECTIONS : {
22312196 route : 'workspaces/:policyID/accounting/quickbooks-desktop/existing-connections' ,
22322197 getRoute : ( policyID : string ) => `workspaces/${ policyID } /accounting/quickbooks-desktop/existing-connections` as const ,
0 commit comments