@mercurjs/admin 2.0.0-canary.31 → 2.0.0-canary.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -70,13 +70,24 @@ import { useTranslation } from "react-i18next";
|
|
|
70
70
|
// src/pages/orders/order-list/const.ts
|
|
71
71
|
var DEFAULT_PROPERTIES = [
|
|
72
72
|
"id",
|
|
73
|
+
"display_id",
|
|
73
74
|
"customer_id",
|
|
74
75
|
"seller_count",
|
|
75
76
|
"total",
|
|
76
|
-
"created_at"
|
|
77
|
+
"created_at",
|
|
78
|
+
"orders.id",
|
|
79
|
+
"orders.status",
|
|
80
|
+
"orders.created_at",
|
|
81
|
+
"orders.email",
|
|
82
|
+
"orders.display_id",
|
|
83
|
+
"orders.custom_display_id",
|
|
84
|
+
"orders.payment_status",
|
|
85
|
+
"orders.fulfillment_status",
|
|
86
|
+
"orders.total",
|
|
87
|
+
"orders.currency_code"
|
|
77
88
|
];
|
|
78
89
|
var DEFAULT_RELATIONS = [
|
|
79
|
-
"*orders",
|
|
90
|
+
"*orders.payment_collections",
|
|
80
91
|
"*orders.customer",
|
|
81
92
|
"*orders.sales_channel",
|
|
82
93
|
"*orders.seller"
|
|
@@ -115,9 +126,9 @@ function transformOrderGroups(orderGroups) {
|
|
|
115
126
|
return {
|
|
116
127
|
_type: "group",
|
|
117
128
|
id: group.id,
|
|
118
|
-
display_id: `#G${group.
|
|
129
|
+
display_id: `#G${group.display_id}`,
|
|
119
130
|
order_ids: orderIds,
|
|
120
|
-
vendor: `${group.seller_count
|
|
131
|
+
vendor: `${group.seller_count} vendors`,
|
|
121
132
|
created_at: new Date(group.created_at),
|
|
122
133
|
customer_name: customerName,
|
|
123
134
|
payment_status: null,
|
|
@@ -180,9 +191,7 @@ var OrderListTable = () => {
|
|
|
180
191
|
search: true,
|
|
181
192
|
isLoading,
|
|
182
193
|
pageSize: PAGE_SIZE,
|
|
183
|
-
orderBy: [
|
|
184
|
-
{ key: "created_at", label: t("fields.createdAt") }
|
|
185
|
-
],
|
|
194
|
+
orderBy: [{ key: "created_at", label: t("fields.createdAt") }],
|
|
186
195
|
queryObject: raw,
|
|
187
196
|
noRecords: {
|
|
188
197
|
message: t("orders.list.noRecordsMessage")
|