@things-factory/operato-wms 4.3.307 → 4.3.308

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.
@@ -22,7 +22,8 @@ class TransferInventory extends connect(store)(localize(i18next)(PageView)) {
22
22
  _selectedInventory: Object,
23
23
  refInventoryType: String,
24
24
  _data: Object,
25
- _gristConfig: Object
25
+ _gristConfig: Object,
26
+ _isExecuting: Boolean
26
27
  }
27
28
  }
28
29
 
@@ -393,6 +394,11 @@ class TransferInventory extends connect(store)(localize(i18next)(PageView)) {
393
394
  `
394
395
  }
395
396
 
397
+ constructor() {
398
+ super()
399
+ this._isExecuting = false
400
+ }
401
+
396
402
  pageInitialized() {
397
403
  this.refInventoryType = INVENTORY_TYPES.LOT.value
398
404
  this._gristConfig = {
@@ -584,7 +590,6 @@ class TransferInventory extends connect(store)(localize(i18next)(PageView)) {
584
590
  })
585
591
 
586
592
  if (!response.errors) {
587
-
588
593
  // let foundId = response.data.inventories.total
589
594
  if (response.data.inventories.total == 0) {
590
595
  if (this.refInventoryType === INVENTORY_TYPES.LOT.value) {
@@ -622,10 +627,12 @@ class TransferInventory extends connect(store)(localize(i18next)(PageView)) {
622
627
  }
623
628
 
624
629
  async transferInventory(e) {
625
- e.stopPropagation()
626
- e.preventDefault()
627
-
628
630
  try {
631
+ e.stopPropagation()
632
+ e.preventDefault()
633
+
634
+ if (this._isExecuting) throw new Error(i18next.t('text.please_wait_for_current_process_to_be_completed'))
635
+ this._isExecuting = true
629
636
  this._validate()
630
637
 
631
638
  const result = await CustomAlert({
@@ -680,6 +687,8 @@ class TransferInventory extends connect(store)(localize(i18next)(PageView)) {
680
687
  }
681
688
  } catch (e) {
682
689
  this.showToast(e)
690
+ } finally {
691
+ this._isExecuting = false
683
692
  }
684
693
  }
685
694
 
@@ -507,6 +507,7 @@ class OnhandInventory extends connect(store)(localize(i18next)(PageView)) {
507
507
  return flattenObject(
508
508
  {
509
509
  ...item,
510
+ expirationDate: item.expirationDate ? new Date(item.expirationDate).toDateString().slice(4, 16) : '',
510
511
  product: {
511
512
  ...item.product,
512
513
  name: `${item.product.name} ${item.product.description}`,
@@ -577,7 +578,7 @@ class OnhandInventory extends connect(store)(localize(i18next)(PageView)) {
577
578
  { header: i18next.t('field.lot_id'), key: 'palletId', width: 25, type: 'string' },
578
579
  { header: i18next.t('field.carton_id'), key: 'cartonId', width: 25, type: 'string' },
579
580
  { header: i18next.t('field.batch_id'), key: 'batchId', width: 25, type: 'string' },
580
- { header: i18next.t('field.initial_inbound_date'), key: 'initialInboundAt', width: 25, type: 'date' },
581
+ { header: i18next.t('field.initial_inbound_date'), key: 'initialInboundAt', width: 25, type: 'datetime' },
581
582
  { header: i18next.t('field.company'), key: 'bizplace_name', width: 30, type: 'string' },
582
583
  { header: i18next.t('field.sku_code'), key: 'product_sku', width: 25, type: 'string' },
583
584
  { header: i18next.t('field.product'), key: 'product_name', width: 40, type: 'string' },
@@ -590,7 +591,7 @@ class OnhandInventory extends connect(store)(localize(i18next)(PageView)) {
590
591
  { header: i18next.t('field.non_loaded_uom_value'), key: 'nonLoadedUomValue', width: 25, type: 'string' },
591
592
  { header: i18next.t('field.uom'), key: 'uom', width: 15, type: 'string' },
592
593
  { header: i18next.t('field.location'), key: 'location_name', width: 25, type: 'string' },
593
- { header: i18next.t('field.exp_date'), key: 'expirationDate', width: 30, type: 'date' },
594
+ { header: i18next.t('field.exp_date'), key: 'expirationDate', width: 30, type: 'string' },
594
595
  { header: i18next.t('field.batch_no_ref'), key: 'batchIdRef', width: 50, type: 'string' },
595
596
  { header: i18next.t('field.volume_m3'), key: 'volume', width: 25, type: 'float' },
596
597
  { header: i18next.t('field.unit_cost'), key: 'unitCost', width: 25, type: 'float' },
@@ -4,45 +4,33 @@ module.exports = {
4
4
  useVirtualHostBasedDomain: false,
5
5
  fallbackRoute: '/',
6
6
  subdomainOffset: 2,
7
- port: 9100,
8
- inspect: '9330',
7
+ port: 1100,
8
+ inspect: '9430',
9
9
  ormconfig: {
10
10
  name: 'default',
11
11
  type: 'postgres',
12
- database: '06072023',
12
+ database: 'dev',
13
13
  username: 'postgres',
14
14
  password: 'hatio',
15
- host: '192.168.0.153',
15
+ host: '192.168.0.161',
16
16
  port: 15432,
17
- synchronize: true,
17
+ synchronize: false,
18
18
  logging: true
19
19
  },
20
20
  // ormconfig: {
21
21
  // name: 'default',
22
22
  // type: 'postgres',
23
- // host: 'operatov3.cluster-cijhm4n1hbst.ap-southeast-1.rds.amazonaws.com',
24
- // port: 55432,
25
23
  // database: 'postgres',
26
24
  // username: 'postgres',
27
25
  // password: 'abcd1234',
26
+ // host: 'operatov3.cluster-cijhm4n1hbst.ap-southeast-1.rds.amazonaws.com',
27
+ // port: 55432,
28
28
  // synchronize: false,
29
- // logging: true,
30
- // connectTimeoutMS: 30000,
31
- // extra: { poolSize: 30 }
29
+ // logging: true
32
30
  // },
33
- //ormconfig: {
34
- // name: 'default',
35
- // type: 'postgres',
36
- // database: 'dev2',
37
- // username: 'postgres',
38
- // password: 'hatio',
39
- // host: 'localhost',
40
- // port: 15432,
41
- // synchronize: false,
42
- // logging: true,
43
- // connectTimeoutMS: 30000,
44
- // extra: { poolSize: 30 }
45
- //},
31
+ sellercraftIntegrationConfig: {
32
+ apiKey: 'Et0KqtLvA6e92bDvOywy9eCCud4hpAal8akpqI90'
33
+ },
46
34
  SECRET: '0xD58F835B69D207A76CC5F84a70a1D0d4C79dfC95',
47
35
  password: {
48
36
  lowerCase: true,
@@ -56,6 +44,13 @@ module.exports = {
56
44
  looseCharacterLength: 4,
57
45
  history: 2
58
46
  },
47
+ // storage: {
48
+ // type: 's3',
49
+ // accessKeyId: 'AKIAUQEOPWEJCDH6AR5H',
50
+ // secretAccessKey: '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',
51
+ // bucketName: 'opa-one',
52
+ // region: 'ap-southeast-1'
53
+ // },
59
54
  uploads: 'uploads',
60
55
  attachmentsPath: 'attachments',
61
56
  logger: {
@@ -105,14 +100,6 @@ module.exports = {
105
100
  // privateKey: '4pmlt3Wk019u7nqU3Q_oGZE6LbUDjjf8DpmAcn9-iss'
106
101
  // }
107
102
  },
108
- reportApiUrl: 'http://localhost:8888/rest/report/show_html',
109
- // reportApiUrl: 'http://192.168.0.153:8888/rest/report/show_html'
110
- // reportApiUrl: 'http://10.100.109.66:8090/rest/report/show_html',
111
- awbFileStorage: {
112
- type: 's3',
113
- accessKeyId: 'AKIAUQEOPWEJKL43OMZA',
114
- secretAccessKey: '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',
115
- bucketName: 'operato-awb',
116
- region: 'ap-southeast-1'
117
- }
103
+ // reportApiUrl: 'localhost:8888/rest/report/show_html'
104
+ reportApiUrl: 'http://192.168.0.153:8888/rest/report/show_html'
118
105
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/operato-wms",
3
- "version": "4.3.307",
3
+ "version": "4.3.308",
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.301",
93
93
  "@things-factory/resource-ui": "^4.3.281",
94
- "@things-factory/sales-ui": "^4.3.307",
94
+ "@things-factory/sales-ui": "^4.3.308",
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.301",
109
109
  "@things-factory/tutorial-ui": "^4.3.281",
110
- "@things-factory/warehouse-base": "^4.3.307",
111
- "@things-factory/worksheet-base": "^4.3.307"
110
+ "@things-factory/warehouse-base": "^4.3.308",
111
+ "@things-factory/worksheet-base": "^4.3.308"
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": "481824066e2a5721498be0b3d5570e66390b204e"
120
+ "gitHead": "b1221dd6e7f047899a18b5f69d0e4a4bd14cc80c"
121
121
  }
@@ -388,7 +388,7 @@
388
388
  "field.name": "name",
389
389
  "field.need_fleet": "need fleet",
390
390
  "field.need_transport": "need transport",
391
- "field.nett_stock":"nett stock",
391
+ "field.nett_stock": "nett stock",
392
392
  "field.nett_weight": "nett weight",
393
393
  "field.new_sku_same_as_original_sku": "new SKU same as original SKU",
394
394
  "field.new_sku": "new SKU",
@@ -1483,6 +1483,7 @@
1483
1483
  "text.please_select_the_product": "please select the product",
1484
1484
  "text.please_select_transport_type": "please select transport type",
1485
1485
  "text.please_wait": "please wait",
1486
+ "text.please_wait_for_current_process_to_be_completed": "please wait for current process to be completed",
1486
1487
  "text.preunload_has_completed": "preunload has been completed",
1487
1488
  "text.previous_picking_is_still_executing_please_wait": "Previous picking is still executing. Please wait",
1488
1489
  "text.previous_scan_is_executing": "previous scan is executing",
@@ -392,7 +392,7 @@
392
392
  "field.name": "이름",
393
393
  "field.need_fleet": "선적 필요여부",
394
394
  "field.need_transport": "운송 필요여부",
395
- "field.nett_stock":"[ko]nett stock",
395
+ "field.nett_stock": "[ko]nett stock",
396
396
  "field.nett_weight": "[ko]nett weight",
397
397
  "field.no_of_items": "[ko] no of items",
398
398
  "field.no": "[ko]no",
@@ -2187,5 +2187,6 @@
2187
2187
  "field.executed_at_to_date": "[ko] executed at to date",
2188
2188
  "field.latest_execution_from_date": "[ko] latest execution from date",
2189
2189
  "field.latest_execution_to_date": "[ko] latest execution to date",
2190
- "title.selected_vas": "[ko] selected vas"
2190
+ "title.selected_vas": "[ko] selected vas",
2191
+ "text.please_wait_for_current_process_to_be_completed": "[ko] please wait for current process to be completed"
2191
2192
  }
@@ -375,7 +375,7 @@
375
375
  "field.name": "nama",
376
376
  "field.need_fleet": "keperluan armada",
377
377
  "field.need_transport": "kenderaan diperlukan",
378
- "field.nett_stock":"[ms]nett stock",
378
+ "field.nett_stock": "[ms]nett stock",
379
379
  "field.nett_weight": "[ms]nett weight",
380
380
  "field.no_of_items": "[ms] no of items",
381
381
  "field.no": "[ms]no",
@@ -2060,5 +2060,6 @@
2060
2060
  "field.executed_at_to_date": "[ms] executed at to date",
2061
2061
  "field.latest_execution_from_date": "[ms] latest execution from date",
2062
2062
  "field.latest_execution_to_date": "[ms] latest execution to date",
2063
- "title.selected_vas": "[ms] selected vas"
2063
+ "title.selected_vas": "[ms] selected vas",
2064
+ "text.please_wait_for_current_process_to_be_completed": "[ms] please wait for current process to be completed"
2064
2065
  }
@@ -359,7 +359,7 @@
359
359
  "field.name": "名称",
360
360
  "field.need_fleet": "需要车队",
361
361
  "field.need_transport": "[zh]need transport",
362
- "field.nett_stock":"[zh]nett stock",
362
+ "field.nett_stock": "[zh]nett stock",
363
363
  "field.nett_weight": "[zh]nett weight",
364
364
  "field.no": "[zh]no",
365
365
  "field.non_tally": "[zh]non tally",
@@ -2005,10 +2005,11 @@
2005
2005
  "title.vas_order_report": "[zh] vas order report",
2006
2006
  "title.date_vas_order_report": "[zh] {state.text} Vas Order Report",
2007
2007
  "field.executed_at": "[zh] executed at",
2008
- "field.latest_execution": "[ms] latest execution",
2009
- "field.executed_at_from_date": "[ms] executed at from date",
2010
- "field.executed_at_to_date": "[ms] executed at to date",
2011
- "field.latest_execution_from_date": "[ms] latest execution from date",
2012
- "field.latest_execution_to_date": "[ms] latest execution to date",
2013
- "title.selected_vas": "[zh] selected vas"
2008
+ "field.latest_execution": "[zh] latest execution",
2009
+ "field.executed_at_from_date": "[zh] executed at from date",
2010
+ "field.executed_at_to_date": "[zh] executed at to date",
2011
+ "field.latest_execution_from_date": "[zh] latest execution from date",
2012
+ "field.latest_execution_to_date": "[zh] latest execution to date",
2013
+ "title.selected_vas": "[zh] selected vas",
2014
+ "text.please_wait_for_current_process_to_be_completed": "[zh] please wait for current process to be completed"
2014
2015
  }