Skip to content

Commit

Permalink
fix(admin-ui): Fix query filter option in order list component (#2258)
Browse files Browse the repository at this point in the history
Relates to #2257. This commit add customerLastName and transactionId filters
  • Loading branch information
cdiban authored Jul 3, 2023
1 parent 9b90b96 commit 7b56942
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
ChannelService,
GetOrderListDocument,
getOrderStateTranslationToken,
LogicalOperator,
OrderListOptions,
OrderType,
ServerConfigService,
Expand Down Expand Up @@ -137,6 +138,12 @@ export class OrderListComponent
code: {
contains: searchTerm,
},
customerLastName: {
contains: searchTerm,
},
transactionId: {
contains: searchTerm,
},
};
}
return {
Expand All @@ -146,6 +153,7 @@ export class OrderListComponent
filter: {
...(filterInput ?? {}),
},
filterOperator: LogicalOperator.OR,
sort: this.sorts.createSortInput(),
},
};
Expand Down

0 comments on commit 7b56942

Please sign in to comment.