@bjsdistribution/dms-client-return 0.1.47-prod → 0.1.48-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/dms-client-return.cjs.development.js +5 -5
- package/dist/dms-client-return.cjs.development.js.map +1 -1
- package/dist/dms-client-return.cjs.production.min.js +1 -1
- package/dist/dms-client-return.cjs.production.min.js.map +1 -1
- package/dist/dms-client-return.esm.js +5 -5
- package/dist/dms-client-return.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/order-view/notes/index.tsx +4 -4
- package/src/components/order-view/order-actions/actions/confirm-order/tables/NotesTable.tsx +2 -2
package/package.json
CHANGED
|
@@ -33,7 +33,7 @@ function Notes() {
|
|
|
33
33
|
.flatMap((item: any) =>
|
|
34
34
|
item?.static_child_mappings
|
|
35
35
|
?.filter(
|
|
36
|
-
(child: any) => child?.child_module?.name === '
|
|
36
|
+
(child: any) => child?.child_module?.name === 'ORDER_NOTE'
|
|
37
37
|
)
|
|
38
38
|
.map((child: any) => ({
|
|
39
39
|
id: child?.child_module?.id,
|
|
@@ -64,12 +64,12 @@ function Notes() {
|
|
|
64
64
|
const updatedData = NotesData?.data
|
|
65
65
|
.filter(
|
|
66
66
|
(item: any) =>
|
|
67
|
-
item['
|
|
67
|
+
item['ORDER_NOTE'] || item['ORDER'] || item['ORDER_RETURN']
|
|
68
68
|
)
|
|
69
69
|
.map((item: any) => [
|
|
70
|
-
item['
|
|
70
|
+
item['ORDER_NOTE'],
|
|
71
71
|
item['ORDER'],
|
|
72
|
-
item['
|
|
72
|
+
item['ORDER_RETURN'],
|
|
73
73
|
])
|
|
74
74
|
.flat()
|
|
75
75
|
.filter(Boolean);
|
|
@@ -35,7 +35,7 @@ function NotesTable() {
|
|
|
35
35
|
?.filter((item: any) => item?.name === 'ORDER')
|
|
36
36
|
?.map((item: any) => {
|
|
37
37
|
const orderProductId = item?.static_child_mappings.find(
|
|
38
|
-
(i: any) => i?.child_module?.name === '
|
|
38
|
+
(i: any) => i?.child_module?.name === 'ORDER_PRODUCT'
|
|
39
39
|
)?.child_module?.id;
|
|
40
40
|
|
|
41
41
|
return {
|
|
@@ -64,7 +64,7 @@ function NotesTable() {
|
|
|
64
64
|
}
|
|
65
65
|
if (!NotesLoading && NotesData?.data) {
|
|
66
66
|
const OrdersData = NotesData?.data[0]?.ORDER || [];
|
|
67
|
-
const OrderNotesData = NotesData?.data[1]?.['
|
|
67
|
+
const OrderNotesData = NotesData?.data[1]?.['ORDER_PRODUCT'] || [];
|
|
68
68
|
const allNotes = [...OrdersData, ...OrderNotesData];
|
|
69
69
|
setNotes(allNotes);
|
|
70
70
|
setNoteLoadingStore(NotesLoading);
|