@things-factory/operato-wms 4.3.495 → 4.3.498
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.
|
@@ -55,7 +55,8 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
55
55
|
orderVasData: Object,
|
|
56
56
|
refOrderType: String,
|
|
57
57
|
_pageSettings: Object,
|
|
58
|
-
_productBarcode: String
|
|
58
|
+
_productBarcode: String,
|
|
59
|
+
_productBarcodeScanned: String
|
|
59
60
|
}
|
|
60
61
|
}
|
|
61
62
|
|
|
@@ -299,8 +300,7 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
299
300
|
?scan-only=${this._pageSettings?.cameraScanOnly}
|
|
300
301
|
@keypress="${async e => {
|
|
301
302
|
if (e.keyCode === 13) {
|
|
302
|
-
e.preventDefault()
|
|
303
|
-
this._productBarcode = this.productBarcodeInput.value
|
|
303
|
+
e.preventDefault()
|
|
304
304
|
await this._transactionHandler(e)
|
|
305
305
|
}
|
|
306
306
|
}}"
|
|
@@ -676,6 +676,7 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
676
676
|
}
|
|
677
677
|
|
|
678
678
|
async _fetchProducts(orderNo, response) {
|
|
679
|
+
this._productBarcodeScanned = null
|
|
679
680
|
if (this.refOrderType === AVAIL_ORDER_TYPES.ARRIVAL_NOTICE.value) {
|
|
680
681
|
const response = await client.query({
|
|
681
682
|
query: gql`
|
|
@@ -1021,6 +1022,7 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1021
1022
|
this._selectedOrderProduct = null
|
|
1022
1023
|
this._selectedInventory = null
|
|
1023
1024
|
this._unloadedInventories = null
|
|
1025
|
+
this._productBarcodeScanned = null
|
|
1024
1026
|
this.updateContext()
|
|
1025
1027
|
}
|
|
1026
1028
|
|
|
@@ -1028,6 +1030,9 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1028
1030
|
if (e.keyCode !== 13) return
|
|
1029
1031
|
e.preventDefault()
|
|
1030
1032
|
try {
|
|
1033
|
+
if (this._enableProductScanning){
|
|
1034
|
+
this._productBarcode = this.productBarcodeInput.value
|
|
1035
|
+
}
|
|
1031
1036
|
if (!this._enableCartonLabel) return this._unloadSelected()
|
|
1032
1037
|
let orderProducts = await this._validateUnloading()
|
|
1033
1038
|
|
|
@@ -1076,7 +1081,7 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1076
1081
|
`,
|
|
1077
1082
|
variables: {
|
|
1078
1083
|
worksheetDetailName: this._selectedOrderProduct.name,
|
|
1079
|
-
productBarcode: this.
|
|
1084
|
+
productBarcode: this._productBarcodeScanned,
|
|
1080
1085
|
inventory: {
|
|
1081
1086
|
palletId: this._enableCartonLabel ? null : this.lotInput.value.trim(),
|
|
1082
1087
|
cartonId: this._enableCartonLabel ? this.cartonInput.value.trim() : null,
|
|
@@ -1222,7 +1227,7 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1222
1227
|
expirationDate: this._isRequiredCheckExpiry ? this.expDateInput.value : null,
|
|
1223
1228
|
reusablePallet: this._usingReusablePallet ? this._reusablePallet : null
|
|
1224
1229
|
},
|
|
1225
|
-
productBarcode: this._enableProductScanning ? this._productBarcode : null
|
|
1230
|
+
productBarcode: this._enableProductScanning ? this._productBarcodeScanned ? this._productBarcodeScanned : this._productBarcode : null
|
|
1226
1231
|
}
|
|
1227
1232
|
})
|
|
1228
1233
|
if (!response.errors) {
|
|
@@ -1304,12 +1309,13 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1304
1309
|
|
|
1305
1310
|
async _checkedScannedProduct() {
|
|
1306
1311
|
//fetch any product details that has entered gtin
|
|
1307
|
-
const response = await this.fetchProductDetails(this._productBarcode || '')
|
|
1312
|
+
const response = await this.fetchProductDetails(this._productBarcodeScanned ? this._productBarcodeScanned : this._productBarcode.trim() || '')
|
|
1308
1313
|
|
|
1309
1314
|
if (!response.errors) {
|
|
1310
1315
|
let orderProductData = this.orderProductData.records
|
|
1311
1316
|
let checkedProductDetails = response.data.checkGtin.items
|
|
1312
1317
|
this.productBarcodeInput.value = `${checkedProductDetails[0].gtin} (${checkedProductDetails[0].packingType})`
|
|
1318
|
+
this._productBarcodeScanned = checkedProductDetails[0].gtin
|
|
1313
1319
|
|
|
1314
1320
|
//check from grist if any is matched
|
|
1315
1321
|
const foundOrderProducts = orderProductData.filter(op => {
|
|
@@ -1323,20 +1329,18 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1323
1329
|
return checkedProductDetails.some(itm => itm.product.id == op.product.id)
|
|
1324
1330
|
})
|
|
1325
1331
|
|
|
1326
|
-
if (!foundOrderProducts?.length) {
|
|
1327
|
-
if (!
|
|
1328
|
-
if (this.
|
|
1329
|
-
|
|
1330
|
-
}
|
|
1331
|
-
|
|
1332
|
-
if (this._isRequireSerialNumberScanningInbound) {
|
|
1333
|
-
if (this.serialNumberInput?.value) this.serialNumberInput.value = ''
|
|
1334
|
-
}
|
|
1332
|
+
if (!foundOrderProducts?.length && !foundParentProducts?.length) {
|
|
1333
|
+
if (this._enableInputQty >= 0 && this._enableInputQty < 4 && !this._isRequireSerialNumberScanningInbound) {
|
|
1334
|
+
if (this.actualQtyInput?.value) this.actualQtyInput.value = ''
|
|
1335
|
+
}
|
|
1335
1336
|
|
|
1336
|
-
|
|
1337
|
-
this.
|
|
1338
|
-
throw new Error(i18next.t('text.no_matching_product_found'))
|
|
1337
|
+
if (this._isRequireSerialNumberScanningInbound) {
|
|
1338
|
+
if (this.serialNumberInput?.value) this.serialNumberInput.value = ''
|
|
1339
1339
|
}
|
|
1340
|
+
|
|
1341
|
+
this.productBarcodeInput.value = ''
|
|
1342
|
+
this._focusOnProductBarcodeInput()
|
|
1343
|
+
throw new Error(i18next.t('text.no_matching_product_found'))
|
|
1340
1344
|
}
|
|
1341
1345
|
|
|
1342
1346
|
const product =
|
|
@@ -921,6 +921,11 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
|
|
|
921
921
|
this.showToast({ level: 'error', message: i18next.t('text.invalid_unit_cost') })
|
|
922
922
|
}
|
|
923
923
|
break
|
|
924
|
+
case 'expirationDate':
|
|
925
|
+
if (new Date(e.detail.after) < new Date()) {
|
|
926
|
+
this.showToast({ message: i18next.t('text.expiration_date_will_be_earlier_than_today') })
|
|
927
|
+
}
|
|
928
|
+
break
|
|
924
929
|
case 'manufactureDate':
|
|
925
930
|
if (new Date(e.detail.after) > new Date()) {
|
|
926
931
|
this.showToast({ message: i18next.t('text.invalid_manufacture_date') })
|
|
@@ -1029,7 +1034,9 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1029
1034
|
delete row.inventoryItemCount
|
|
1030
1035
|
|
|
1031
1036
|
if (new Date(row.expirationDate) < new Date()) {
|
|
1032
|
-
|
|
1037
|
+
this.showToast({
|
|
1038
|
+
message: `${i18next.t('text.expiration_date_will_be_earlier_than_today')}`
|
|
1039
|
+
})
|
|
1033
1040
|
}
|
|
1034
1041
|
|
|
1035
1042
|
if (row.cuFlag == '+') {
|
|
@@ -1146,7 +1153,9 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1146
1153
|
}
|
|
1147
1154
|
if (itm.expirationDate != null) {
|
|
1148
1155
|
if (new Date(itm.expirationDate) < new Date()) {
|
|
1149
|
-
|
|
1156
|
+
this.showToast({
|
|
1157
|
+
message: `${i18next.t('text.expiration_date_will_be_earlier_than_today')}`
|
|
1158
|
+
})
|
|
1150
1159
|
}
|
|
1151
1160
|
}
|
|
1152
1161
|
if (
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/operato-wms",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.498",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -117,5 +117,5 @@
|
|
|
117
117
|
"cypress-localstorage-commands": "^1.6.1",
|
|
118
118
|
"eslint-plugin-cypress": "^2.12.1"
|
|
119
119
|
},
|
|
120
|
-
"gitHead": "
|
|
120
|
+
"gitHead": "f0c87cf0424463b034f03b391bd4d25934c40e11"
|
|
121
121
|
}
|
package/translations/en.json
CHANGED
|
@@ -1395,6 +1395,7 @@
|
|
|
1395
1395
|
"text.executed": "executed",
|
|
1396
1396
|
"text.executing_release_order": "executing release order",
|
|
1397
1397
|
"text.expiration_date_updated": "expiration date updated",
|
|
1398
|
+
"text.expiration_date_will_be_earlier_than_today": "expiration date will be earlier than today",
|
|
1398
1399
|
"text.expiry_date_is_empty": "expiry date is empty",
|
|
1399
1400
|
"text.export_form_is_invalid": "export form is invalid",
|
|
1400
1401
|
"text.extra_products_approved": "extra product approved",
|
package/translations/ko.json
CHANGED
|
@@ -1374,6 +1374,7 @@
|
|
|
1374
1374
|
"text.eta_date_is_required": "[ko]eta date is required",
|
|
1375
1375
|
"text.executing_release_order": "출고주문 실행",
|
|
1376
1376
|
"text.expiration_date_updated": "[ko]expiration date updated",
|
|
1377
|
+
"text.expiration_date_will_be_earlier_than_today": "[ko]expiration date will be earlier than today",
|
|
1377
1378
|
"text.expiry_date_is_empty": "[ko]expiry date is empty",
|
|
1378
1379
|
"text.export_form_is_invalid": "export form is invalid",
|
|
1379
1380
|
"text.extra_products_approved": "추가 상품이 승인되 었습니다",
|
package/translations/ms.json
CHANGED
|
@@ -1344,6 +1344,7 @@
|
|
|
1344
1344
|
"text.eta_date_is_required": "[ms]eta date is required",
|
|
1345
1345
|
"text.executing_release_order": "laksana pesanan keluar",
|
|
1346
1346
|
"text.expiration_date_updated": "[ms]expiration date updated",
|
|
1347
|
+
"text.expiration_date_will_be_earlier_than_today": "[ms]expiration date will be earlier than today",
|
|
1347
1348
|
"text.expiry_date_is_empty": "[ms]expiry date is empty",
|
|
1348
1349
|
"text.export_form_is_invalid": "export form is invalid",
|
|
1349
1350
|
"text.extra_products_approved": "produk tambahan diterima",
|
package/translations/zh.json
CHANGED
|
@@ -1311,6 +1311,7 @@
|
|
|
1311
1311
|
"text.eta_date_is_required": "[zh]eta date is required",
|
|
1312
1312
|
"text.executing_release_order": "executing release order",
|
|
1313
1313
|
"text.expiration_date_updated": "[zh]expiration date updated",
|
|
1314
|
+
"text.expiration_date_will_be_earlier_than_today": "[zh]expiration date will be earlier than today",
|
|
1314
1315
|
"text.expiry_date_is_empty": "[zh]expiry date is empty",
|
|
1315
1316
|
"text.export_form_is_invalid": "export form is invalid",
|
|
1316
1317
|
"text.extra_products_approved": "extra product approved",
|