@things-factory/operato-wms 4.0.35 → 4.0.36

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/Dockerfile CHANGED
@@ -1,49 +1,5 @@
1
1
  # Use an official ubuntu image
2
- FROM ubuntu:18.04
3
-
4
- # Use an official node image
5
- FROM node:14.18
6
-
7
- ARG DEBIAN_FRONTEND=noninteractive
8
-
9
- # Install the required packages
10
- RUN apt-get update -o Acquire::CompressionTypes::Order::=gz
11
- RUN apt-get upgrade -y
12
-
13
- RUN echo "deb http://ftp.de.debian.org/debian stable main" > /etc/apt/sources.list
14
-
15
- RUN apt-get update
16
-
17
- RUN apt-get install -y --no-install-recommends apt-utils
18
- RUN apt-get install -y chromium
19
- RUN apt-get install -y libcups2-dev
20
- RUN apt-get install -y libavahi-compat-libdnssd-dev
21
- RUN apt-get install -y gconf-service libasound2 libatk1.0-0 libcairo2 libcups2 libfontconfig1 libgdk-pixbuf2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libxss1 fonts-liberation libnss3 lsb-release xdg-utils libaio1
22
-
23
- RUN apt update
24
- RUN apt-get install -y ghostscript
25
- RUN apt-get install -y curl
26
- RUN apt-get install -y git
27
-
28
- # install chrome
29
- RUN wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
30
- RUN dpkg -i google-chrome-stable_current_amd64.deb; apt-get -fy install
31
- RUN rm google-chrome-stable_current_amd64.deb
32
-
33
-
34
-
35
- # make oracle path
36
- RUN mkdir -p /opt/oracle
37
- WORKDIR /opt/oracle
38
-
39
- # download newest oracle cilent for connect to Oracle Database
40
- RUN wget https://download.oracle.com/otn_software/linux/instantclient/instantclient-basiclite-linuxx64.zip && \
41
- unzip instantclient-basiclite-linuxx64.zip && \
42
- rm -f instantclient-basiclite-linuxx64.zip && \
43
- cd /opt/oracle/instantclient* && \
44
- rm -f *jdbc* *occi* *mysql* *mql1* *ipc1* *jar uidrvci genezi adrci && \
45
- echo /opt/oracle/instantclient* > /etc/ld.so.conf.d/oracle-instantclient.conf &&\
46
- ldconfig
2
+ FROM hatiolab/operato-env:latest
47
3
 
48
4
  # Set the working directory to /app
49
5
  WORKDIR /app
