@things-factory/operato-wms 4.3.745 → 4.3.752

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.
@@ -339,7 +339,7 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
339
339
  />
340
340
  `
341
341
  : ''}
342
- ${this._isRequiredCheckManufactureDate && this.refOrderType === AVAIL_ORDER_TYPES.ARRIVAL_NOTICE.value
342
+ ${this._isRequiredCheckManufactureDate
343
343
  ? html`
344
344
  <label>${i18next.t('label.manufacture_date')}</label>
345
345
  <input
@@ -471,8 +471,20 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
471
471
 
472
472
  this.inputForm.reset()
473
473
 
474
- if (this._isRequiredCheckManufactureDate && record.manufactureDate && this.manufactureDateInput) {
475
- this.manufactureDateInput.value = this._formatDateForInput(record.manufactureDate)
474
+ if (this._isRequiredCheckManufactureDate && record?.manufactureDate && this.refOrderType === AVAIL_ORDER_TYPES.ARRIVAL_NOTICE.value) {
475
+ setTimeout(() => {
476
+ if (this.manufactureDateInput) {
477
+ this.manufactureDateInput.value = this._formatDateForInput(record.manufactureDate)
478
+ }
479
+ }, 0)
480
+ }
481
+
482
+ if (this._isRequiredCheckManufactureDate && record?.inventory?.manufactureDate && this.refOrderType === AVAIL_ORDER_TYPES.RETURN_ORDER.value) {
483
+ setTimeout(() => {
484
+ if (this.manufactureDateInput) {
485
+ this.manufactureDateInput.value = this._formatDateForInput(record.inventory.manufactureDate)
486
+ }
487
+ }, 0)
476
488
  }
477
489
 
478
490
  if (this._enableCartonLabel) {
@@ -782,6 +794,22 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
782
794
  return value
783
795
  }
784
796
 
797
+ _getManufactureDateValue() {
798
+ if (this._isRequiredCheckManufactureDate) {
799
+ return this._getValidManufactureDate()
800
+ }
801
+
802
+ if (this.refOrderType === AVAIL_ORDER_TYPES.ARRIVAL_NOTICE.value) {
803
+ return this._selectedOrderProduct?.manufactureDate || null
804
+ }
805
+
806
+ if (this.refOrderType === AVAIL_ORDER_TYPES.RETURN_ORDER.value) {
807
+ return this._selectedOrderProduct?.inventory?.manufactureDate || null
808
+ }
809
+
810
+ return null
811
+ }
812
+
785
813
  async _fetchProducts(orderNo, response) {
786
814
  if (this.refOrderType === AVAIL_ORDER_TYPES.ARRIVAL_NOTICE.value) {
787
815
  const response = await client.query({
@@ -979,6 +1007,7 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
979
1007
  }
980
1008
  inventory {
981
1009
  id
1010
+ manufactureDate
982
1011
  }
983
1012
  name
984
1013
  targetName
@@ -1241,7 +1270,7 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
1241
1270
  palletId: this._enableCartonLabel ? null : this.lotInput.value.trim(),
1242
1271
  cartonId: this._enableCartonLabel ? this.cartonInput.value.trim() : null,
1243
1272
  expirationDate: this._isRequiredCheckExpiry ? this.expDateInput.value : null,
1244
- manufactureDate: this._isRequiredCheckManufactureDate ? this._getValidManufactureDate() : null
1273
+ manufactureDate: this._getManufactureDateValue(),
1245
1274
  }
1246
1275
  }
1247
1276
  })
@@ -1299,7 +1328,7 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
1299
1328
  palletId: this._enableCartonLabel ? null : this.lotInput.value.trim(),
1300
1329
  cartonId: this._enableCartonLabel ? this.cartonInput.value.trim() : null,
1301
1330
  expirationDate: this._isRequiredCheckExpiry ? this.expDateInput.value : null,
