@things-factory/operato-wms 4.0.32 → 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(
@@ -797,45 +798,46 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
797
798
  }
798
799
 
799
800
  async _scanProductUnload() {
800
- if (this._scanning === false) {
801
- this._scanning = true
802
- try {
803
- const response = await client.mutate({
804
- mutation: gql`
805
- mutation scanProductUnload(
806
- $worksheetDetailName: String!
807
- $productBarcode: String!
808
- $inventory: InventoryPatch!
809
- ) {
810
- scanProductUnload(
811
- worksheetDetailName: $worksheetDetailName
812
- productBarcode: $productBarcode
813
- inventory: $inventory
814
- )
815
- }
816
- `,
817
- variables: {
818
- worksheetDetailName: this._selectedOrderProduct.name,
819
- productBarcode: this.productBarcodeInput.value.trim(),
820
- inventory: {
821
- palletId: this._enableCartonLabel ? null : this.lotInput.value.trim(),
822
- cartonId: this._enableCartonLabel ? this.cartonInput.value.trim() : null,
823
- expirationDate: this.expDateInput?.value ? this.expDateInput.value : null
824
- }
801
+ if (this._scanning) return this._showToast({ message: i18next.t('text.previous_scan_is_executing') })
802
+ this._scanning = true
803
+ try {
804
+ const response = await client.mutate({
805
+ mutation: gql`
806
+ mutation scanProductUnload(
807
+ $worksheetDetailName: String!
808
+ $productBarcode: String!
809
+ $inventory: InventoryPatch!
810
+ ) {
811
+ scanProductUnload(
812
+ worksheetDetailName: $worksheetDetailName
813
+ productBarcode: $productBarcode
814
+ inventory: $inventory
815
+ )
816
+ }
817
+ `,
818
+ variables: {
819
+ worksheetDetailName: this._selectedOrderProduct.name,
820
+ productBarcode: this.productBarcodeInput.value.trim(),
821
+ inventory: {
822
+ palletId: this._enableCartonLabel ? null : this.lotInput.value.trim(),
823
+ cartonId: this._enableCartonLabel ? this.cartonInput.value.trim() : null,
824
+ expirationDate: this.expDateInput?.value ? this.expDateInput.value : null
825
825
  }
826
- })
827
-
828
- if (!response.errors) {
829
- await this._checkExpiry()
830
- await this._fetchProducts(this._orderNo)
831
826
  }
832
- } catch (e) {
833
- this._showToast(e)
834
- }
827
+ })
835
828
 
829
+ if (!response.errors) {
830
+ await this._checkExpiry()
831
+ await this._fetchProducts(this._orderNo)
832
+ }
833
+ } catch (e) {
834
+ // for cartonId + product scanning
835
+ // show custom toast for incorrect product barcodes
836
+ // full errors for everything else
837
+ if (!(e instanceof TypeError)) return this._showToast(e)
838
+ this._showToast({ message: i18next.t('text.incorrect_product_barcode') })
839
+ } finally {
836
840
  this._scanning = false
837
- } else {
838
- this._showToast({ message: i18next.t('text.previous_scan_is_executing') })
839
841
  }
840
842
  }
841
843
 
@@ -1112,25 +1114,25 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
1112
1114
  if (this.refOrderType === AVAIL_ORDER_TYPES.ARRIVAL_NOTICE.value) {
1113
1115
  response = await client.mutate({
1114
1116
  mutation: gql`
1115
- mutation completeUnloadingPartially($arrivalNoticeNo: String!, $worksheetDetail: WorksheetDetailPatch!) {
1117
+ mutation completeUnloadingPartially($arrivalNoticeNo: String!, $worksheetDetail: [WorksheetDetailPatch!]) {
1116
1118
  completeUnloadingPartially(arrivalNoticeNo: $arrivalNoticeNo, worksheetDetail: $worksheetDetail)
1117
1119
  }
1118
1120
  `,
1119
1121
  variables: {
1120
1122
  arrivalNoticeNo: this._orderNo,
1121
- worksheetDetail: this._getWorksheetDetails().find(wsd => wsd.name === this._selectedOrderProduct.name)
1123
+ worksheetDetail: this._getWorksheetDetails('partial').filter(wsd => wsd.actualPackQty > 0)
1122
1124
  }
1123
1125
  })
1124
1126
  } else {
1125
1127
  response = await client.mutate({
1126
1128
  mutation: gql`
1127
- mutation completeUnloadReturnPartially($returnOrderNo: String!, $worksheetDetail: WorksheetDetailPatch!) {
1129
+ mutation completeUnloadReturnPartially($returnOrderNo: String!, $worksheetDetail: [WorksheetDetailPatch!]) {
1128
1130
  completeUnloadReturnPartially(returnOrderNo: $returnOrderNo, worksheetDetail: $worksheetDetail)
1129
1131
  }
1130
1132
  `,
1131
1133
  variables: {
1132
1134
  returnOrderNo: this._orderNo,
1133
- worksheetDetail: this._getWorksheetDetails().find(wsd => wsd.name === this._selectedOrderProduct.name)
1135
+ worksheetDetail: this._getWorksheetDetails('partial').filter(wsd => wsd.actualPackQty > 0)
1134
1136
  }
1135
1137
  })
1136
1138
  }
@@ -1355,9 +1357,11 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
1355
1357
  }
1356
1358
  }
1357
1359
 
1358
- _getWorksheetDetails() {
1360
+ _getWorksheetDetails(completeType) {
1359
1361
  return this.orderProductData.records.map(task => {
1360
- 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 })
1361
1365
  })
1362
1366
  }
