@@ -223,16 +223,6 @@ type TransactionWeekGroupSorting = ColumnSortMapping<TransactionWeekGroupListIte
223223type TransactionYearGroupSorting = ColumnSortMapping < TransactionYearGroupListItemType > ;
224224type TransactionQuarterGroupSorting = ColumnSortMapping < TransactionQuarterGroupListItemType > ;
225225
226- function isPayActionSearch ( queryJSON : SearchQueryJSON | undefined ) : boolean {
227- return (
228- queryJSON ?. flatFilters . some (
229- ( filter ) =>
230- filter . key === CONST . SEARCH . SYNTAX_FILTER_KEYS . ACTION &&
231- filter . filters . some ( ( queryFilter ) => queryFilter . operator === CONST . SEARCH . SYNTAX_OPERATORS . EQUAL_TO && queryFilter . value . toString ( ) === CONST . SEARCH . ACTION_FILTERS . PAY ) ,
232- ) ?? false
233- ) ;
234- }
235-
236226type GetReportSectionsParams = {
237227 data : OnyxTypes . SearchResults [ 'data' ] ;
238228 policies : OnyxCollection < OnyxTypes . Policy > ;
@@ -2071,7 +2061,6 @@ function getTransactionsSections({
20712061 const transactionsSections : TransactionListItemType [ ] = [ ] ;
20722062
20732063 const currentQueryJSON = queryJSON ?? getCurrentSearchQueryJSON ( ) ;
2074- const isPaySearch = isPayActionSearch ( currentQueryJSON ) ;
20752064
20762065 for ( const key of transactionKeys ) {
20772066 const transactionItem = data [ key ] ;
@@ -2119,9 +2108,6 @@ function getTransactionsSections({
21192108 const actions = reportActions [ `${ ONYXKEYS . COLLECTION . REPORT_ACTIONS } ${ transactionItem . reportID } ` ] ?? [ ] ;
21202109 const reportMetadata = allReportMetadata ?. [ `${ ONYXKEYS . COLLECTION . REPORT_METADATA } ${ transactionItem . reportID } ` ] ?? { } ;
21212110 const allActions = getActions ( data , allViolations , key , currentSearch , currentUserEmail , currentAccountID , bankAccountList , reportMetadata , actions ) ;
2122- if ( isPaySearch && ! allActions . includes ( CONST . SEARCH . ACTION_TYPES . PAY ) ) {
2123- continue ;
2124- }
21252111 const transactionPendingAction = getTransactionPendingAction ( transactionItem ) ;
21262112 const transactionAttendees = getAttendees ( transactionItem , currentUserPersonalDetails ) ;
21272113 const isUnreported = transactionItem . reportID === CONST . REPORT . UNREPORTED_REPORT_ID ;
@@ -2675,7 +2661,6 @@ function getReportSections({
26752661 } = classifyAndPreprocess ( data ) ;
26762662
26772663 const currentQueryJSON = queryJSON ?? getCurrentSearchQueryJSON ( ) ;
2678- const isPaySearch = isPayActionSearch ( currentQueryJSON ) ;
26792664 const reportIDToTransactions : Record < string , TransactionReportGroupListItemType > = { } ;
26802665
26812666 const orderedKeys : string [ ] = [ ...reportKeys , ...transactionKeys ] ;
@@ -2716,9 +2701,6 @@ function getReportSections({
27162701 const reportMetadata = allReportMetadata ?. [ `${ ONYXKEYS . COLLECTION . REPORT_METADATA } ${ reportItem . reportID } ` ] ?? { } ;
27172702 const allReportTransactions = transactionsByReportID . get ( reportItem . reportID ) ?? [ ] ;
27182703 const allActions = getActions ( data , allViolations , key , currentSearch , currentUserEmail , currentAccountID , bankAccountList , reportMetadata , actions , allReportTransactions ) ;
2719- if ( isPaySearch && ! allActions . includes ( CONST . SEARCH . ACTION_TYPES . PAY ) ) {
2720- continue ;
2721- }
27222704
27232705 const fromDetails =
27242706 mergedPersonalDetails ?. [ reportItem . ownerAccountID ?? CONST . DEFAULT_NUMBER_ID ] ??
0 commit comments