@things-factory/operato-wms 4.3.168 → 4.3.170

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.
@@ -1035,7 +1035,6 @@ class ArrivalNoticeDetail extends localize(i18next)(PageView) {
1035
1035
  }
1036
1036
  this._enableCartonLabel = await fetchSettingRule('enable-carton-label', partnerDomainId)
1037
1037
  this._strictProductSelection = await fetchSettingRule('strict-product-selection', partnerDomainId)
1038
- let a = this._strictProductSelection
1039
1038
  this._ganProcessingSetting = (await fetchSettingRule('gan-order-processing', partnerDomainId)) || '-1'
1040
1039
  this.updateContext()
1041
1040
  }
@@ -10,6 +10,7 @@ import { client } from '@things-factory/shell'
10
10
  import { isMobileDevice } from '@things-factory/utils'
11
11
 
12
12
  import { fetchLocationSortingRule } from '../../fetch-location-sorting-rule'
13
+ import { fetchSettingRule } from '../../fetch-setting-value'
13
14
  import { INVENTORY_STATUS, LOCATION_SORTING_RULE, ORDER_TYPES } from '../constants'
14
15
 
15
16
  class InventoryReassignPopup extends localize(i18next)(LitElement) {
@@ -26,7 +27,8 @@ class InventoryReassignPopup extends localize(i18next)(LitElement) {
26
27
  worksheetNo: String,
27
28
  bizplaceId: String,
28
29
  recallOption: Boolean,
29
- _itemNotReassignable: Boolean
30
+ _itemNotReassignable: Boolean,
31
+ _strictProductSelection: Boolean
30
32
  }
31
33
  }
32
34
 