1363
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.32",
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.7",
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.32",
59
- "@things-factory/attachment-ui": "^4.0.32",
60
- "@things-factory/auth-ui": "^4.0.32",
61
- "@things-factory/barcode-ui": "^4.0.32",
62
- "@things-factory/biz-ui": "^4.0.32",
63
- "@things-factory/board-service": "^4.0.32",
64
- "@things-factory/board-ui": "^4.0.32",
65
- "@things-factory/code-ui": "^4.0.32",
66
- "@things-factory/context-ui": "^4.0.32",
67
- "@things-factory/export-ui": "^4.0.32",
68
- "@things-factory/export-ui-csv": "^4.0.32",
69
- "@things-factory/export-ui-excel": "^4.0.32",
70
- "@things-factory/fav-base": "^4.0.32",
71
- "@things-factory/form-ui": "^4.0.32",
72
- "@things-factory/grist-ui": "^4.0.32",
73
- "@things-factory/help": "^4.0.32",
74
- "@things-factory/i18n-ui": "^4.0.32",
75
- "@things-factory/id-rule-base": "^4.0.32",
76
- "@things-factory/import-ui": "^4.0.32",
77
- "@things-factory/import-ui-excel": "^4.0.32",
78
- "@things-factory/menu-ui": "^4.0.32",
79
- "@things-factory/more-ui": "^4.0.32",
80
- "@things-factory/notification": "^4.0.32",
81
- "@things-factory/pdf": "^4.0.32",
82
- "@things-factory/print-proxy-service": "^4.0.32",
83
- "@things-factory/print-service": "^4.0.32",
84
- "@things-factory/print-ui": "^4.0.32",
85
- "@things-factory/product-base": "^4.0.32",
86
- "@things-factory/resource-ui": "^4.0.32",
87
- "@things-factory/sales-ui": "^4.0.32",
88
- "@things-factory/scene-data-transform": "^4.0.32",
89
- "@things-factory/scene-excel": "^4.0.32",
90
- "@things-factory/scene-firebase": "^4.0.32",
91
- "@things-factory/scene-form": "^4.0.32",
92
- "@things-factory/scene-google-map": "^4.0.32",
93
- "@things-factory/scene-graphql": "^4.0.32",
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.32",
96
- "@things-factory/scene-marker": "^4.0.32",
97
- "@things-factory/scene-mqtt": "^4.0.32",
98
- "@things-factory/scene-news-ticker": "^4.0.32",
99
- "@things-factory/scene-restful": "^4.0.32",
100
- "@things-factory/scene-visualizer": "^4.0.32",
101
- "@things-factory/setting-ui": "^4.0.32",
102
- "@things-factory/system-ui": "^4.0.32",
103
- "@things-factory/transport-base": "^4.0.32",
104
- "@things-factory/tutorial-ui": "^4.0.32",
105
- "@things-factory/warehouse-base": "^4.0.32",
106
- "@things-factory/worksheet-base": "^4.0.32"
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.32"
109
+ "@things-factory/builder": "^4.0.36"
110
110
  },
111
- "gitHead": "a1a16e7d4531ae3ff035295fc7bf05bf0d3153a7"
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",
@@ -1254,6 +1254,7 @@
1254
1254
  "text.reverse_kitting_order_confirmed": "reverse kitting order confirmed",
1255
1255
  "text.reverse_kitting_order_created": "reverse kitting order created",
1256
1256
  "text.reverse_kitting_order_deleted": "reverse kitting order deleted",
1257
+ "text.incorrect_product_barcode": "incorrect product barcode",
1257
1258
  "text.reverse_kitting_order": "reverse kitting order",
1258
1259
  "text.scan_product_barcode": "scan product barcode",
1259
1260
  "text.select_a_delivery_type": "select a delivery type",
@@ -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",