@things-factory/operato-wms 4.3.345 → 4.3.346

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.
@@ -7,28 +7,14 @@ import '../inventory/serial-number-list-popup'
7
7
  import '../components/select-product-popup'
8
8
 
9
9
  import gql from 'graphql-tag'
10
- import {
11
- css,
12
- html
13
- } from 'lit-element'
10
+ import { css, html } from 'lit-element'
14
11
  import { connect } from 'pwa-helpers/connect-mixin'
15
12
 
16
13
  import { DirectPrinter } from '@things-factory/barcode-base'
17
- import {
18
- i18next,
19
- localize
20
- } from '@things-factory/i18n-base'
14
+ import { i18next, localize } from '@things-factory/i18n-base'
21
15
  import { openPopup } from '@things-factory/layout-base'
22
- import {
23
- client,
24
- CustomAlert,
25
- PageView,
26
- store
27
- } from '@things-factory/shell'
28
- import {
29
- CommonButtonStyles,
30
- ScrollbarStyles
31
- } from '@things-factory/styles'
16
+ import { client, CustomAlert, PageView, store } from '@things-factory/shell'
17
+ import { CommonButtonStyles, ScrollbarStyles } from '@things-factory/styles'
32
18
  import { isMobileDevice } from '@things-factory/utils'
33
19
 
34
20
  import { fetchPageSettings } from '../../util/index'
@@ -419,7 +405,7 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
419
405
  sortable: true,
420
406
  imex: {
421
407
  header: i18next.t('field.transfer_qty'),
422
- key: 'tranferQty',
408
+ key: 'transferQty',
423
409
  width: 10,
424
410
  type: 'integer'
425
411
  },
@@ -432,7 +418,7 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
432
418
  sortable: true,
433
419
  imex: {
434
420
  header: i18next.t('field.transfer_uom_value'),
435
- key: 'tranferUomValue',
421
+ key: 'transferUomValue',
436
422
  width: 10,
437
423
  type: 'float'
438
424
  },
@@ -1038,6 +1024,20 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
1038
1024
  ) {
1039
1025
  throw new Error(i18next.t('text.empty_value_in_list'))
1040
1026
  }
1027
+
1028
+ let currentItem = this.dataGrist?.data?.records.find(itm => itm.id === row.id)
1029
+ //if user is not updating adjustment code or note, check if current data has them
1030
+ if (!row.hasOwnProperty('adjustmentNote')) {
1031
+ if (!currentItem.adjustmentNote) {
1032
+ throw new Error(i18next.t('text.empty_value_in_list'))
1033
+ }
1034
+ }
1035
+
1036
+ if (!row.hasOwnProperty('adjustmentCode')) {
1037
+ if (!currentItem.adjustmentCode) {
1038
+ throw new Error(i18next.t('text.empty_value_in_list'))
1039
+ }
1040
+ }
1041
1041
  }
1042
1042
 
1043
1043
  row.bizplace = row.bizplace ? { id: row.bizplace.id } : undefined
