@things-factory/operato-wms 4.3.194 → 4.3.196

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.
@@ -30,7 +30,8 @@ class LoadingProduct extends connect(store)(localize(i18next)(PageView)) {
30
30
  loadedProductConfig: Object,
31
31
  loadedProductData: Object,
32
32
  _selectedTaskStatus: String,
33
- transportVehicles: Array
33
+ transportVehicles: Array,
34
+ _requireDeliveryInformation: Boolean
34
35
  }
35
36
  }
36
37
 
@@ -310,6 +311,7 @@ class LoadingProduct extends connect(store)(localize(i18next)(PageView)) {
310
311
 
311
312
  async pageInitialized() {
312
313
  let enableToteScanning = await fetchSettingRule('enable-tote-scanning')
314
+ this._requireDeliveryInformation = await fetchSettingRule('enable-loading-delivery-information')
313
315
  let configColumns = [
314
316
  { type: 'gutter', gutterName: 'sequence' },
315
317
  { type: 'gutter', gutterName: 'row-selector', multiple: true }
@@ -830,6 +832,12 @@ class LoadingProduct extends connect(store)(localize(i18next)(PageView)) {
830
832
  if (!this.pickedProductGrist.selected || !this.pickedProductGrist.selected.length) {
831
833
  throw new Error(i18next.t('text.there_is_no_selected_items'))
832
834
  }
835
+ //2. validate whether delivery order is empty or not. It should only validate if enable-loading-delivery-information is set to true
836
+ if (this._requireDeliveryInformation) {
837
+ if (!this.palletQty.value || !this.truckInput.value) {
838
+ throw new Error(i18next.t('text.empty_field_in_delivery_information'))
839
+ }
840
+ }
833
841
  }
834
842
 
835
843
  _validateUndoLoading() {
@@ -38,7 +38,6 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
38
38
  totalBinRO: Number,
39
39
  binRo: String,
40
40
  ownTransport: Boolean,
41
- lmdOption: Boolean,
42
41
  toggleComplete: Boolean,
43
42
  _bizplaceName: String,
44
43
  _enableProductScanning: Boolean,
@@ -111,7 +110,7 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
111
110
  }
112
111
 
113
112
  if (this.releaseGoodNo && this.platform == 'operato' && this.completed) {
114
- if (!this.ownTransport || (this.ownTransport && this.lmdOption)) {
113
+ if (this.airwayBill) {
115
114
  actions.push({
116
115
  title: i18next.t('button.print_airway_bill'),
117
116
  action: this.printSellercraftDocument.bind(this, 'awb'),
@@ -409,7 +408,6 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
409
408
  name
410
409
  remark
411
410
  ownTransport
412
- lmdOption
413
411
  checkedRemarkAt
414
412
  totalInventoriesByBin
415
413
  isOrderInventoryBin
@@ -539,7 +537,6 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
539
537
  this.orderInformation = worksheetInfo.marketplaceOrder
540
538
  this.orderRemark = worksheetInfo.releaseGood?.remark
541
539
  this.ownTransport = worksheetInfo.releaseGood?.ownTransport
542
- this.lmdOption = worksheetInfo.releaseGood?.lmdOption
543
540
  this.checkedRemarkAt = worksheetInfo.releaseGood?.checkedRemarkAt
544
541
  this.toggleComplete = Boolean(worksheetInfo.releaseGood?.remark)
545
542
  ? worksheetDetailInfos.every(res => res.status === 'DONE') &&
@@ -564,7 +561,7 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
564
561
  worksheetDetailInfos[0].product?.isRequireSerialNumberScanningOutbound
565
562
  }
566
563
 
567
- if (this.completed && this.airwayBill && (!this.ownTransport || (this.ownTransport && this.lmdOption))) {
564
+ if (this.completed && this.airwayBill) {
568
565
  this.printBill()
569
566
  }
570
567
 
@@ -1116,7 +1113,7 @@ class PackingProduct extends connect(store)(localize(i18next)(PageView)) {
1116
1113
  await this.printAirwayBill()
1117
1114
  }
1118
1115
 
1119
- if (this.releaseGoodNo && this.platform == 'operato' && (!this.ownTransport || (this.ownTransport && this.lmdOption)) && this.airwayBill && this.completed) {
1116
+ if (this.releaseGoodNo && this.platform == 'operato' && this.airwayBill && this.completed) {
1120
1117
  await this.printSellercraftDocument('awb')
1121
1118
  }
1122
1119
  }
@@ -363,15 +363,6 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
363
363
  this.completeHandler()
364
364
  }
365
365
  }
366
- let [enableProductScanning, enableToteScanning, enableInputQty] = await Promise.all([
367
- fetchSettingRule('enable-product-scanning', this._worksheetInfo?.partnerDomainId),
368
- fetchSettingRule('enable-tote-scanning', this._worksheetInfo?.partnerDomainId),
369
- fetchSettingRule('enable-input-qty', this._worksheetInfo?.partnerDomainId)
370
- ])
371
- this._enableProductScanning = enableProductScanning
372
- this._enableToteScanning = enableToteScanning
373
- this._enableInputQty = enableInputQty
374
- this.focusOnInput()
375
366
  }
376
367
  } catch (e) {}
377
368
  }}"
@@ -1227,17 +1218,17 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
1227
1218
  if (this._selectedOrderInventory.cartonId !== this.cartonInput.value) {
1228
1219
  //carton replacement?
1229
1220
  throw new Error(i18next.t('text.invalid_carton_id'))
1230
- this._isReplacement = await this.checkCartonIdenticality(
1231
- this._selectedOrderInventory.cartonId,
1232
- this._selectedOrderInventory.palletId,
1233
- this.cartonInput.value
1234
- )
1235
-
1236
- if (!this._isReplacement) {
1237
- this.cartonInput.value = ''
1238
- this._focusOnCartonNoInput()
1239
- throw new Error(i18next.t('text.wrong_carton_id'))
1240
- }
1221
+ // this._isReplacement = await this.checkCartonIdenticality(
1222
+ // this._selectedOrderInventory.cartonId,
1223
+ // this._selectedOrderInventory.palletId,
1224
+ // this.cartonInput.value
1225
+ // )
1226
+
1227
+ // if (!this._isReplacement) {
1228
+ // this.cartonInput.value = ''
1229
+ // this._focusOnCartonNoInput()
1230
+ // throw new Error(i18next.t('text.wrong_carton_id'))
1231
+ // }
1241
1232
  }
1242
1233
 
1243
1234
  if (this._enableProductScanning) {
@@ -1442,7 +1433,8 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
1442
1433
 
1443
1434
  autoFetchPickingTasks(orderNo) {
1444
1435
  this.releaseGoodNoInput.value = orderNo
1445
- this.fetchAll(this.releaseGoodNoInput.value)
1436
+ this.releaseGoodNo = this.releaseGoodNoInput.value
1437
+ this.fetchAll(this.releaseGoodNo)
1446
1438
  }
1447
1439
 
1448
1440
  async fetchInventories(pickingRefNo) {
@@ -1620,16 +1612,7 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
1620
1612
  }
1621
1613
  }
1622
1614
 
1623
- if (
1624
- this._selectedOrderInventory &&
1625
- this._selectedOrderInventory.pickedQty != this._selectedOrderInventory.releaseQty &&
1626
- !this._selectedOrderInventory?.hasMissingInventoryChanges &&
1627
- this._selectedOrderInventory.status !== 'MISSING'
1628
- ) {
1629
- this.scannable = true
1630
- } else {
1631
- this.scannable = false
1632
- }
1615
+ this.scannableField()
1633
1616
 
1634
1617
  if (data) {
1635
1618
  if (!this._isCartonLabel) {
@@ -1736,17 +1719,7 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
1736
1719
  }
1737
1720
  }
1738
1721
  }
1739
-
1740
- if (
1741
- this._selectedOrderInventory &&
1742
- this._selectedOrderInventory.pickedQty != this._selectedOrderInventory.releaseQty &&
1743
- !this._selectedOrderInventory?.hasMissingInventoryChanges &&
1744
- this._selectedOrderInventory.status !== 'MISSING'
1745
- ) {
1746
- this.scannable = true
1747
- } else {
1748
- this.scannable = false
1749
- }
1722
+ this.scannableField()
1750
1723
 
1751
1724
  if (!this._isCartonLabel && data) {
1752
1725
  const findPalletId = worksheetDetailInfos.find(res => res.palletId == data.palletId)
@@ -1764,9 +1737,6 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
1764
1737
  }
1765
1738
  }
