@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/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.1.47-prod",
2
+ "version": "0.1.48-prod",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
@@ -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 === 'ORDER-NOTE'
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['ORDER-NOTE'] || item['ORDER'] || item['ORDER-RETURN']
67
+ item['ORDER_NOTE'] || item['ORDER'] || item['ORDER_RETURN']
68
68
  )
69
69
  .map((item: any) => [
70
- item['ORDER-NOTE'],
70
+ item['ORDER_NOTE'],
71
71
  item['ORDER'],
72
- item['ORDER-RETURN'],
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 === 'ORDER-PRODUCT'
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]?.['ORDER-PRODUCT'] || [];
67
+ const OrderNotesData = NotesData?.data[1]?.['ORDER_PRODUCT'] || [];
68
68
  const allNotes = [...OrdersData, ...OrderNotesData];
69
69
  setNotes(allNotes);
70
70
  setNoteLoadingStore(NotesLoading);