1302
- manufactureDate: this._isRequiredCheckManufactureDate ? this._getValidManufactureDate() : null
1331
+ manufactureDate: this._getManufactureDateValue(),
1303
1332
  }
1304
1333
  }
1305
1334
  })
@@ -1394,7 +1423,7 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
1394
1423
  cartonId: this._enableCartonLabel ? this.cartonInput.value.trim() : null,
1395
1424
  qty: qty, // Use the validated qty
1396
1425
  expirationDate: this._isRequiredCheckExpiry ? this.expDateInput.value : null,
1397
- manufactureDate: this._isRequiredCheckManufactureDate ? this._getValidManufactureDate() : null,
1426
+ manufactureDate: this._getManufactureDateValue(),
1398
1427
  reusablePallet: this._usingReusablePallet ? this._reusablePallet : null
1399
1428
  },
1400
1429
  productBarcode: this._enableProductScanning
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/operato-wms",
3
- "version": "4.3.745",
3
+ "version": "4.3.752",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -62,60 +62,60 @@
62
62
  "@operato/scene-tab": "^0.1.8",
63
63
  "@operato/scene-table": "^0.1.8",
64
64
  "@operato/scene-wheel-sorter": "^0.1.8",
65
- "@things-factory/apptool-ui": "^4.3.743",
66
- "@things-factory/attachment-ui": "^4.3.743",
67
- "@things-factory/auth-ui": "^4.3.743",
68
- "@things-factory/barcode-ui": "^4.3.743",
69
- "@things-factory/biz-ui": "^4.3.745",
70
- "@things-factory/board-service": "^4.3.743",
71
- "@things-factory/board-ui": "^4.3.743",
72
- "@things-factory/code-ui": "^4.3.743",
73
- "@things-factory/context-ui": "^4.3.743",
74
- "@things-factory/export-ui": "^4.3.743",
75
- "@things-factory/export-ui-csv": "^4.3.743",
76
- "@things-factory/export-ui-excel": "^4.3.743",
77
- "@things-factory/fav-base": "^4.3.743",
78
- "@things-factory/form-ui": "^4.3.743",
79
- "@things-factory/geography": "^4.3.743",
80
- "@things-factory/grist-ui": "^4.3.743",
81
- "@things-factory/help": "^4.3.743",
82
- "@things-factory/i18n-base": "^4.3.743",
83
- "@things-factory/id-rule-base": "^4.3.743",
84
- "@things-factory/import-ui": "^4.3.743",
85
- "@things-factory/import-ui-excel": "^4.3.743",
86
- "@things-factory/menu-ui": "^4.3.743",
87
- "@things-factory/more-ui": "^4.3.743",
88
- "@things-factory/notification": "^4.3.743",
89
- "@things-factory/pdf": "^4.3.743",
90
- "@things-factory/print-proxy-service": "^4.3.743",
91
- "@things-factory/print-ui": "^4.3.743",
92
- "@things-factory/product-base": "^4.3.745",
93
- "@things-factory/resource-ui": "^4.3.743",
94
- "@things-factory/sales-ui": "^4.3.745",
95
- "@things-factory/scene-data-transform": "^4.3.743",
96
- "@things-factory/scene-excel": "^4.3.743",
97
- "@things-factory/scene-firebase": "^4.3.743",
98
- "@things-factory/scene-form": "^4.3.743",
99
- "@things-factory/scene-google-map": "^4.3.743",
100
- "@things-factory/scene-graphql": "^4.3.743",
101
- "@things-factory/scene-label": "^4.3.743",
102
- "@things-factory/scene-marker": "^4.3.743",
103
- "@things-factory/scene-mqtt": "^4.3.743",
104
- "@things-factory/scene-restful": "^4.3.743",
105
- "@things-factory/scene-visualizer": "^4.3.743",
106
- "@things-factory/setting-ui": "^4.3.743",
107
- "@things-factory/system-ui": "^4.3.743",
108
- "@things-factory/transport-base": "^4.3.745",
109
- "@things-factory/tutorial-ui": "^4.3.743",
110
- "@things-factory/warehouse-base": "^4.3.745",
111
- "@things-factory/worksheet-base": "^4.3.745"
65
+ "@things-factory/apptool-ui": "^4.3.752",
66
+ "@things-factory/attachment-ui": "^4.3.752",
67
+ "@things-factory/auth-ui": "^4.3.752",
68
+ "@things-factory/barcode-ui": "^4.3.752",
69
+ "@things-factory/biz-ui": "^4.3.752",
70
+ "@things-factory/board-service": "^4.3.752",
71
+ "@things-factory/board-ui": "^4.3.752",
72
+ "@things-factory/code-ui": "^4.3.752",
73
+ "@things-factory/context-ui": "^4.3.752",
74
+ "@things-factory/export-ui": "^4.3.752",
75
+ "@things-factory/export-ui-csv": "^4.3.752",
76
+ "@things-factory/export-ui-excel": "^4.3.752",
77
+ "@things-factory/fav-base": "^4.3.752",
78
+ "@things-factory/form-ui": "^4.3.752",
79
+ "@things-factory/geography": "^4.3.752",
80
+ "@things-factory/grist-ui": "^4.3.752",
81
+ "@things-factory/help": "^4.3.752",
82
+ "@things-factory/i18n-base": "^4.3.752",
83
+ "@things-factory/id-rule-base": "^4.3.752",
84
+ "@things-factory/import-ui": "^4.3.752",
85
+ "@things-factory/import-ui-excel": "^4.3.752",
86
+ "@things-factory/menu-ui": "^4.3.752",
87
+ "@things-factory/more-ui": "^4.3.752",
88
+ "@things-factory/notification": "^4.3.752",
89
+ "@things-factory/pdf": "^4.3.752",
90
+ "@things-factory/print-proxy-service": "^4.3.752",
91
+ "@things-factory/print-ui": "^4.3.752",
92
+ "@things-factory/product-base": "^4.3.752",
93
+ "@things-factory/resource-ui": "^4.3.752",
94
+ "@things-factory/sales-ui": "^4.3.752",
95
+ "@things-factory/scene-data-transform": "^4.3.752",
96
+ "@things-factory/scene-excel": "^4.3.752",
97
+ "@things-factory/scene-firebase": "^4.3.752",
98
+ "@things-factory/scene-form": "^4.3.752",
99
+ "@things-factory/scene-google-map": "^4.3.752",
100
+ "@things-factory/scene-graphql": "^4.3.752",
101
+ "@things-factory/scene-label": "^4.3.752",
102
+ "@things-factory/scene-marker": "^4.3.752",
103
+ "@things-factory/scene-mqtt": "^4.3.752",
104
+ "@things-factory/scene-restful": "^4.3.752",
105
+ "@things-factory/scene-visualizer": "^4.3.752",
106
+ "@things-factory/setting-ui": "^4.3.752",
107
+ "@things-factory/system-ui": "^4.3.752",
108
+ "@things-factory/transport-base": "^4.3.752",
109
+ "@things-factory/tutorial-ui": "^4.3.752",
110
+ "@things-factory/warehouse-base": "^4.3.752",
111
+ "@things-factory/worksheet-base": "^4.3.752"
112
112
  },
113
113
  "devDependencies": {
114
- "@things-factory/builder": "^4.3.743",
114
+ "@things-factory/builder": "^4.3.752",
115
115
  "cypress": "^9.4.1",
116
116
  "cypress-file-upload": "^5.0.8",
117
117
  "cypress-localstorage-commands": "^1.6.1",
118
118
  "eslint-plugin-cypress": "^2.12.1"
119
119
  },
120
- "gitHead": "89c8b3c8c7ac589d4f547a984c1027a6f509671f"
120
+ "gitHead": "cc2f8abfd00055dfbd1737e3016fe4a464af2548"
121
121
  }