@mercurjs/admin 2.0.0-canary.32 → 2.0.0-canary.34
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,6 +70,7 @@ 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",
|
|
@@ -86,7 +87,7 @@ var DEFAULT_PROPERTIES = [
|
|
|
86
87
|
"orders.currency_code"
|
|
87
88
|
];
|
|
88
89
|
var DEFAULT_RELATIONS = [
|
|
89
|
-
"*orders",
|
|
90
|
+
"*orders.payment_collections",
|
|
90
91
|
"*orders.customer",
|
|
91
92
|
"*orders.sales_channel",
|
|
92
93
|
"*orders.seller"
|
|
@@ -125,9 +126,9 @@ function transformOrderGroups(orderGroups) {
|
|
|
125
126
|
return {
|
|
126
127
|
_type: "group",
|
|
127
128
|
id: group.id,
|
|
128
|
-
display_id: `#G${group.
|
|
129
|
+
display_id: `#G${group.display_id}`,
|
|
129
130
|
order_ids: orderIds,
|
|
130
|
-
vendor: `${group.seller_count
|
|
131
|
+
vendor: `${group.seller_count} vendors`,
|
|
131
132
|
created_at: new Date(group.created_at),
|
|
132
133
|
customer_name: customerName,
|
|
133
134
|
payment_status: null,
|
|
@@ -190,9 +191,7 @@ var OrderListTable = () => {
|
|
|
190
191
|
search: true,
|
|
191
192
|
isLoading,
|
|
192
193
|
pageSize: PAGE_SIZE,
|
|
193
|
-
orderBy: [
|
|
194
|
-
{ key: "created_at", label: t("fields.createdAt") }
|
|
195
|
-
],
|
|
194
|
+
orderBy: [{ key: "created_at", label: t("fields.createdAt") }],
|
|
196
195
|
queryObject: raw,
|
|
197
196
|
noRecords: {
|
|
198
197
|
message: t("orders.list.noRecordsMessage")
|