@things-factory/operato-wms 4.3.125 → 4.3.126

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.
@@ -532,7 +532,7 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
532
532
  worksheetDetailInfos[0].product?.isRequireSerialNumberScanningOutbound
533
533
  }
534
534
 
535
- if (this.completed && this.airwayBill) {
535
+ if (this.completed && this.airwayBill && !this.ownTransport) {
536
536
  this.printBill()
537
537
  }
538
538
 
@@ -429,10 +429,9 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
429
429
  ></barcode-scanable-input>
430
430
  `
431
431
  : ''}
432
- ${!this._isRequireSerialNumberScanningOutbound &&
433
- ((this._enableInputQty !== 0 && this._releaseGoodType != RO_TYPES.B2B.value) || !this._isCartonLabel)
434
- ? html`${(this._enableInputQty == 1 && !this._releaseGoodType) ||
435
- (this._enableInputQty == 2 && this._releaseGoodType == RO_TYPES.B2C.value) ||
432
+ ${!this._isRequireSerialNumberScanningOutbound && (this._enableInputQty !== 0 || !this._isCartonLabel)
433
+ ? html`${(this._enableInputQty == 1 && this._releaseGoodType) ||
434
+ (this._enableInputQty == 2 && !this._releaseGoodType) ||
436
435
  this._enableInputQty == 3 ||
437
436
  !this._isCartonLabel
438
437
  ? html`<label>${i18next.t('label.picked_qty')}</label>
@@ -1377,7 +1376,8 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
1377
1376
 
1378
1377
  //this.releaseGoodNo will be incorrect if worksheet list is used, therefore it's assigned here
1379
1378
  //this._selectedOrderInventory still has the value of previous order, therefore it's cleared here
1380
- if (this.releaseGoodNo !== pickingRefNo) {
1379
+ //it should check if this.releaseGoodNo exist or not first, if it exist then only will run this logic, this logic is only suitable for single picking
1380
+ if (this.releaseGoodNo && this.releaseGoodNo !== pickingRefNo) {
1381
1381
  this.releaseGoodNo = pickingRefNo
1382
1382
  this._selectedOrderInventory = null
1383
1383
  }
@@ -1627,6 +1627,22 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
1627
1627
 
1628
1628
  if (!this._selectedOrderInventory) {
1629
1629
  this._selectedOrderInventory = this.data.records[0]
1630
+ } else {
1631
+ let currentData = this.data.records.find(
1632
+ record =>
1633
+ record.product.sku === this._selectedOrderInventory.product.sku &&
1634
+ record.palletId === this._selectedOrderInventory.palletId
1635
+ )
1636
+ if (currentData.completed) {
1637
+ if (this.cartonInput) this.cartonInput.value = ''
1638
+ if (this.palletInput) this.palletInput.value = ''
1639
+ let nextData = this.data.records.filter(recs => !recs.completed)
1640
+ if (nextData.length > 0) {
1641
+ this._selectedOrderInventory = nextData[0]
1642
+ } else {
1643
+ this._selectedOrderInventory = null
1644
+ }
1645
+ }
1630
1646
  }
1631
1647
 
1632
1648
  if (
@@ -6,28 +6,28 @@ module.exports = {
6
6
  subdomainOffset: 2,
7
7
  port: 1100,
8
8
  inspect: '9430',
9
- // ormconfig: {
10
- // name: 'default',
11
- // type: 'postgres',
12
- // database: 'dev3',
13
- // username: 'postgres',
14
- // password: 'hatio',
15
- // host: '192.168.0.153',
16
- // port: 15432,
17
- // synchronize: true,
18
- // logging: true
19
- // },
20
9
  ormconfig: {
21
10
  name: 'default',
22
11
  type: 'postgres',
23
- database: 'postgres',
12
+ database: 'dev3',
24
13
  username: 'postgres',
25
- password: 'abcd1234',
26
- host: 'operatov3.cluster-cijhm4n1hbst.ap-southeast-1.rds.amazonaws.com',
27
- port: 55432,
28
- synchronize: false,
14
+ password: 'hatio',
15
+ host: '192.168.0.153',
16
+ port: 15432,
17
+ synchronize: true,
29
18
  logging: true
30
19
  },
20
+ // ormconfig: {
21
+ // name: 'default',
22
+ // type: 'postgres',
23
+ // database: 'postgres',
24
+ // username: 'postgres',
25
+ // password: 'abcd1234',
26
+ // host: 'operatov3.cluster-cijhm4n1hbst.ap-southeast-1.rds.amazonaws.com',
27
+ // port: 55432,
28
+ // synchronize: false,
29
+ // logging: true
30
+ // },
31
31
  sellercraftIntegrationConfig: {
32
32
  apiKey: 'Et0KqtLvA6e92bDvOywy9eCCud4hpAal8akpqI90'
33
33
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/operato-wms",
3
- "version": "4.3.125",
3
+ "version": "4.3.126",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -92,7 +92,7 @@
92
92
  "@things-factory/print-ui": "^4.3.122",
93
93
  "@things-factory/product-base": "^4.3.122",
94
94
  "@things-factory/resource-ui": "^4.3.123",
95
- "@things-factory/sales-ui": "^4.3.125",
95
+ "@things-factory/sales-ui": "^4.3.126",
96
96
  "@things-factory/scene-data-transform": "^4.3.122",
97
97
  "@things-factory/scene-excel": "^4.3.122",
98
98
  "@things-factory/scene-firebase": "^4.3.122",
@@ -108,8 +108,8 @@
108
108
  "@things-factory/system-ui": "^4.3.122",
109
109
  "@things-factory/transport-base": "^4.3.122",
110
110
  "@things-factory/tutorial-ui": "^4.3.122",
111
- "@things-factory/warehouse-base": "^4.3.125",
112
- "@things-factory/worksheet-base": "^4.3.125"
111
+ "@things-factory/warehouse-base": "^4.3.126",
112
+ "@things-factory/worksheet-base": "^4.3.126"
113
113
  },
114
114
  "devDependencies": {
115
115
  "@things-factory/builder": "^4.3.122",
@@ -118,5 +118,5 @@
118
118
  "cypress-localstorage-commands": "^1.6.1",
119
119
  "eslint-plugin-cypress": "^2.12.1"
120
120
  },
121
- "gitHead": "9befff87defc2a9ce88074f203ac8c4fb221355b"
121
+ "gitHead": "4b44126b745e4d325a2105afab39957d1a9b8998"
122
122
  }