1766
1739
 
1767
- this._enableProductScanning = await fetchSettingRule('enable-product-scanning', worksheetInfo.partnerDomainId)
1768
- this._enableInputQty = await fetchSettingRule('enable-input-qty', worksheetInfo.partnerDomainId)
1769
-
1770
1740
  if (this._selectedOrderInventory) {
1771
1741
  const record = this.data.records.find(
1772
1742
  record =>
@@ -2065,9 +2035,11 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
2065
2035
  this._enableProductScanning = await fetchSettingRule('enable-product-scanning', worksheetInfo.partnerDomainId)
2066
2036
  this._enableToteScanning = await fetchSettingRule('enable-tote-scanning', worksheetInfo.partnerDomainId)
2067
2037
 
2038
+ this._selectedOrderInventory = this.data?.records[0] || undefined
2039
+
2068
2040
  if (this._selectedOrderInventory) {
2069
- const record = this.data.records.find(record => record.name === this._selectedOrderInventory.name)
2070
- if (record?.pickedQty == record?.releaseQty) {
2041
+ this.updateSelectedItemProp(this._selectedOrderInventory)
2042
+ if (this._selectedOrderInventory?.pickedQty == this._selectedOrderInventory?.releaseQty) {
2071
2043
  if (this._isCartonLabel) {
2072
2044
  this.cartonInput.value = ''
2073
2045
  this._focusOnCartonNoInput()
@@ -2077,9 +2049,10 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
2077
2049
  this.inputForm.reset()
2078
2050
  } else {
2079
2051
  this._focusOnProductBarcodeInput()
2080
- this.fillUpForm(this.inputForm, record)
2052
+ this.fillUpForm(this.inputForm, this._selectedOrderInventory)
2081
2053
  }
2082
2054
  }
2055
+ this.scannableField()
2083
2056
  }
2084
2057
  } catch (e) {
2085
2058
  showToast(e)
@@ -2089,6 +2062,15 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
2089
2062
  async fetchAll(orderNo) {
2090
2063
  await this.fetchInventories(orderNo)
2091
2064
  await this.fetchPalletsHandler(orderNo)
2065
+ let [enableProductScanning, enableToteScanning, enableInputQty] = await Promise.all([
2066
+ fetchSettingRule('enable-product-scanning', this._worksheetInfo.partnerDomainId),
2067
+ fetchSettingRule('enable-tote-scanning', this._worksheetInfo.partnerDomainId),
2068
+ fetchSettingRule('enable-input-qty', this._worksheetInfo.partnerDomainId)
2069
+ ])
2070
+ this._enableProductScanning = enableProductScanning
2071
+ this._enableToteScanning = enableToteScanning
2072
+ this._enableInputQty = enableInputQty
2073
+ this.focusOnInput()
2092
2074
  }
2093
2075
 
2094
2076
  async showWorksheetList() {
@@ -2155,6 +2137,18 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
2155
2137
  this._isRequireSerialNumberScanningOutbound = selectedRecords?.product?.isRequireSerialNumberScanningOutbound
2156
2138
  }
2157
2139
 
2140
+ scannableField() {
2141
+ if (
2142
+ this._selectedOrderInventory &&
2143
+ this._selectedOrderInventory.pickedQty != this._selectedOrderInventory.releaseQty &&
2144
+ !this._selectedOrderInventory?.hasMissingInventoryChanges &&
2145
+ this._selectedOrderInventory.status !== 'MISSING'
2146
+ ) {
2147
+ this.scannable = true
2148
+ } else {
2149
+ this.scannable = false
2150
+ }
2151
+ }
2158
2152
  massageReleaseGood(response) {}
2159
2153
  }
2160
2154
 
@@ -4,33 +4,45 @@ module.exports = {
4
4
  useVirtualHostBasedDomain: false,
5
5
  fallbackRoute: '/',
6
6
  subdomainOffset: 2,
7
- port: 1100,
8
- inspect: '9430',
7
+ port: 4000,
8
+ inspect: '9330',
9
9
  ormconfig: {
10
10
  name: 'default',
11
11
  type: 'postgres',
12
- database: 'dev2',
12
+ database: 'postgres',
13
13
  username: 'postgres',
14
14
  password: 'hatio',
15
- host: '192.168.0.161',
15
+ host: 'localhost',
16
16
  port: 15432,
17
17
  synchronize: false,
18
- logging: false
18
+ logging: true
19
19
  },
20
20
  // ormconfig: {
21
21
  // name: 'default',
22
22
  // type: 'postgres',
23
- // database: 'postgres',
24
- // username: 'postgres',
25
- // password: 'abcd1234',
26
23
  // host: 'operatov3.cluster-cijhm4n1hbst.ap-southeast-1.rds.amazonaws.com',
27
24
  // port: 55432,
25
+ // database: 'dev2',
26
+ // username: 'postgres',
27
+ // password: 'abcd1234',
28
28
  // synchronize: false,
29
- // logging: true
29
+ // logging: true,
30
+ // connectTimeoutMS: 30000,
31
+ // extra: { poolSize: 30 }
30
32
  // },
31
- sellercraftIntegrationConfig: {
32
- apiKey: 'Et0KqtLvA6e92bDvOywy9eCCud4hpAal8akpqI90'
33
- },
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
+ //},
34
46
  SECRET: '0xD58F835B69D207A76CC5F84a70a1D0d4C79dfC95',
35
47
  password: {
36
48
  lowerCase: true,
@@ -44,13 +56,6 @@ module.exports = {
44
56
  looseCharacterLength: 4,
45
57
  history: 2
46
58
  },
47
- // storage: {
48
- // type: 's3',
49
- // accessKeyId: 'AKIAUQEOPWEJCDH6AR5H',
50
- // secretAccessKey: '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',
51
- // bucketName: 'opa-one',
52
- // region: 'ap-southeast-1'
53
- // },
54
59
  uploads: 'uploads',
55
60
  attachmentsPath: 'attachments',
56
61
  logger: {
@@ -100,5 +105,14 @@ module.exports = {
100
105
  // privateKey: '4pmlt3Wk019u7nqU3Q_oGZE6LbUDjjf8DpmAcn9-iss'
101
106
  // }
102
107
  },
103
- reportApiUrl: 'http://192.168.0.153:8888/rest/report/show_html'
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
+ }
104
118
  }
@@ -24,7 +24,7 @@ exports.OutboundOrderDetailsReport = (0, graphql_tag_1.default) `
24
24
  transportOption: String
25
25
  vehicleNo: String
26
26
  driverName: String
27
- palletQty: Int
27
+ palletQty: String
28
28
  acceptedBy: String
29
29
  acceptedAt: String
30
30
  orderCreatedBy: String
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/operato-wms",
3
- "version": "4.3.194",
3
+ "version": "4.3.196",
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.179",
92
92
  "@things-factory/product-base": "^4.3.186",
93
93
  "@things-factory/resource-ui": "^4.3.179",
94
- "@things-factory/sales-ui": "^4.3.193",
94
+ "@things-factory/sales-ui": "^4.3.196",
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.179",
108
108
  "@things-factory/transport-base": "^4.3.179",
109
109
  "@things-factory/tutorial-ui": "^4.3.179",
110
- "@things-factory/warehouse-base": "^4.3.193",
111
- "@things-factory/worksheet-base": "^4.3.194"
110
+ "@things-factory/warehouse-base": "^4.3.196",
111
+ "@things-factory/worksheet-base": "^4.3.196"
112
112
  },
113
113
  "devDependencies": {
114
114
  "@things-factory/builder": "^4.3.179",
@@ -117,5 +117,5 @@
117
117
  "cypress-localstorage-commands": "^1.6.1",
118
118
  "eslint-plugin-cypress": "^2.12.1"
119
119
  },
120
- "gitHead": "fa364664b6924dd8afab814ef66d9feb77174691"
120
+ "gitHead": "ef671f15d25f20c681f337abee65fb77f9d12869"
121
121
  }
@@ -19,7 +19,7 @@ export const OutboundOrderDetailsReport = gql`
19
19
  transportOption: String
20
20
  vehicleNo: String
21
21
  driverName: String
22
- palletQty: Int
22
+ palletQty: String
23
23
  acceptedBy: String
24
24
  acceptedAt: String
25
25
  orderCreatedBy: String
@@ -182,8 +182,8 @@
182
182
  "field.bin_number": "bin number",
183
183
  "field.bin": "bin",
184
184
  "field.branch": "branch",
185
- "field.brand_sku": "brand sku",
186
185
  "field.brand_sku_label": "Brand SKU",
186
+ "field.brand_sku": "brand sku",
187
187
  "field.brand": "brand",
188
188
  "field.brn": "brn",
189
189
  "field.buffer_location": "buffer location",
@@ -1101,8 +1101,8 @@
1101
1101
  "text.activate_cycle_count_worksheet": "activate cycle count worksheet",
1102
1102
  "text.activate_loading_worksheet": "activate loading worksheet",
1103
1103
  "text.activate_packing_worksheet": "activate packing worksheet",
1104
- "text.activate_picking_worksheet": "activate picking worksheet",
1105
1104
  "text.activate_picking_replenishment_worksheet": "activate picking replenishment worksheet",
1105
+ "text.activate_picking_worksheet": "activate picking worksheet",
1106
1106
  "text.activate_putaway_worksheet": "activate putaway worksheet",
1107
1107
  "text.activate_return_worksheet": "activate return worksheet",
1108
1108
  "text.activate_sorting_worksheet": "activate sorting worksheet",
@@ -1244,6 +1244,7 @@
1244
1244
  "text.duplicated_vas_on_same_batch": "duplicated vas on same batch",
1245
1245
  "text.edit_add_order_product": "edit add order product",
1246
1246
  "text.edited_batch_no_have_been_processed": "edited batch no have been processed",
1247
+ "text.empty_field_in_delivery_information": "empty field(s) in delivery information",
1247
1248
  "text.empty_product_barcode": "empty product barcode",
1248
1249
  "text.empty_serial_number": "empty serial number",
1249
1250
  "text.empty_value_in_add_product_list": "empty value in add product list",
@@ -1877,10 +1878,10 @@
1877
1878
  "title.repack_relabel": "repacking & relabeling configuration",
1878
1879
  "title.repack": "repacking configuration",
1879
1880
  "title.replenishment_detail": "replenishment detail",
1880
- "title.replenishment_worksheet_list": "replenishment worksheet list",
1881
- "title.replenishment": "replenishment",
1882
1881
  "title.replenishment_list": "replenishment list",
1882
+ "title.replenishment_worksheet_list": "replenishment worksheet list",
1883
1883
  "title.replenishment_worksheet": "replenishment worksheet",
1884
+ "title.replenishment": "replenishment",
1884
1885
  "title.retail_replenishment_order_detail": "retail replenishment order detail",
1885
1886
  "title.retail_replenishment_order_no": "replenishment order number",
1886
1887
  "title.retail_replenishment_order_requests": "retail replenishment order requests",