@bjsdistribution/dms-client-return 0.2.2-prod → 0.2.3-prod
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/common/expand-collapse/index.js +44 -26
- package/dist/common/expand-collapse/index.js.map +1 -1
- package/dist/common/modals/order-action-modal/OrderActionModal.js.map +1 -1
- package/dist/common/modals/order-action-modal/footer/OrderActionFooter.js.map +1 -1
- package/dist/components/client-portal/ClientPortalResponsive.js +148 -0
- package/dist/components/client-portal/ClientPortalResponsive.js.map +1 -0
- package/dist/components/client-portal/OutstandingTable.js +112 -118
- package/dist/components/client-portal/OutstandingTable.js.map +1 -1
- package/dist/components/client-portal/ReturnOverview.js +38 -37
- package/dist/components/client-portal/ReturnOverview.js.map +1 -1
- package/dist/components/client-portal/return-confirm/ConfirmedMain.js +4 -4
- package/dist/components/client-portal/return-confirm/ConfirmedMain.js.map +1 -1
- package/dist/components/client-portal/return-confirm/ReturnConfirmedTable.js +445 -185
- package/dist/components/client-portal/return-confirm/ReturnConfirmedTable.js.map +1 -1
- package/dist/components/fakeData.js.map +1 -1
- package/dist/components/order-daily-overview/common/fakedata.js.map +1 -1
- package/dist/components/order-daily-overview/common/mediaQuery.js +17 -0
- package/dist/components/order-daily-overview/common/mediaQuery.js.map +1 -0
- package/dist/components/order-daily-overview/filters/FilterStyle.js +174 -11
- package/dist/components/order-daily-overview/filters/FilterStyle.js.map +1 -1
- package/dist/components/order-daily-overview/header/route-header/RouterHeaderStyle.js +9 -4
- package/dist/components/order-daily-overview/header/route-header/RouterHeaderStyle.js.map +1 -1
- package/dist/components/order-daily-overview/header/route-header/title/HeaderTitle.js +11 -1
- package/dist/components/order-daily-overview/header/route-header/title/HeaderTitle.js.map +1 -1
- package/dist/components/order-daily-overview/header-filters/Styledfilters.js +46 -17
- package/dist/components/order-daily-overview/header-filters/Styledfilters.js.map +1 -1
- package/dist/components/order-daily-overview/index.js +76 -53
- package/dist/components/order-daily-overview/index.js.map +1 -1
- package/dist/components/order-daily-overview/return-after-table/table/OrderTable.js +101 -103
- package/dist/components/order-daily-overview/return-after-table/table/OrderTable.js.map +1 -1
- package/dist/components/order-daily-overview/return-after-table/table-filters/ReturnOrderFilter.js +135 -134
- package/dist/components/order-daily-overview/return-after-table/table-filters/ReturnOrderFilter.js.map +1 -1
- package/dist/components/order-daily-overview/return-after-table/table-filters/TableFilters.js +17 -11
- package/dist/components/order-daily-overview/return-after-table/table-filters/TableFilters.js.map +1 -1
- package/dist/components/order-daily-overview/return-order-table/return-orders-filters/ReturnFilter.js +5 -5
- package/dist/components/order-daily-overview/return-order-table/return-orders-filters/ReturnFilter.js.map +1 -1
- package/dist/components/order-daily-overview/return-order-table/return-orders-filters/ReturnOrderTable.js +129 -135
- package/dist/components/order-daily-overview/return-order-table/return-orders-filters/ReturnOrderTable.js.map +1 -1
- package/dist/components/order-daily-overview/return-order-table/return-orders-filters/returnstyles.js +346 -27
- package/dist/components/order-daily-overview/return-order-table/return-orders-filters/returnstyles.js.map +1 -1
- package/dist/components/order-daily-overview/table/ReturnTable.js +199 -183
- package/dist/components/order-daily-overview/table/ReturnTable.js.map +1 -1
- package/dist/components/order-daily-overview/table/table-data/styles.js +159 -38
- package/dist/components/order-daily-overview/table/table-data/styles.js.map +1 -1
- package/dist/components/order-daily-overview/table-view/PaginationStyle.js +21 -6
- package/dist/components/order-daily-overview/table-view/PaginationStyle.js.map +1 -1
- package/dist/components/order-view/DynamicTable.js +136 -35
- package/dist/components/order-view/DynamicTable.js.map +1 -1
- package/dist/components/order-view/details-filters/DetailsFilters.js +33 -8
- package/dist/components/order-view/details-filters/DetailsFilters.js.map +1 -1
- package/dist/components/order-view/details-filters/left-side-filters/ActionsMenu.js +23 -5
- package/dist/components/order-view/details-filters/left-side-filters/ActionsMenu.js.map +1 -1
- package/dist/components/order-view/details-filters/left-side-filters/dropdowns/DropDowns.js +39 -22
- package/dist/components/order-view/details-filters/left-side-filters/dropdowns/DropDowns.js.map +1 -1
- package/dist/components/order-view/details-filters/right-side-filters/Details.js +25 -12
- package/dist/components/order-view/details-filters/right-side-filters/Details.js.map +1 -1
- package/dist/components/order-view/general-information/Status.js +58 -28
- package/dist/components/order-view/general-information/Status.js.map +1 -1
- package/dist/components/order-view/generic-table/AuditLogs.js +129 -24
- package/dist/components/order-view/generic-table/AuditLogs.js.map +1 -1
- package/dist/components/order-view/notes/logs/index.js +15 -7
- package/dist/components/order-view/notes/logs/index.js.map +1 -1
- package/dist/components/order-view/notes/order-dropdown/NewReturnDropdown.js +7 -7
- package/dist/components/order-view/notes/order-dropdown/NewReturnDropdown.js.map +1 -1
- package/dist/components/order-view/notification/index.js +68 -55
- package/dist/components/order-view/notification/index.js.map +1 -1
- package/dist/components/order-view/order-actions/Dropdown.js +3 -3
- package/dist/components/order-view/order-actions/Dropdown.js.map +1 -1
- package/dist/components/order-view/order-actions/actions/cancel-order/CancelOrderTable.js +45 -47
- package/dist/components/order-view/order-actions/actions/cancel-order/CancelOrderTable.js.map +1 -1
- package/dist/components/order-view/order-actions/actions/cancel-order/ReturnReason.js +23 -36
- package/dist/components/order-view/order-actions/actions/cancel-order/ReturnReason.js.map +1 -1
- package/dist/components/order-view/order-actions/actions/confirm-order/tables/ProductTable.js +23 -25
- package/dist/components/order-view/order-actions/actions/confirm-order/tables/ProductTable.js.map +1 -1
- package/dist/components/order-view/order-actions/actions/force-debrief/ForceDebriefModal.js +88 -89
- package/dist/components/order-view/order-actions/actions/force-debrief/ForceDebriefModal.js.map +1 -1
- package/dist/components/order-view/order-actions/actions/force-debrief/charges/collection-add-ons/index.js +16 -16
- package/dist/components/order-view/order-actions/actions/force-debrief/charges/collection-add-ons/index.js.map +1 -1
- package/dist/components/order-view/order-actions/actions/force-debrief/escalation/EscalationReason.js +22 -23
- package/dist/components/order-view/order-actions/actions/force-debrief/escalation/EscalationReason.js.map +1 -1
- package/dist/components/order-view/order-actions/actions/force-debrief/order-info/RadioButtons.js +52 -56
- package/dist/components/order-view/order-actions/actions/force-debrief/order-info/RadioButtons.js.map +1 -1
- package/dist/components/order-view/order-actions/actions/force-debrief/order-info/dropdowns/FailureReasonDropdown.js +26 -27
- package/dist/components/order-view/order-actions/actions/force-debrief/order-info/dropdowns/FailureReasonDropdown.js.map +1 -1
- package/dist/components/order-view/order-actions/actions/hold-order/HoldOrderModal.js +29 -29
- package/dist/components/order-view/order-actions/actions/hold-order/HoldOrderModal.js.map +1 -1
- package/dist/components/order-view/order-actions/actions/split-order/SplitOrderTable.js +54 -222
- package/dist/components/order-view/order-actions/actions/split-order/SplitOrderTable.js.map +1 -1
- package/dist/components/order-view/order-actions/actions/split-order/index.js +37 -50
- package/dist/components/order-view/order-actions/actions/split-order/index.js.map +1 -1
- package/dist/components/order-view/order-actions/actions/uncancel-order/UncancelOrderTable.js +35 -37
- package/dist/components/order-view/order-actions/actions/uncancel-order/UncancelOrderTable.js.map +1 -1
- package/dist/components/order-view/order-actions/actions/what3words/What3WordsModal.tsx.js +85 -85
- package/dist/components/order-view/order-actions/actions/what3words/What3WordsModal.tsx.js.map +1 -1
- package/dist/components/order-view/order-details/expanded-content/customer-section/contact-info/ContactHome.js +12 -8
- package/dist/components/order-view/order-details/expanded-content/customer-section/contact-info/ContactHome.js.map +1 -1
- package/dist/components/order-view/order-details/expanded-content/customer-section/contact-info/ContactMobile.js +22 -18
- package/dist/components/order-view/order-details/expanded-content/customer-section/contact-info/ContactMobile.js.map +1 -1
- package/dist/components/order-view/order-details/expanded-content/customer-section/contact-info/index.js +14 -8
- package/dist/components/order-view/order-details/expanded-content/customer-section/contact-info/index.js.map +1 -1
- package/dist/components/order-view/order-details/expanded-content/customer-section/index.js +19 -13
- package/dist/components/order-view/order-details/expanded-content/customer-section/index.js.map +1 -1
- package/dist/components/order-view/order-details/expanded-content/customer-section/location-info/Address.js +11 -6
- package/dist/components/order-view/order-details/expanded-content/customer-section/location-info/Address.js.map +1 -1
- package/dist/components/order-view/order-details/expanded-content/customer-section/location-info/Latitude.js +23 -21
- package/dist/components/order-view/order-details/expanded-content/customer-section/location-info/Latitude.js.map +1 -1
- package/dist/components/order-view/order-details/expanded-content/customer-section/location-info/Longitude.js +23 -21
- package/dist/components/order-view/order-details/expanded-content/customer-section/location-info/Longitude.js.map +1 -1
- package/dist/components/order-view/order-details/expanded-content/customer-section/location-info/index.js +39 -21
- package/dist/components/order-view/order-details/expanded-content/customer-section/location-info/index.js.map +1 -1
- package/dist/components/order-view/order-details/expanded-content/footer/index.js +28 -14
- package/dist/components/order-view/order-details/expanded-content/footer/index.js.map +1 -1
- package/dist/components/order-view/order-details/expanded-content/orders-section/index.js +44 -28
- package/dist/components/order-view/order-details/expanded-content/orders-section/index.js.map +1 -1
- package/dist/components/order-view/order-details/expanded-content/services-section/OrderServices.js +28 -20
- package/dist/components/order-view/order-details/expanded-content/services-section/OrderServices.js.map +1 -1
- package/dist/components/order-view/order-details/expanded-content/services-section/ServiceLevel.js +17 -18
- package/dist/components/order-view/order-details/expanded-content/services-section/ServiceLevel.js.map +1 -1
- package/dist/components/order-view/order-details/expanded-content/services-section/ServiceType.js +22 -26
- package/dist/components/order-view/order-details/expanded-content/services-section/ServiceType.js.map +1 -1
- package/dist/components/order-view/order-details/expanded-content/services-section/index.js +79 -25
- package/dist/components/order-view/order-details/expanded-content/services-section/index.js.map +1 -1
- package/dist/components/order-view/order-details/helper.js.map +1 -1
- package/dist/components/order-view/products-info/collapsed-content/index.js +21 -15
- package/dist/components/order-view/products-info/collapsed-content/index.js.map +1 -1
- package/dist/components/order-view/products-info/index.js +36 -36
- package/dist/components/order-view/products-info/index.js.map +1 -1
- package/dist/components/order-view/return-client-products/product-table/ReturnProductTable.js +265 -334
- package/dist/components/order-view/return-client-products/product-table/ReturnProductTable.js.map +1 -1
- package/dist/components/order-view/store.js +155 -162
- package/dist/components/order-view/store.js.map +1 -1
- package/dist/components/order-view/toolbox-resources/expanded-content/index.js +281 -173
- package/dist/components/order-view/toolbox-resources/expanded-content/index.js.map +1 -1
- package/dist/components/utils.js +5 -4
- package/dist/components/utils.js.map +1 -1
- package/dist/types/common/modals/order-action-modal/OrderActionModal.d.ts +1 -2
- package/dist/types/common/modals/order-action-modal/footer/OrderActionFooter.d.ts +1 -1
- package/dist/types/components/client-portal/ClientPortalResponsive.d.ts +15 -0
- package/dist/types/components/order-daily-overview/common/mediaQuery.d.ts +4 -0
- package/dist/types/components/order-daily-overview/filters/FilterStyle.d.ts +1 -0
- package/dist/types/components/order-view/order-actions/Dropdown.d.ts +0 -1
- package/dist/types/components/order-view/return-client-products/product-table/ReturnProductTable.d.ts +1 -0
- package/dist/types/components/order-view/store.d.ts +0 -1
- package/dist/types/components/order-view/types.d.ts +1 -1
- package/dist/types/components/utils.d.ts +1 -0
- package/package.json +2 -2
- package/dist/assets/icons/ChevronDownIcon.js +0 -26
- package/dist/assets/icons/ChevronDownIcon.js.map +0 -1
- package/dist/components/order-view/return-client-products/product-table/palletGrouping.js +0 -47
- package/dist/components/order-view/return-client-products/product-table/palletGrouping.js.map +0 -1
- package/dist/types/components/order-view/return-client-products/product-table/palletGrouping.d.ts +0 -23
|
@@ -1,72 +1,72 @@
|
|
|
1
|
-
import { jsx as t, Fragment as
|
|
2
|
-
import
|
|
3
|
-
import { useClientData as
|
|
1
|
+
import { jsx as t, Fragment as P, jsxs as s } from "react/jsx-runtime";
|
|
2
|
+
import k, { useState as O, useMemo as A } from "react";
|
|
3
|
+
import { useClientData as v, useInternalSearchText as W } from "../../order-view/store.js";
|
|
4
4
|
import { useStatsLoading as U } from "../store/store.js";
|
|
5
|
-
import { StyledTableWrapper as
|
|
5
|
+
import { StyledTableWrapper as R, StyledTable as L, EmptyDataContainer as M, ColumStyle as d, GreyBox as c } from "./table-data/styles.js";
|
|
6
6
|
import { Skeleton as F, Empty as Y } from "antd";
|
|
7
7
|
import { useNavigate as G, NavLink as j } from "react-router-dom";
|
|
8
8
|
import { filtersReducerAtom as B } from "../header-filters/filterStore.js";
|
|
9
9
|
import { useCustomerData as $ } from "../../store.js";
|
|
10
10
|
import q from "../../../common/SortIcon.js";
|
|
11
|
-
import
|
|
12
|
-
import { useAtom as
|
|
13
|
-
const
|
|
14
|
-
const
|
|
11
|
+
import N from "../../../common/CaretDownFilledIcon.js";
|
|
12
|
+
import { useAtom as w } from "jotai";
|
|
13
|
+
const b = (h, g) => {
|
|
14
|
+
const o = new URLSearchParams({
|
|
15
15
|
customerId: h?.toString()
|
|
16
16
|
});
|
|
17
|
-
return g &&
|
|
17
|
+
return g && o.set("type", g), `/orders/view/return/filter?${o.toString()}`;
|
|
18
18
|
}, nt = () => {
|
|
19
|
-
const [h] =
|
|
20
|
-
|
|
21
|
-
},
|
|
19
|
+
const [h] = v(), [g] = U(), [, o] = w(B), C = G(), [x] = $(), [f] = W(), [p, T] = O(null), y = (l) => {
|
|
20
|
+
T((n) => n?.key === l && n.direction === "asc" ? { key: l, direction: "desc" } : { key: l, direction: "asc" });
|
|
21
|
+
}, m = A(() => (f && f?.length > 0 ? h || [] : x || [])?.map((a) => {
|
|
22
22
|
const e = h?.find(
|
|
23
|
-
(
|
|
23
|
+
(r) => r?.customer_id != null && r?.customer_id.toString() === a?.customer_id?.toString()
|
|
24
24
|
);
|
|
25
|
-
let i =
|
|
25
|
+
let i = a?.children?.map((r) => {
|
|
26
26
|
const D = h?.find(
|
|
27
|
-
(
|
|
27
|
+
(E) => E?.customer_id != null && E?.customer_id.toString() === r?.customer_id?.toString()
|
|
28
28
|
);
|
|
29
29
|
return {
|
|
30
|
-
...
|
|
30
|
+
...r,
|
|
31
31
|
...D
|
|
32
32
|
};
|
|
33
33
|
});
|
|
34
34
|
return {
|
|
35
|
-
...
|
|
35
|
+
...a,
|
|
36
36
|
...e,
|
|
37
37
|
children: i
|
|
38
38
|
};
|
|
39
|
-
}) || [], [
|
|
40
|
-
if (!
|
|
41
|
-
const { key:
|
|
42
|
-
return [...
|
|
43
|
-
const i =
|
|
44
|
-
return typeof i == "number" && typeof
|
|
39
|
+
}) || [], [x, h, f]), S = A(() => {
|
|
40
|
+
if (!m || !p) return m;
|
|
41
|
+
const { key: l, direction: n } = p;
|
|
42
|
+
return [...m].sort((a, e) => {
|
|
43
|
+
const i = a[l], r = e[l];
|
|
44
|
+
return typeof i == "number" && typeof r == "number" ? n === "asc" ? i - r : r - i : typeof i == "string" && typeof r == "string" ? n === "asc" ? i.localeCompare(r) : r.localeCompare(i) : 0;
|
|
45
45
|
});
|
|
46
|
-
}, [
|
|
47
|
-
|
|
46
|
+
}, [m, p]), I = (l) => !p || p.key !== l ? /* @__PURE__ */ t(q, {}) : p.direction === "asc" ? /* @__PURE__ */ t(N, {}) : /* @__PURE__ */ t(N, {}), _ = (l) => {
|
|
47
|
+
l ? (o({
|
|
48
48
|
type: "SET_CLIENT_FILTER",
|
|
49
|
-
payload:
|
|
50
|
-
}),
|
|
49
|
+
payload: l
|
|
50
|
+
}), o({
|
|
51
51
|
type: "SET_PAGE",
|
|
52
52
|
payload: 1
|
|
53
|
-
})) :
|
|
53
|
+
})) : o({
|
|
54
54
|
type: "SET_CLIENT_FILTER",
|
|
55
55
|
payload: []
|
|
56
|
-
}),
|
|
57
|
-
}, u = (
|
|
58
|
-
|
|
56
|
+
}), C(b(l));
|
|
57
|
+
}, u = (l, n) => {
|
|
58
|
+
l ? (o({
|
|
59
59
|
type: "SET_CLIENT_FILTER",
|
|
60
|
-
payload:
|
|
61
|
-
}),
|
|
60
|
+
payload: l
|
|
61
|
+
}), o({
|
|
62
62
|
type: "SET_PAGE",
|
|
63
63
|
payload: 1
|
|
64
|
-
})) :
|
|
64
|
+
})) : o({
|
|
65
65
|
type: "SET_CLIENT_FILTER",
|
|
66
66
|
payload: []
|
|
67
|
-
}),
|
|
67
|
+
}), C(b(l, n));
|
|
68
68
|
};
|
|
69
|
-
return /* @__PURE__ */ t(
|
|
69
|
+
return /* @__PURE__ */ t(P, { children: /* @__PURE__ */ t(R, { children: /* @__PURE__ */ s(L, { className: "return-overview-table", children: [
|
|
70
70
|
/* @__PURE__ */ s("colgroup", { children: [
|
|
71
71
|
/* @__PURE__ */ t("col", { style: { width: "180px" } }),
|
|
72
72
|
/* @__PURE__ */ t("col", { style: { width: "180px" } }),
|
|
@@ -94,194 +94,210 @@ const C = (h, g) => {
|
|
|
94
94
|
{ label: "Re-Del", key: "RE-Del", width: "90px", align: "center" },
|
|
95
95
|
{ label: "Recycle", key: "RECYCLE", width: "90px", align: "center" },
|
|
96
96
|
{ label: "Unknown", key: "UNKNOWN", width: "90px", align: "center" }
|
|
97
|
-
].map(({ label:
|
|
98
|
-
|
|
97
|
+
].map(({ label: l, key: n, width: a, align: e }) => /* @__PURE__ */ t("th", { onClick: () => y(n), style: { whiteSpace: "nowrap", width: a, textAlign: e }, children: /* @__PURE__ */ s("div", { style: { display: "flex", cursor: "pointer", justifyContent: e === "left" ? "flex-start" : "center" }, children: [
|
|
98
|
+
l,
|
|
99
99
|
" ",
|
|
100
|
-
/* @__PURE__ */ t("span", { children:
|
|
100
|
+
/* @__PURE__ */ t("span", { children: I(n) })
|
|
101
101
|
] }) }, n)) }) }),
|
|
102
|
-
/* @__PURE__ */ t("tbody", { children: g ? /* @__PURE__ */ t("tr", { children: /* @__PURE__ */ t("td", { colSpan: 12, children: /* @__PURE__ */ t(F, { active: !0 }) }) }) :
|
|
103
|
-
if (!
|
|
104
|
-
const
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
children: /* @__PURE__ */ t("span", { style: { fontWeight: !i && e?.children?.length > 0 ? 600 : 400 }, children: e?.trading_as })
|
|
113
|
-
}
|
|
114
|
-
),
|
|
115
|
-
/* @__PURE__ */ t(
|
|
116
|
-
"td",
|
|
117
|
-
{
|
|
118
|
-
style: {
|
|
119
|
-
color: "#0099ff",
|
|
120
|
-
fontWeight: 600,
|
|
121
|
-
textAlign: "center"
|
|
122
|
-
},
|
|
123
|
-
children: /* @__PURE__ */ t(
|
|
124
|
-
j,
|
|
102
|
+
/* @__PURE__ */ t("tbody", { children: g ? /* @__PURE__ */ t("tr", { className: "state-row", children: /* @__PURE__ */ t("td", { colSpan: 12, children: /* @__PURE__ */ t(F, { active: !0 }) }) }) : S?.length === 0 ? /* @__PURE__ */ t("tr", { className: "state-row", children: /* @__PURE__ */ t("td", { colSpan: 12, children: /* @__PURE__ */ t(M, { children: /* @__PURE__ */ t(Y, {}) }) }) }) : S?.map((l, n) => {
|
|
103
|
+
if (!l) return null;
|
|
104
|
+
const a = (e, i = !1) => e ? /* @__PURE__ */ s(
|
|
105
|
+
"tr",
|
|
106
|
+
{
|
|
107
|
+
className: i ? "child-row" : "parent-row",
|
|
108
|
+
style: i ? { backgroundColor: "#ffffff" } : {},
|
|
109
|
+
children: [
|
|
110
|
+
/* @__PURE__ */ t(
|
|
111
|
+
"td",
|
|
125
112
|
{
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
113
|
+
"data-label": "Trading Name",
|
|
114
|
+
style: {
|
|
115
|
+
paddingLeft: "15px",
|
|
116
|
+
color: "inherit"
|
|
129
117
|
},
|
|
118
|
+
children: /* @__PURE__ */ t("span", { style: { fontWeight: !i && e?.children?.length > 0 ? 600 : 400 }, children: e?.trading_as })
|
|
119
|
+
}
|
|
120
|
+
),
|
|
121
|
+
/* @__PURE__ */ t(
|
|
122
|
+
"td",
|
|
123
|
+
{
|
|
124
|
+
"data-label": "Client",
|
|
130
125
|
style: {
|
|
131
126
|
color: "#0099ff",
|
|
132
127
|
fontWeight: 600,
|
|
133
|
-
|
|
134
|
-
display: "inline-block"
|
|
128
|
+
textAlign: "center"
|
|
135
129
|
},
|
|
136
|
-
children:
|
|
130
|
+
children: /* @__PURE__ */ t(
|
|
131
|
+
j,
|
|
132
|
+
{
|
|
133
|
+
to: b(e?.customer_id),
|
|
134
|
+
onClick: (r) => {
|
|
135
|
+
r.ctrlKey || r.metaKey || (r.preventDefault(), _(e?.customer_id));
|
|
136
|
+
},
|
|
137
|
+
style: {
|
|
138
|
+
color: "#0099ff",
|
|
139
|
+
fontWeight: 600,
|
|
140
|
+
cursor: "pointer",
|
|
141
|
+
display: "inline-block"
|
|
142
|
+
},
|
|
143
|
+
children: e?.customer_name
|
|
144
|
+
}
|
|
145
|
+
)
|
|
137
146
|
}
|
|
138
|
-
)
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
/* @__PURE__ */ t(
|
|
144
|
-
"td",
|
|
145
|
-
{
|
|
146
|
-
style: {
|
|
147
|
-
color: e?.RTS > 0 ? "#0099ff" : "inherit",
|
|
148
|
-
fontWeight: e?.RTS > 0 ? 600 : "normal",
|
|
149
|
-
cursor: e?.RTS > 0 ? "pointer" : "default",
|
|
150
|
-
textAlign: "center"
|
|
151
|
-
},
|
|
152
|
-
onClick: e?.RTS > 0 ? () => u(e?.customer_id, "RTS") : void 0,
|
|
153
|
-
children: /* @__PURE__ */ t(c, { children: /* @__PURE__ */ t(
|
|
154
|
-
o,
|
|
147
|
+
),
|
|
148
|
+
/* @__PURE__ */ t("td", { "data-label": "Orders", style: { textAlign: "center" }, children: /* @__PURE__ */ t(d, { children: /* @__PURE__ */ t(c, { children: e?.orders ?? 0 }) }) }),
|
|
149
|
+
/* @__PURE__ */ t("td", { "data-label": "Products", style: { textAlign: "center" }, children: /* @__PURE__ */ t(d, { children: /* @__PURE__ */ t(c, { children: e?.return_order_products ?? 0 }) }) }),
|
|
150
|
+
/* @__PURE__ */ t(
|
|
151
|
+
"td",
|
|
155
152
|
{
|
|
153
|
+
"data-label": "RTS",
|
|
156
154
|
style: {
|
|
157
|
-
|
|
155
|
+
color: e?.RTS > 0 ? "#0099ff" : "inherit",
|
|
156
|
+
fontWeight: e?.RTS > 0 ? 600 : "normal",
|
|
157
|
+
cursor: e?.RTS > 0 ? "pointer" : "default",
|
|
158
|
+
textAlign: "center"
|
|
158
159
|
},
|
|
159
|
-
|
|
160
|
+
onClick: e?.RTS > 0 ? () => u(e?.customer_id, "RTS") : void 0,
|
|
161
|
+
children: /* @__PURE__ */ t(d, { children: /* @__PURE__ */ t(
|
|
162
|
+
c,
|
|
163
|
+
{
|
|
164
|
+
style: {
|
|
165
|
+
backgroundColor: e?.RTS > 0 ? "rgba(99, 150, 229, 0.1)" : "rgba(153, 153, 153, 0.1)"
|
|
166
|
+
},
|
|
167
|
+
children: e?.RTS ?? 0
|
|
168
|
+
}
|
|
169
|
+
) })
|
|
160
170
|
}
|
|
161
|
-
)
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
/* @__PURE__ */ t(
|
|
166
|
-
"td",
|
|
167
|
-
{
|
|
168
|
-
style: {
|
|
169
|
-
color: e?.["CLAIMS PAID"] > 0 ? "#0099ff" : "inherit",
|
|
170
|
-
fontWeight: e?.["CLAIMS PAID"] > 0 ? 600 : "normal",
|
|
171
|
-
cursor: e?.["CLAIMS PAID"] > 0 ? "pointer" : "default",
|
|
172
|
-
textAlign: "center"
|
|
173
|
-
},
|
|
174
|
-
onClick: e?.["CLAIMS PAID"] > 0 ? () => u(e?.customer_id, "CLAIMS PAID") : void 0,
|
|
175
|
-
children: /* @__PURE__ */ t(c, { children: /* @__PURE__ */ t(
|
|
176
|
-
o,
|
|
171
|
+
),
|
|
172
|
+
/* @__PURE__ */ t("td", { "data-label": "Pending", style: { textAlign: "center" }, children: /* @__PURE__ */ t(d, { children: /* @__PURE__ */ t(c, { children: e?.PENDING ?? 0 }) }) }),
|
|
173
|
+
/* @__PURE__ */ t(
|
|
174
|
+
"td",
|
|
177
175
|
{
|
|
176
|
+
"data-label": "Claims Paid",
|
|
178
177
|
style: {
|
|
179
|
-
|
|
178
|
+
color: e?.["CLAIMS PAID"] > 0 ? "#0099ff" : "inherit",
|
|
179
|
+
fontWeight: e?.["CLAIMS PAID"] > 0 ? 600 : "normal",
|
|
180
|
+
cursor: e?.["CLAIMS PAID"] > 0 ? "pointer" : "default",
|
|
181
|
+
textAlign: "center"
|
|
180
182
|
},
|
|
181
|
-
|
|
183
|
+
onClick: e?.["CLAIMS PAID"] > 0 ? () => u(e?.customer_id, "CLAIMS PAID") : void 0,
|
|
184
|
+
children: /* @__PURE__ */ t(d, { children: /* @__PURE__ */ t(
|
|
185
|
+
c,
|
|
186
|
+
{
|
|
187
|
+
style: {
|
|
188
|
+
backgroundColor: e?.["CLAIMS PAID"] > 0 ? "rgba(99, 150, 229, 0.1)" : "rgba(153, 153, 153, 0.1)"
|
|
189
|
+
},
|
|
190
|
+
children: e?.["CLAIMS PAID"] ?? 0
|
|
191
|
+
}
|
|
192
|
+
) })
|
|
182
193
|
}
|
|
183
|
-
)
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
/* @__PURE__ */ t(
|
|
187
|
-
"td",
|
|
188
|
-
{
|
|
189
|
-
style: {
|
|
190
|
-
color: e?.DISPOSE > 0 ? "#0099ff" : "inherit",
|
|
191
|
-
fontWeight: e?.DISPOSE > 0 ? 600 : "normal",
|
|
192
|
-
cursor: e?.DISPOSE > 0 ? "pointer" : "default",
|
|
193
|
-
textAlign: "center"
|
|
194
|
-
},
|
|
195
|
-
onClick: e?.DISPOSE > 0 ? () => u(e?.customer_id, "DISPOSE") : void 0,
|
|
196
|
-
children: /* @__PURE__ */ t(c, { children: /* @__PURE__ */ t(
|
|
197
|
-
o,
|
|
194
|
+
),
|
|
195
|
+
/* @__PURE__ */ t(
|
|
196
|
+
"td",
|
|
198
197
|
{
|
|
198
|
+
"data-label": "Dispose",
|
|
199
199
|
style: {
|
|
200
|
-
|
|
200
|
+
color: e?.DISPOSE > 0 ? "#0099ff" : "inherit",
|
|
201
|
+
fontWeight: e?.DISPOSE > 0 ? 600 : "normal",
|
|
202
|
+
cursor: e?.DISPOSE > 0 ? "pointer" : "default",
|
|
203
|
+
textAlign: "center"
|
|
201
204
|
},
|
|
202
|
-
|
|
205
|
+
onClick: e?.DISPOSE > 0 ? () => u(e?.customer_id, "DISPOSE") : void 0,
|
|
206
|
+
children: /* @__PURE__ */ t(d, { children: /* @__PURE__ */ t(
|
|
207
|
+
c,
|
|
208
|
+
{
|
|
209
|
+
style: {
|
|
210
|
+
backgroundColor: e?.DISPOSE > 0 ? "rgba(99, 150, 229, 0.1)" : "rgba(153, 153, 153, 0.1)"
|
|
211
|
+
},
|
|
212
|
+
children: e?.DISPOSE ?? 0
|
|
213
|
+
}
|
|
214
|
+
) })
|
|
203
215
|
}
|
|
204
|
-
)
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
/* @__PURE__ */ t(
|
|
208
|
-
"td",
|
|
209
|
-
{
|
|
210
|
-
style: {
|
|
211
|
-
color: e?.["RE-ALLOCATE"] > 0 ? "#0099ff" : "inherit",
|
|
212
|
-
fontWeight: e?.["RE-ALLOCATE"] > 0 ? 600 : "normal",
|
|
213
|
-
cursor: e?.["RE-ALLOCATE"] > 0 ? "pointer" : "default",
|
|
214
|
-
textAlign: "center"
|
|
215
|
-
},
|
|
216
|
-
onClick: e?.["RE-ALLOCATE"] > 0 ? () => u(e?.customer_id, "RE-ALLOCATE") : void 0,
|
|
217
|
-
children: /* @__PURE__ */ t(c, { children: /* @__PURE__ */ t(
|
|
218
|
-
o,
|
|
216
|
+
),
|
|
217
|
+
/* @__PURE__ */ t(
|
|
218
|
+
"td",
|
|
219
219
|
{
|
|
220
|
+
"data-label": "Re-allocate",
|
|
220
221
|
style: {
|
|
221
|
-
|
|
222
|
+
color: e?.["RE-ALLOCATE"] > 0 ? "#0099ff" : "inherit",
|
|
223
|
+
fontWeight: e?.["RE-ALLOCATE"] > 0 ? 600 : "normal",
|
|
224
|
+
cursor: e?.["RE-ALLOCATE"] > 0 ? "pointer" : "default",
|
|
225
|
+
textAlign: "center"
|
|
222
226
|
},
|
|
223
|
-
|
|
227
|
+
onClick: e?.["RE-ALLOCATE"] > 0 ? () => u(e?.customer_id, "RE-ALLOCATE") : void 0,
|
|
228
|
+
children: /* @__PURE__ */ t(d, { children: /* @__PURE__ */ t(
|
|
229
|
+
c,
|
|
230
|
+
{
|
|
231
|
+
style: {
|
|
232
|
+
backgroundColor: e?.["RE-ALLOCATE"] > 0 ? "rgba(99, 150, 229, 0.1)" : "rgba(153, 153, 153, 0.1)"
|
|
233
|
+
},
|
|
234
|
+
children: e?.["RE-ALLOCATE"] ?? 0
|
|
235
|
+
}
|
|
236
|
+
) })
|
|
224
237
|
}
|
|
225
|
-
)
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
/* @__PURE__ */ t(
|
|
230
|
-
"td",
|
|
231
|
-
{
|
|
232
|
-
style: {
|
|
233
|
-
color: e?.RECYCLE > 0 ? "#0099ff" : "inherit",
|
|
234
|
-
fontWeight: e?.RECYCLE > 0 ? 600 : "normal",
|
|
235
|
-
cursor: e?.RECYCLE > 0 ? "pointer" : "default",
|
|
236
|
-
textAlign: "center"
|
|
237
|
-
},
|
|
238
|
-
onClick: e?.RECYCLE > 0 ? () => u(e?.customer_id, "RECYCLE") : void 0,
|
|
239
|
-
children: /* @__PURE__ */ t(c, { children: /* @__PURE__ */ t(
|
|
240
|
-
o,
|
|
238
|
+
),
|
|
239
|
+
/* @__PURE__ */ t("td", { "data-label": "Re-Del", style: { textAlign: "center" }, children: /* @__PURE__ */ t(d, { children: /* @__PURE__ */ t(c, { children: e?.["RE-DEL"] ?? 0 }) }) }),
|
|
240
|
+
/* @__PURE__ */ t(
|
|
241
|
+
"td",
|
|
241
242
|
{
|
|
243
|
+
"data-label": "Recycle",
|
|
242
244
|
style: {
|
|
243
|
-
|
|
245
|
+
color: e?.RECYCLE > 0 ? "#0099ff" : "inherit",
|
|
246
|
+
fontWeight: e?.RECYCLE > 0 ? 600 : "normal",
|
|
247
|
+
cursor: e?.RECYCLE > 0 ? "pointer" : "default",
|
|
248
|
+
textAlign: "center"
|
|
244
249
|
},
|
|
245
|
-
|
|
250
|
+
onClick: e?.RECYCLE > 0 ? () => u(e?.customer_id, "RECYCLE") : void 0,
|
|
251
|
+
children: /* @__PURE__ */ t(d, { children: /* @__PURE__ */ t(
|
|
252
|
+
c,
|
|
253
|
+
{
|
|
254
|
+
style: {
|
|
255
|
+
backgroundColor: e?.RECYCLE > 0 ? "rgba(99, 150, 229, 0.1)" : "rgba(153, 153, 153, 0.1)"
|
|
256
|
+
},
|
|
257
|
+
children: e?.RECYCLE ?? 0
|
|
258
|
+
}
|
|
259
|
+
) })
|
|
246
260
|
}
|
|
247
|
-
)
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
/* @__PURE__ */ t(
|
|
251
|
-
"td",
|
|
252
|
-
{
|
|
253
|
-
style: {
|
|
254
|
-
color: e?.UNKNOWN > 0 ? "#0099ff" : "inherit",
|
|
255
|
-
fontWeight: e?.UNKNOWN > 0 ? 600 : "normal",
|
|
256
|
-
cursor: e?.UNKNOWN > 0 ? "pointer" : "default",
|
|
257
|
-
textAlign: "center"
|
|
258
|
-
},
|
|
259
|
-
onClick: e?.UNKNOWN > 0 ? () => u(e?.customer_id, "UNKNOWN") : void 0,
|
|
260
|
-
children: /* @__PURE__ */ t(c, { children: /* @__PURE__ */ t(
|
|
261
|
-
o,
|
|
261
|
+
),
|
|
262
|
+
/* @__PURE__ */ t(
|
|
263
|
+
"td",
|
|
262
264
|
{
|
|
265
|
+
"data-label": "Unknown",
|
|
263
266
|
style: {
|
|
264
|
-
|
|
267
|
+
color: e?.UNKNOWN > 0 ? "#0099ff" : "inherit",
|
|
268
|
+
fontWeight: e?.UNKNOWN > 0 ? 600 : "normal",
|
|
269
|
+
cursor: e?.UNKNOWN > 0 ? "pointer" : "default",
|
|
270
|
+
textAlign: "center"
|
|
265
271
|
},
|
|
266
|
-
|
|
272
|
+
onClick: e?.UNKNOWN > 0 ? () => u(e?.customer_id, "UNKNOWN") : void 0,
|
|
273
|
+
children: /* @__PURE__ */ t(d, { children: /* @__PURE__ */ t(
|
|
274
|
+
c,
|
|
275
|
+
{
|
|
276
|
+
style: {
|
|
277
|
+
backgroundColor: e?.UNKNOWN > 0 ? "rgba(99, 150, 229, 0.1)" : "rgba(153, 153, 153, 0.1)"
|
|
278
|
+
},
|
|
279
|
+
children: e?.UNKNOWN ?? 0
|
|
280
|
+
}
|
|
281
|
+
) })
|
|
267
282
|
}
|
|
268
|
-
)
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
283
|
+
)
|
|
284
|
+
]
|
|
285
|
+
},
|
|
286
|
+
i ? `child-${e?.customer_id}` : e?.customer_id
|
|
287
|
+
) : null;
|
|
288
|
+
return !l?.children || l?.children?.length === 0 ? /* @__PURE__ */ t(k.Fragment, { children: a(l, !1) }, n) : /* @__PURE__ */ t("tr", { className: "group-row", children: /* @__PURE__ */ t("td", { colSpan: 12, style: { padding: 0, border: "none", background: "transparent" }, children: /* @__PURE__ */ t("div", { className: "group-box", style: {
|
|
273
289
|
margin: "3px 10px",
|
|
274
290
|
backgroundColor: "#f8fafc",
|
|
275
291
|
borderRadius: "16px",
|
|
276
292
|
border: "1px solid rgba(0,0,0,0.08)",
|
|
277
293
|
borderLeft: "4px solid #0099ff",
|
|
278
294
|
boxShadow: "inset 0 1px 4px rgba(0,0,0,0.02)"
|
|
279
|
-
}, children: /* @__PURE__ */ t(
|
|
295
|
+
}, children: /* @__PURE__ */ t(R, { className: "group-table-wrapper", style: {
|
|
280
296
|
padding: "0px 4px",
|
|
281
297
|
border: "none",
|
|
282
298
|
borderRadius: "15px",
|
|
283
299
|
overflow: "hidden"
|
|
284
|
-
}, children: /* @__PURE__ */ s(
|
|
300
|
+
}, children: /* @__PURE__ */ s(L, { className: "return-overview-table group-table", style: { marginBottom: 0, borderSpacing: "0 2px" }, children: [
|
|
285
301
|
/* @__PURE__ */ s("colgroup", { children: [
|
|
286
302
|
/* @__PURE__ */ t("col", { style: { width: "180px" } }),
|
|
287
303
|
/* @__PURE__ */ t("col", { style: { width: "180px" } }),
|
|
@@ -297,8 +313,8 @@ const C = (h, g) => {
|
|
|
297
313
|
/* @__PURE__ */ t("col", { style: { width: "90px" } })
|
|
298
314
|
] }),
|
|
299
315
|
/* @__PURE__ */ s("tbody", { children: [
|
|
300
|
-
|
|
301
|
-
|
|
316
|
+
a(l, !1),
|
|
317
|
+
l?.children?.map((e) => a(e, !0))
|
|
302
318
|
] })
|
|
303
319
|
] }) }) }) }) }, `group-${n}`);
|
|
304
320
|
}) })
|