@@ -501,6 +503,9 @@ class InventoryReassignPopup extends localize(i18next)(LitElement) {
501
503
  bizplace {
502
504
  id
503
505
  name
506
+ domain {
507
+ id
508
+ }
504
509
  }
505
510
  product {
506
511
  id
@@ -543,6 +548,10 @@ class InventoryReassignPopup extends localize(i18next)(LitElement) {
543
548
  this.recallOption = this.orderProductData[0]?.releaseGood?.recall || false
544
549
  if (!this.bizplaceId) this.bizplaceId = this._selectedOrderProduct?.bizplace?.id
545
550
 
551
+ this._strictProductSelection = await fetchSettingRule(
552
+ 'strict-product-selection',
553
+ this._selectedOrderProduct?.bizplace?.domain?.id
554
+ )
546
555
  await this.fetchOrderInventories({ page: 1, limit: 9999999 })
547
556
  } else {
548
557
  this._selectedOrderProduct = null
@@ -975,12 +984,37 @@ class InventoryReassignPopup extends localize(i18next)(LitElement) {
975
984
  column.record.options.basicArgs.filters = [
976
985
  { name: 'status', operator: 'eq', value: INVENTORY_STATUS.STORED.value },
977
986
  { name: 'productName', operator: 'eq', value: this._selectedOrderProduct.product.sku },
978
- { name: 'productDetailId', operator: 'eq', value: this._selectedOrderProduct.productDetail.id },
979
987
  { name: 'recall', operator: '', value: this.recallOption },
980
988
  { name: 'skipLockCheck', operator: '', value: true }
981
989
  ]
982
990
  }
983
991
 
992
+ if (this._strictProductSelection) {
993
+ column.record.options.basicArgs.filters = [
994
+ ...column.record.options.basicArgs.filters,
995
+ { name: 'productDetailId', operator: 'eq', value: this._selectedOrderProduct.productDetail.id }
996
+ ]
997
+ } else {
998
+ column.record.options.basicArgs.filters = [
999
+ ...column.record.options.basicArgs.filters,
1000
+ {
1001
+ name: 'packingType',
1002
+ value: this.orderInventoryData.records[0].packingType,
1003
+ operator: 'eq'
1004
+ },
1005
+ {
1006
+ name: 'packingSize',
1007
+ value: this.orderInventoryData.records[0].packingSize,
1008
+ operator: 'eq'
1009
+ },
1010
+ {
1011
+ name: 'uom',
1012
+ value: this.orderInventoryData.records[0].uom,
1013
+ operator: 'eq'
1014
+ }
1015
+ ]
1016
+ }
1017
+
984
1018
  if (_selectedInventories.length) {
985
1019
  column.record.options.basicArgs.filters = [
986
1020
  ...column.record.options.basicArgs.filters,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/operato-wms",
3
- "version": "4.3.168",
3
+ "version": "4.3.170",
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.159",
92
92
  "@things-factory/product-base": "^4.3.166",
93
93
  "@things-factory/resource-ui": "^4.3.163",
94
- "@things-factory/sales-ui": "^4.3.167",
94
+ "@things-factory/sales-ui": "^4.3.170",
95
95
  "@things-factory/scene-data-transform": "^4.3.159",
96
96
  "@things-factory/scene-excel": "^4.3.159",
97
97
  "@things-factory/scene-firebase": "^4.3.159",
@@ -107,8 +107,8 @@
107
107
  "@things-factory/system-ui": "^4.3.159",
108
108
  "@things-factory/transport-base": "^4.3.163",
109
109
  "@things-factory/tutorial-ui": "^4.3.163",
110
- "@things-factory/warehouse-base": "^4.3.167",
111
- "@things-factory/worksheet-base": "^4.3.167"
110
+ "@things-factory/warehouse-base": "^4.3.169",
111
+ "@things-factory/worksheet-base": "^4.3.170"
112
112
  },
113
113
  "devDependencies": {
114
114
  "@things-factory/builder": "^4.3.159",
@@ -117,5 +117,5 @@
117
117
  "cypress-localstorage-commands": "^1.6.1",
118
118
  "eslint-plugin-cypress": "^2.12.1"
119
119
  },
120
- "gitHead": "df41c2c72a32e27184497827a2d6418e88a2c18c"
120
+ "gitHead": "bc64a5e74aefaeb4f3201474b8f78d526b41c434"
121
121
  }
@@ -1397,6 +1397,7 @@
1397
1397
  "text.please_attach_the_file": "please attach the file",
1398
1398
  "text.please_check_your_setting": "please check your setting",
1399
1399
  "text.please_check_your_vas_target": "please check your vas target",
1400
+ "text.please_enter_transfer_qty": "please enter transfer quantity",
1400
1401
  "text.please_key_in_new_serial_number": "please key in new serial number",
1401
1402
  "text.please_recheck_your_request_data": "please recheck your request data",
1402
1403
  "text.please_select_a_company": "please select a company",
@@ -2094,5 +2094,6 @@
2094
2094
  "field.total_seal": "[ko] total seal",
2095
2095
  "field.obsolete": "[ko] obsolete",
2096
2096
  "text.obsolete_inventory_found_please_reassign": "[ko] obsolete inventory found, please reassign",
2097
- "text.invalid_unit_price_not_a_number": "[ko] invalid unit price (not a number)"
2097
+ "text.invalid_unit_price_not_a_number": "[ko] invalid unit price (not a number)",
2098
+ "text.please_enter_transfer_qty": "[ko] please enter transfer quantity"
2098
2099
  }
@@ -1967,5 +1967,6 @@
1967
1967
  "field.total_seal": "[ms] total seal",
1968
1968
  "field.obsolete": "[ms] obsolete",
1969
1969
  "text.obsolete_inventory_found_please_reassign": "[ms] obsolete inventory found, please reassign",
1970
- "text.invalid_unit_price_not_a_number": "[ms] invalid unit price (not a number)"
1970
+ "text.invalid_unit_price_not_a_number": "[ms] invalid unit price (not a number)",
1971
+ "text.please_enter_transfer_qty": "[ms] please enter transfer quantity"
1971
1972
  }
@@ -1917,5 +1917,6 @@
1917
1917
  "field.total_seal": "[zh] total seal",
1918
1918
  "field.obsolete": "[zh] obsolete",
1919
1919
  "text.obsolete_inventory_found_please_reassign": "[zh] obsolete inventory found, please reassign",
1920
- "text.invalid_unit_price_not_a_number": "[zh] invalid unit price (not a number)"
1920
+ "text.invalid_unit_price_not_a_number": "[zh] invalid unit price (not a number)",
1921
+ "text.please_enter_transfer_qty": "[zh] please enter transfer quantity"
1921
1922
  }