@@ -667,6 +667,7 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
667
667
  if (!response.errors) {
668
668
  this._orderNo = orderNo
669
669
  const worksheetInfo = response.data.unloadingReturnWorksheet.worksheetInfo
670
+ this._worksheetInfo = worksheetInfo
670
671
 
671
672
  this.orderProductData = {
672
673
  records: orderBy(
@@ -1113,25 +1114,25 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
1113
1114
  if (this.refOrderType === AVAIL_ORDER_TYPES.ARRIVAL_NOTICE.value) {
1114
1115
  response = await client.mutate({
1115
1116
  mutation: gql`
1116
- mutation completeUnloadingPartially($arrivalNoticeNo: String!, $worksheetDetail: WorksheetDetailPatch!) {
1117
+ mutation completeUnloadingPartially($arrivalNoticeNo: String!, $worksheetDetail: [WorksheetDetailPatch!]) {
1117
1118
  completeUnloadingPartially(arrivalNoticeNo: $arrivalNoticeNo, worksheetDetail: $worksheetDetail)
1118
1119
  }
1119
1120
  `,
1120
1121
  variables: {
1121
1122
  arrivalNoticeNo: this._orderNo,
1122
- worksheetDetail: this._getWorksheetDetails().find(wsd => wsd.name === this._selectedOrderProduct.name)
1123
+ worksheetDetail: this._getWorksheetDetails('partial').filter(wsd => wsd.actualPackQty > 0)
1123
1124
  }
1124
1125
  })
1125
1126
  } else {
1126
1127
  response = await client.mutate({
1127
1128
  mutation: gql`
1128
- mutation completeUnloadReturnPartially($returnOrderNo: String!, $worksheetDetail: WorksheetDetailPatch!) {
1129
+ mutation completeUnloadReturnPartially($returnOrderNo: String!, $worksheetDetail: [WorksheetDetailPatch!]) {
1129
1130
  completeUnloadReturnPartially(returnOrderNo: $returnOrderNo, worksheetDetail: $worksheetDetail)
1130
1131
  }
1131
1132
  `,
1132
1133
  variables: {
1133
1134
  returnOrderNo: this._orderNo,
1134
- worksheetDetail: this._getWorksheetDetails().find(wsd => wsd.name === this._selectedOrderProduct.name)
1135
+ worksheetDetail: this._getWorksheetDetails('partial').filter(wsd => wsd.actualPackQty > 0)
1135
1136
  }
1136
1137
  })
1137
1138
  }
@@ -1356,9 +1357,11 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
1356
1357
  }
1357
1358
  }
1358
1359
 
1359
- _getWorksheetDetails() {
1360
+ _getWorksheetDetails(completeType) {
1360
1361
  return this.orderProductData.records.map(task => {
1361
- return { name: task.name, issue: task.issue ? task.issue : null }
1362
+ return (completeType = 'partial'
1363
+ ? { name: task.name, issue: task.issue ? task.issue : null, actualPackQty: task.actualPackQty }
1364
+ : { name: task.name, issue: task.issue ? task.issue : null })
1362
1365
  })
1363
1366
  }
1364
1367
 
@@ -347,7 +347,7 @@ class CreateArrivalNotice extends localize(i18next)(PageView) {
347
347
  <div class="button-div">
348
348
  <mwc-button
349
349
  id="button-add-products"
350
- label=${i18next.t('button.add_products')}
350
+ label=${i18next.t('button.bulk_select_products')}
351
351
  raised
352
352
  @click=${e => this._openBulkProductSelection()}
353
353
  ?disabled=${!this._showAddProducts}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/operato-wms",
3
- "version": "4.0.35",
3
+ "version": "4.0.36",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -36,12 +36,12 @@
36
36
  "generate:bizplace": "node ./scripts/generator/bizplace-generator",
37
37
  "stop:dev": "kill $(lsof -t -i:3000,3001)",
38
38
  "stop": "things-factory-stop operato-wms",
39
- "docker": "things-factory-dockerize hatiolab/operato-wms:latest hatiolab/operato-wms:$npm_package_version",
39
+ "docker": "things-factory-dockerize hatiolab/operato-wms:latest hatiolab/operato-wms:$npm_package_version linux/amd64",
40
40
  "docker:push": "docker image push hatiolab/operato-wms:latest && docker image push hatiolab/operato-wms:$npm_package_version",
41
- "docker:run": "docker run -p 4000:3000 hatiolab/operato-wms:latest"
41
+ "docker:run": "docker run --platform linux/amd64 -p 4000:3000 hatiolab/operato-wms:latest"
42
42
  },
43
43
  "dependencies": {
44
- "@operato/ghost-print": "^0.3.15",
44
+ "@operato/ghost-print": "^0.3.16",
45
45
  "@operato/scene-chartjs": "^0.1.2",
46
46
  "@operato/scene-clock": "^0.1.2",
47
47
  "@operato/scene-clone": "^0.1.2",
@@ -55,58 +55,58 @@
55
55
  "@operato/scene-tab": "^0.1.2",
56
56
  "@operato/scene-table": "^0.1.2",
57
57
  "@operato/scene-wheel-sorter": "^0.1.2",
58
- "@things-factory/apptool-ui": "^4.0.35",
59
- "@things-factory/attachment-ui": "^4.0.35",
60
- "@things-factory/auth-ui": "^4.0.35",
61
- "@things-factory/barcode-ui": "^4.0.35",
62
- "@things-factory/biz-ui": "^4.0.35",
63
- "@things-factory/board-service": "^4.0.35",
64
- "@things-factory/board-ui": "^4.0.35",
65
- "@things-factory/code-ui": "^4.0.35",
66
- "@things-factory/context-ui": "^4.0.35",
67
- "@things-factory/export-ui": "^4.0.35",
68
- "@things-factory/export-ui-csv": "^4.0.35",
69
- "@things-factory/export-ui-excel": "^4.0.35",
70
- "@things-factory/fav-base": "^4.0.35",
71
- "@things-factory/form-ui": "^4.0.35",
72
- "@things-factory/grist-ui": "^4.0.35",
73
- "@things-factory/help": "^4.0.35",
74
- "@things-factory/i18n-ui": "^4.0.35",
75
- "@things-factory/id-rule-base": "^4.0.35",
76
- "@things-factory/import-ui": "^4.0.35",
77
- "@things-factory/import-ui-excel": "^4.0.35",
78
- "@things-factory/menu-ui": "^4.0.35",
79
- "@things-factory/more-ui": "^4.0.35",
80
- "@things-factory/notification": "^4.0.35",
81
- "@things-factory/pdf": "^4.0.35",
82
- "@things-factory/print-proxy-service": "^4.0.35",
83
- "@things-factory/print-service": "^4.0.35",
84
- "@things-factory/print-ui": "^4.0.35",
85
- "@things-factory/product-base": "^4.0.35",
86
- "@things-factory/resource-ui": "^4.0.35",
87
- "@things-factory/sales-ui": "^4.0.35",
88
- "@things-factory/scene-data-transform": "^4.0.35",
89
- "@things-factory/scene-excel": "^4.0.35",
90
- "@things-factory/scene-firebase": "^4.0.35",
91
- "@things-factory/scene-form": "^4.0.35",
92
- "@things-factory/scene-google-map": "^4.0.35",
93
- "@things-factory/scene-graphql": "^4.0.35",
58
+ "@things-factory/apptool-ui": "^4.0.36",
59
+ "@things-factory/attachment-ui": "^4.0.36",
60
+ "@things-factory/auth-ui": "^4.0.36",
61
+ "@things-factory/barcode-ui": "^4.0.36",
62
+ "@things-factory/biz-ui": "^4.0.36",
63
+ "@things-factory/board-service": "^4.0.36",
64
+ "@things-factory/board-ui": "^4.0.36",
65
+ "@things-factory/code-ui": "^4.0.36",
66
+ "@things-factory/context-ui": "^4.0.36",
67
+ "@things-factory/export-ui": "^4.0.36",
68
+ "@things-factory/export-ui-csv": "^4.0.36",
69
+ "@things-factory/export-ui-excel": "^4.0.36",
70
+ "@things-factory/fav-base": "^4.0.36",
71
+ "@things-factory/form-ui": "^4.0.36",
72
+ "@things-factory/grist-ui": "^4.0.36",
73
+ "@things-factory/help": "^4.0.36",
74
+ "@things-factory/i18n-ui": "^4.0.36",
75
+ "@things-factory/id-rule-base": "^4.0.36",
76
+ "@things-factory/import-ui": "^4.0.36",
77
+ "@things-factory/import-ui-excel": "^4.0.36",
78
+ "@things-factory/menu-ui": "^4.0.36",
79
+ "@things-factory/more-ui": "^4.0.36",
80
+ "@things-factory/notification": "^4.0.36",
81
+ "@things-factory/pdf": "^4.0.36",
82
+ "@things-factory/print-proxy-service": "^4.0.36",
83
+ "@things-factory/print-service": "^4.0.36",
84
+ "@things-factory/print-ui": "^4.0.36",
85
+ "@things-factory/product-base": "^4.0.36",
86
+ "@things-factory/resource-ui": "^4.0.36",
87
+ "@things-factory/sales-ui": "^4.0.36",
88
+ "@things-factory/scene-data-transform": "^4.0.36",
89
+ "@things-factory/scene-excel": "^4.0.36",
90
+ "@things-factory/scene-firebase": "^4.0.36",
91
+ "@things-factory/scene-form": "^4.0.36",
92
+ "@things-factory/scene-google-map": "^4.0.36",
93
+ "@things-factory/scene-graphql": "^4.0.36",
94
94
  "@things-factory/scene-half-roundrect": "^4.0.9",
95
- "@things-factory/scene-label": "^4.0.35",
96
- "@things-factory/scene-marker": "^4.0.35",
97
- "@things-factory/scene-mqtt": "^4.0.35",
98
- "@things-factory/scene-news-ticker": "^4.0.35",
99
- "@things-factory/scene-restful": "^4.0.35",
100
- "@things-factory/scene-visualizer": "^4.0.35",
101
- "@things-factory/setting-ui": "^4.0.35",
102
- "@things-factory/system-ui": "^4.0.35",
103
- "@things-factory/transport-base": "^4.0.35",
104
- "@things-factory/tutorial-ui": "^4.0.35",
105
- "@things-factory/warehouse-base": "^4.0.35",
106
- "@things-factory/worksheet-base": "^4.0.35"
95
+ "@things-factory/scene-label": "^4.0.36",
96
+ "@things-factory/scene-marker": "^4.0.36",
97
+ "@things-factory/scene-mqtt": "^4.0.36",
98
+ "@things-factory/scene-news-ticker": "^4.0.36",
99
+ "@things-factory/scene-restful": "^4.0.36",
100
+ "@things-factory/scene-visualizer": "^4.0.36",
101
+ "@things-factory/setting-ui": "^4.0.36",
102
+ "@things-factory/system-ui": "^4.0.36",
103
+ "@things-factory/transport-base": "^4.0.36",
104
+ "@things-factory/tutorial-ui": "^4.0.36",
105
+ "@things-factory/warehouse-base": "^4.0.36",
106
+ "@things-factory/worksheet-base": "^4.0.36"
107
107
  },
108
108
  "devDependencies": {
109
- "@things-factory/builder": "^4.0.35"
109
+ "@things-factory/builder": "^4.0.36"
110
110
  },
111
- "gitHead": "842a39426de15e808ee3aaf5972f1024afe5281f"
111
+ "gitHead": "132ab9f8af8c34f73bcd81a9776769a6929e13ee"
112
112
  }
@@ -3,7 +3,6 @@
3
3
  "button.activate": "activate",
4
4
  "button.add_edit": "add & edit",
5
5
  "button.add_new_product": "add new product",
6
- "button.add_products": "add products",
7
6
  "button.add_x": "add {state.x}",
8
7
  "button.adjust_inventory": "adjust inventory",
9
8
  "button.adjust": "adjust",
@@ -17,6 +16,7 @@
17
16
  "button.back_to_list": "back to list",
18
17
  "button.back": "back",
19
18
  "button.batch_picking": "batch picking",
19
+ "button.bulk_select_products": "bulk select products",
20
20
  "button.cancel_order": "cancel order",
21
21
  "button.cancel": "cancel",
22
22
  "button.carton_label_print": "print carton label",
@@ -4,7 +4,7 @@
4
4
  "button.activate": "활성화",
5
5
  "button.add_edit": "추가 & 수정",
6
6
  "button.add_new_product": "[ko]add new product",
7
- "button.add_products": "[ko] add products",
7
+ "button.bulk_select_products": "[ko] bulk select products",
8
8
  "button.add_x": "{state.x} 추가",
9
9
  "button.adjust_inventory": "인벤토리 조정",
10
10
  "button.adjust": "적용",
@@ -4,7 +4,7 @@
4
4
  "button.activate": "aktifkan",
5
5
  "button.add_edit": "tambah & sunting",
6
6
  "button.add_new_product": "[ms]add new product",
7
- "button.add_products": "[ms]add products",
7
+ "button.bulk_select_products": "[ms] bulk select products",
8
8
  "button.add_x": "tambah {state.x}",
9
9
  "button.adjust_inventory": "ubah inventori",
10
10
  "button.adjust": "ubah suai",
@@ -3,7 +3,7 @@
3
3
  "button.activate": "activate",
4
4
  "button.add_edit": "add & edit",
5
5
  "button.add_new_product": "[zh]add new product",
6
- "button.add_products": "[zh] add products",
6
+ "button.bulk_select_products": "[zh] bulk select products",
7
7
  "button.add_x": "add {state.x}",
8
8
  "button.adjust_inventory": "adjust inventory",
9
9
  "button.adjust": "adjust",