Skip to content

Commit 712e38e

Browse files
authored
Merge pull request Expensify#70092 from Expensify/jsenyitko-update-suggested-searches
Add groupings to accounting searches
2 parents 247c2ce + d5ad6bb commit 712e38e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/libs/SearchUIUtils.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -433,6 +433,7 @@ function getSuggestedSearches(accountID: number = CONST.DEFAULT_NUMBER_ID, defau
433433
searchQuery: buildQueryStringFromFilterFormValues({
434434
type: CONST.SEARCH.DATA_TYPES.EXPENSE,
435435
feed: defaultFeedID ? [defaultFeedID] : [''],
436+
groupBy: CONST.SEARCH.GROUP_BY.CARD,
436437
postedOn: CONST.SEARCH.DATE_PRESETS.LAST_STATEMENT,
437438
}),
438439
get searchQueryJSON() {
@@ -453,6 +454,7 @@ function getSuggestedSearches(accountID: number = CONST.DEFAULT_NUMBER_ID, defau
453454
searchQuery: buildQueryStringFromFilterFormValues({
454455
type: CONST.SEARCH.DATA_TYPES.EXPENSE,
455456
status: [CONST.SEARCH.STATUS.EXPENSE.DRAFTS, CONST.SEARCH.STATUS.EXPENSE.OUTSTANDING],
457+
groupBy: CONST.SEARCH.GROUP_BY.FROM,
456458
reimbursable: CONST.SEARCH.BOOLEAN.YES,
457459
}),
458460
get searchQueryJSON() {
@@ -473,6 +475,7 @@ function getSuggestedSearches(accountID: number = CONST.DEFAULT_NUMBER_ID, defau
473475
searchQuery: buildQueryStringFromFilterFormValues({
474476
type: CONST.SEARCH.DATA_TYPES.EXPENSE,
475477
feed: defaultFeedID ? [defaultFeedID] : [''],
478+
groupBy: CONST.SEARCH.GROUP_BY.CARD,
476479
status: [CONST.SEARCH.STATUS.EXPENSE.DRAFTS, CONST.SEARCH.STATUS.EXPENSE.OUTSTANDING],
477480
}),
478481
get searchQueryJSON() {
@@ -494,6 +497,7 @@ function getSuggestedSearches(accountID: number = CONST.DEFAULT_NUMBER_ID, defau
494497
type: CONST.SEARCH.DATA_TYPES.EXPENSE,
495498
withdrawalType: CONST.SEARCH.WITHDRAWAL_TYPE.REIMBURSEMENT,
496499
withdrawnOn: CONST.SEARCH.DATE_PRESETS.LAST_MONTH,
500+
groupBy: CONST.SEARCH.GROUP_BY.WITHDRAWAL_ID,
497501
}),
498502
get searchQueryJSON() {
499503
return buildSearchQueryJSON(this.searchQuery);

0 commit comments

Comments
 (0)