@@ -185,7 +185,7 @@ class OnhandInventory extends connect(store)(localize(i18next)(PageView)) {
185
185
  sortable: true,
186
186
  imex: {
187
187
  header: i18next.t('field.transfer_qty'),
188
- key: 'tranferQty',
188
+ key: 'transferQty',
189
189
  width: 10,
190
190
  type: 'integer'
191
191
  },
@@ -198,7 +198,7 @@ class OnhandInventory extends connect(store)(localize(i18next)(PageView)) {
198
198
  sortable: true,
199
199
  imex: {
200
200
  header: i18next.t('field.transfer_uom_value'),
201
- key: 'tranferUomValue',
201
+ key: 'transferUomValue',
202
202
  width: 10,
203
203
  type: 'float'
204
204
  },
@@ -517,7 +517,7 @@ class OnhandInventory extends connect(store)(localize(i18next)(PageView)) {
517
517
  console.log(response)
518
518
 
519
519
  return {
520
- total: response.data.onhandInventories.total || 0,
520
+ total: response.data.onhandInventories.total || 0,
521
521
  records:
522
522
  response.data.onhandInventories.items.map(item => {
523
523
  return flattenObject(
@@ -529,7 +529,7 @@ class OnhandInventory extends connect(store)(localize(i18next)(PageView)) {
529
529
  name: `${item.product.name} ${item.product.description}`,
530
530
  productBrand: `${item.product.brand}`
531
531
  },
532
- volume: parseFloat(item.product.volume * item.remainQty).toFixed(4),
532
+ volume: parseFloat(item.product.volume * item.remainQty).toFixed(4)
533
533
  // Need to move to serverside processing and fetch with db query for consistent performance
534
534
  },
535
535
  '_'
@@ -130,7 +130,7 @@ class WorksheetCycleCount extends localize(i18next)(PageView) {
130
130
  </fieldset>
131
131
  </form>
132
132
 
133
- <barcode-tag bcid="qrcode" .value=${this._cycleCountNo}></barcode-tag>
133
+ <barcode-tag bcid="qrcode" .value=${this._cycleCountNo} showLogo="true"></barcode-tag>
134
134
  </div>
135
135
 
136
136
  <div class="grist">
@@ -538,7 +538,7 @@ class ArrivalNoticeDetail extends localize(i18next)(PageView) {
538
538
  />
539
539
  </fieldset>
540
540
  </form>
541
- <barcode-tag bcid="qrcode" .value=${this._ganNo}></barcode-tag>
541
+ <barcode-tag bcid="qrcode" .value=${this._ganNo} showLogo="true"></barcode-tag>
542
542
  </div>
543
543
 
544
544
  <div class="container">
@@ -360,7 +360,7 @@ class B2CReleaseOrderDetail extends connect(store)(localize(i18next)(PageView))
360
360
  </fieldset>
361
361
  </form>
362
362
 
363
- <barcode-tag bcid="qrcode" .value=${this._releaseOrderNo}></barcode-tag>
363
+ <barcode-tag bcid="qrcode" .value=${this._releaseOrderNo} showLogo="true"></barcode-tag>
364
364
  </div>
365
365
  </div>
366
366
 
@@ -174,7 +174,7 @@ class BulkPrintPackingList extends localize(i18next)(PageView) {
174
174
  </fieldset>
175
175
  </form>
176
176
 
177
- <barcode-tag bcid="qrcode" .value=${releaseOrder.name}></barcode-tag>
177
+ <barcode-tag bcid="qrcode" .value=${releaseOrder.name} showLogo="true"></barcode-tag>
178
178
  </div>
179
179
 
180
180
  <div class="grist">
@@ -496,7 +496,7 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
496
496
  </fieldset>
497
497
  </form>
498
498
 
499
- <barcode-tag bcid="qrcode" .value=${this._releaseOrderNo}></barcode-tag>
499
+ <barcode-tag bcid="qrcode" .value=${this._releaseOrderNo} showLogo="true"></barcode-tag>
500
500
  </div>
501
501
  </div>
502
502
 
@@ -192,7 +192,7 @@ class ReturnOrderDetail extends connect(store)(localize(i18next)(PageView)) {
192
192
  </fieldset>
193
193
  </form>
194
194
 
195
- <barcode-tag bcid="qrcode" .value=${this._returnOrderNo}></barcode-tag>
195
+ <barcode-tag bcid="qrcode" .value=${this._returnOrderNo} showLogo="true"></barcode-tag>
196
196
  </div>
197
197
 
198
198
  <div class="container">
@@ -128,7 +128,7 @@ class ReverseKittingOrderDetail extends connect(store)(localize(i18next)(PageVie
128
128
  </fieldset>
129
129
  </form>
130
130
 
131
- ${!this._newOrder ? html`<barcode-tag bcid="qrcode" .value=${this._reverseKittingNo}></barcode-tag>` : ''}
131
+ ${!this._newOrder ? html`<barcode-tag bcid="qrcode" .value=${this._reverseKittingNo} showLogo="true"></barcode-tag>` : ''}
132
132
  </div>
133
133
  <div class="container">
134
134
  <div class="grist">
@@ -151,7 +151,7 @@ class ReplenishmentDetail extends localize(i18next)(PageView) {
151
151
  </fieldset>
152
152
  </form>
153
153
 
154
- <barcode-tag bcid="qrcode" .value=${this._orderNo}></barcode-tag>
154
+ <barcode-tag bcid="qrcode" .value=${this._orderNo} showLogo="true"></barcode-tag>
155
155
  </div>
156
156
  `}
157
157
 
@@ -137,7 +137,7 @@ class WorksheetReplenishment extends localize(i18next)(PageView) {
137
137
  </fieldset>
138
138
  </form>
139
139
 
140
- <barcode-tag bcid="qrcode" .value=${this._orderNo}></barcode-tag>
140
+ <barcode-tag bcid="qrcode" .value=${this._orderNo} showLogo="true"></barcode-tag>
141
141
  </div>
142
142
 
143
143
  <div class="grist">
@@ -142,7 +142,7 @@ class WorksheetRefVas extends localize(i18next)(PageView) {
142
142
  </form>
143
143
 
144
144
  <!-- TODO: Get reference order number to show QR code -->
145
- <barcode-tag bcid="qrcode" .value=${this.formData.orderNo}></barcode-tag>
145
+ <barcode-tag bcid="qrcode" .value=${this.formData.orderNo} showLogo="true"></barcode-tag>
146
146
  </div>
147
147
 
148
148
  <div class="container">
@@ -160,7 +160,7 @@ class WorksheetVas extends localize(i18next)(PageView) {
160
160
  </fieldset>
161
161
  </form>
162
162
 
163
- <barcode-tag bcid="qrcode" .value=${this._voNo}></barcode-tag>
163
+ <barcode-tag bcid="qrcode" .value=${this._voNo} showLogo="true"></barcode-tag>
164
164
  </div>
165
165
 
166
166
  <div class="container">
@@ -4,12 +4,13 @@ module.exports = {
4
4
  useVirtualHostBasedDomain: false,
5
5
  fallbackRoute: '/',
6
6
  subdomainOffset: 2,
7
- port: 1100,
8
- inspect: '9430',
7
+ port: 4000,
8
+ inspect: '9330',
9
+ // cycle count db
9
10
  ormconfig: {
10
11
  name: 'default',
11
12
  type: 'postgres',
12
- database: 'dev',
13
+ database: 'postgres',
13
14
  username: 'postgres',
14
15
  password: 'hatio',
15
16
  host: '192.168.0.161',
@@ -17,21 +18,44 @@ module.exports = {
17
18
  synchronize: false,
18
19
  logging: true
19
20
  },
21
+
20
22
  // ormconfig: {
21
23
  // name: 'default',
22
24
  // type: 'postgres',
23
- // database: 'postgres',
25
+ // database: '06072023',
24
26
  // username: 'postgres',
25
-
26
- // password: 'abcd1234',
27
+ // password: 'hatio',
28
+ // host: '192.168.0.153',
29
+ // port: 15432,
30
+ // synchronize: false,
31
+ // logging: true
32
+ // },
33
+ // ormconfig: {
34
+ // name: 'default',
35
+ // type: 'postgres',
27
36
  // host: 'operatov3.cluster-cijhm4n1hbst.ap-southeast-1.rds.amazonaws.com',
28
37
  // port: 55432,
38
+ // database: 'postgres',
39
+ // username: 'postgres',
40
+ // password: 'abcd1234',
29
41
  // synchronize: false,
30
- // logging: true
42
+ // logging: true,
43
+ // connectTimeoutMS: 30000,
44
+ // extra: { poolSize: 30 }
31
45
  // },
32
- sellercraftIntegrationConfig: {
33
- apiKey: 'Et0KqtLvA6e92bDvOywy9eCCud4hpAal8akpqI90'
34
- },
46
+ //ormconfig: {
47
+ // name: 'default',
48
+ // type: 'postgres',
49
+ // database: 'dev2',
50
+ // username: 'postgres',
51
+ // password: 'hatio',
52
+ // host: 'localhost',
53
+ // port: 15432,
54
+ // synchronize: false,
55
+ // logging: true,
56
+ // connectTimeoutMS: 30000,
57
+ // extra: { poolSize: 30 }
58
+ //},
35
59
  SECRET: '0xD58F835B69D207A76CC5F84a70a1D0d4C79dfC95',
36
60
  password: {
37
61
  lowerCase: true,
@@ -45,13 +69,6 @@ module.exports = {
45
69
  looseCharacterLength: 4,
46
70
  history: 2
47
71
  },
48
- // storage: {
49
- // type: 's3',
50
- // accessKeyId: 'AKIAUQEOPWEJCDH6AR5H',
51
- // secretAccessKey: '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',
52
- // bucketName: 'opa-one',
53
- // region: 'ap-southeast-1'
54
- // },
55
72
  uploads: 'uploads',
56
73
  attachmentsPath: 'attachments',
57
74
  logger: {
@@ -101,6 +118,14 @@ module.exports = {
101
118
  // privateKey: '4pmlt3Wk019u7nqU3Q_oGZE6LbUDjjf8DpmAcn9-iss'
102
119
  // }
103
120
  },
104
- // reportApiUrl: 'localhost:8888/rest/report/show_html'
105
- reportApiUrl: 'http://192.168.0.153:8888/rest/report/show_html'
121
+ reportApiUrl: 'http://localhost:8888/rest/report/show_html',
122
+ // reportApiUrl: 'http://192.168.0.153:8888/rest/report/show_html'
123
+ // reportApiUrl: 'http://10.100.109.66:8090/rest/report/show_html',
124
+ awbFileStorage: {
125
+ type: 's3',
126
+ accessKeyId: 'AKIAUQEOPWEJKL43OMZA',
127
+ secretAccessKey: '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',
128
+ bucketName: 'operato-awb',
129
+ region: 'ap-southeast-1'
130
+ }
106
131
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/operato-wms",
3
- "version": "4.3.345",
3
+ "version": "4.3.346",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -91,7 +91,7 @@
91
91
  "@things-factory/print-ui": "^4.3.281",
92
92
  "@things-factory/product-base": "^4.3.344",
93
93
  "@things-factory/resource-ui": "^4.3.281",
94
- "@things-factory/sales-ui": "^4.3.345",
94
+ "@things-factory/sales-ui": "^4.3.346",
95
95
  "@things-factory/scene-data-transform": "^4.3.281",
96
96
  "@things-factory/scene-excel": "^4.3.281",
97
97
  "@things-factory/scene-firebase": "^4.3.281",
@@ -107,8 +107,8 @@
107
107
  "@things-factory/system-ui": "^4.3.281",
108
108
  "@things-factory/transport-base": "^4.3.344",
109
109
  "@things-factory/tutorial-ui": "^4.3.281",
110
- "@things-factory/warehouse-base": "^4.3.345",
111
- "@things-factory/worksheet-base": "^4.3.345"
110
+ "@things-factory/warehouse-base": "^4.3.346",
111
+ "@things-factory/worksheet-base": "^4.3.346"
112
112
  },
113
113
  "devDependencies": {
114
114
  "@things-factory/builder": "^4.3.281",
@@ -117,5 +117,5 @@
117
117
  "cypress-localstorage-commands": "^1.6.1",
118
118
  "eslint-plugin-cypress": "^2.12.1"
119
119
  },
120
- "gitHead": "9f0c745f3b86edf8d20dac827e6b02739144136e"
120
+ "gitHead": "687dc4ef7c0622b42ccb920afa354c79c0fe694b"
121
121
  }