Refine order code and calendar cards
This commit is contained in:
@@ -4,6 +4,7 @@ import {
|
||||
MyOrdersDocument,
|
||||
type MyOrdersQuery,
|
||||
} from '~/composables/graphql/generated';
|
||||
import { formatOrderCode } from '~/composables/useOrderCodePresentation';
|
||||
|
||||
type OrderItem = MyOrdersQuery['myOrders'][number];
|
||||
|
||||
@@ -34,6 +35,7 @@ const filteredOrders = computed(() => {
|
||||
return orders.filter((order) => {
|
||||
const text = [
|
||||
order.code,
|
||||
formatOrderCode(order.code),
|
||||
...order.items.map((item) => item.productName),
|
||||
]
|
||||
.join(' ')
|
||||
|
||||
Reference in New Issue
Block a user