@@ -2073,7 +2073,15 @@ const ROUTES = {
20732073
20742074 TRANSACTION_RECEIPT : {
20752075 route : 'r/:reportID/transaction/:transactionID/receipt/:action?/:iouType?' ,
2076- getRoute : ( reportID : string | undefined , transactionID : string | undefined , readonly = false , isFromReviewDuplicates = false , action ?: IOUAction , iouType ?: IOUType ) => {
2076+ getRoute : (
2077+ reportID : string | undefined ,
2078+ transactionID : string | undefined ,
2079+ readonly = false ,
2080+ isFromReviewDuplicates = false ,
2081+ action ?: IOUAction ,
2082+ iouType ?: IOUType ,
2083+ mergeTransactionID ?: string ,
2084+ ) => {
20772085 if ( ! reportID ) {
20782086 Log . warn ( 'Invalid reportID is used to build the TRANSACTION_RECEIPT route' ) ;
20792087 }
@@ -2082,7 +2090,7 @@ const ROUTES = {
20822090 }
20832091 return `r/${ reportID } /transaction/${ transactionID } /receipt${ action ? `/${ action } ` : '' } ${ iouType ? `/${ iouType } ` : '' } ?readonly=${ readonly } ${
20842092 isFromReviewDuplicates ? '&isFromReviewDuplicates=true' : ''
2085- } ` as const ;
2093+ } ${ mergeTransactionID ? `&mergeTransactionID= ${ mergeTransactionID } ` : '' } ` as const ;
20862094 } ,
20872095 } ,
20882096
@@ -2122,6 +2130,22 @@ const ROUTES = {
21222130 route : 'r/:threadReportID/duplicates/confirm' ,
21232131 getRoute : ( threadReportID : string , backTo ?: string ) => getUrlWithBackToParam ( `r/${ threadReportID } /duplicates/confirm` as const , backTo ) ,
21242132 } ,
2133+ MERGE_TRANSACTION_LIST_PAGE : {
2134+ route : 'r/:transactionID/merge' ,
2135+ getRoute : ( transactionID : string | undefined , backTo ?: string ) => getUrlWithBackToParam ( `r/${ transactionID } /merge` as const , backTo ) ,
2136+ } ,
2137+ MERGE_TRANSACTION_RECEIPT_PAGE : {
2138+ route : 'r/:transactionID/merge/receipt' ,
2139+ getRoute : ( transactionID : string , backTo ?: string ) => getUrlWithBackToParam ( `r/${ transactionID } /merge/receipt` as const , backTo ) ,
2140+ } ,
2141+ MERGE_TRANSACTION_DETAILS_PAGE : {
2142+ route : 'r/:transactionID/merge/details' ,
2143+ getRoute : ( transactionID : string , backTo ?: string ) => getUrlWithBackToParam ( `r/${ transactionID } /merge/details` as const , backTo ) ,
2144+ } ,
2145+ MERGE_TRANSACTION_CONFIRMATION_PAGE : {
2146+ route : 'r/:transactionID/merge/confirmation' ,
2147+ getRoute : ( transactionID : string , backTo ?: string ) => getUrlWithBackToParam ( `r/${ transactionID } /merge/confirmation` as const , backTo ) ,
2148+ } ,
21252149 POLICY_ACCOUNTING_XERO_IMPORT : {
21262150 route : 'workspaces/:policyID/accounting/xero/import' ,
21272151 getRoute : ( policyID : string ) => `workspaces/${ policyID } /accounting/xero/import` as const ,
0 commit comments