@things-factory/operato-wms 4.3.328 → 4.3.330

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.
@@ -465,6 +465,7 @@ class OnhandInventory extends connect(store)(localize(i18next)(PageView)) {
465
465
  remark
466
466
  unitCost
467
467
  adjustmentNote
468
+ condition
468
469
  }
469
470
  total
470
471
  }
@@ -488,7 +489,7 @@ class OnhandInventory extends connect(store)(localize(i18next)(PageView)) {
488
489
  console.log(response)
489
490
 
490
491
  return {
491
- total: response.data.onhandInventories.total || 0,
492
+ total: response.data.onhandInventories.total || 0,
492
493
  records:
493
494
  response.data.onhandInventories.items.map(item => {
494
495
  return flattenObject(
@@ -502,8 +503,6 @@ class OnhandInventory extends connect(store)(localize(i18next)(PageView)) {
502
503
  },
503
504
  volume: parseFloat(item.product.volume * item.remainQty).toFixed(4),
504
505
  // Need to move to serverside processing and fetch with db query for consistent performance
505
- condition: this.getCondition(item.location.type)
506
- // Need to move to serverside processing and fetch with db query for consistent performance
507
506
  },
508
507
  '_'
509
508
  )
@@ -512,25 +511,6 @@ class OnhandInventory extends connect(store)(localize(i18next)(PageView)) {
512
511
  }
513
512
 
514
513
  // Need to move to serverside processing and fetch with db query for consistent performance
515
- getCondition(locationType) {
516
- switch (locationType) {
517
- case 'BIN':
518
- case 'BUFFER':
519
- case 'FLOOR':
520
- case 'SHELF':
521
- case 'STORAGE':
522
- return 'New'
523
- case 'RESERVE':
524
- return 'Reserve'
525
- case 'DAMAGE':
526
- return 'Damage'
527
- case 'QUARANTINE':
528
- return 'Quarantine'
529
- }
530
- }
531
-
532
- // Need to move to serverside processing and fetch with db query for consistent performance
533
-
534
514
  async _fetchPartners() {
535
515
  const filters = []
536
516
  const response = await client.query({
@@ -10,13 +10,27 @@ import '../../order/vas-order/popup/vas-target-product-popup'
10
10
  import '../../order/vas-order/popup/select-vas-popup'
11
11
 
12
12
  import gql from 'graphql-tag'
13
- import { css, html } from 'lit-element'
13
+ import {
14
+ css,
15
+ html
16
+ } from 'lit-element'
14
17
 
15
18
  import { getCodeByName } from '@things-factory/code-base'
16
- import { MultiColumnFormStyles, SingleColumnFormStyles } from '@things-factory/form-ui'
17
- import { i18next, localize } from '@things-factory/i18n-base'
19
+ import {
20
+ MultiColumnFormStyles,
21
+ SingleColumnFormStyles
22
+ } from '@things-factory/form-ui'
23
+ import {
24
+ i18next,
25
+ localize
26
+ } from '@things-factory/i18n-base'
18
27
  import { openPopup } from '@things-factory/layout-base'
19
- import { client, CustomAlert, navigate, PageView } from '@things-factory/shell'
28
+ import {
29
+ client,
30
+ CustomAlert,
31
+ navigate,
32
+ PageView
33
+ } from '@things-factory/shell'
20
34
  import { CommonButtonStyles } from '@things-factory/styles'
21
35
  import { isMobileDevice } from '@things-factory/utils'
22
36
 
@@ -2698,14 +2712,18 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
2698
2712
  ...this.vasGrist.dirtyData.records[rowIndex],
2699
2713
  ...newRecords
2700
2714
  })
2701
- this.vasGrist.dirtyData.records.map(record => {
2702
- record.newSKU
2703
- ? record.outputQty
2704
- ? (record.newUomValue = record.outputQty * record.newUomValue)
2705
- : record.qty
2706
- ? (record.newUomValue = record.qty * record.newUomValue)
2707
- : record.newUomValue
2708
- : (record.newUomValue = null)
2715
+
2716
+ this.vasGrist.dirtyData.records.map((record, index) => {
2717
+ if (index === rowIndex && record.newSKU) {
2718
+ if (record.outputQty) {
2719
+ record.newUomValue = record.outputQty * record.newUomValue
2720
+ } else if (record.qty) {
2721
+ record.newUomValue = record.qty * record.newUomValue
2722
+ } else {
2723
+ record.newUomValue = null
2724
+ }
2725
+ }
2726
+ return record
2709
2727
  })
2710
2728
  this.vasData = {
2711
2729
  ...this.vasData,
@@ -24,7 +24,7 @@
24
24
 
25
25
  <br>
26
26
  For additional information about the aspects of the release, see the following link
27
- <a href="http://bit.ly/20230929_Hatio_Release">V4.3.327 Release Note</a>
27
+ <a href="https://bit.ly/20230929_Hatio_ReleaseNote">V4.3.327 Release Note</a>
28
28
  <br>
29
29
 
30
30
  Should you have any inquiries, feel free to contact <a href="mailto: support@hatio.asia">support@hatio.asia</a>! Stay safe and positively negative!
@@ -24,7 +24,7 @@
24
24
 
25
25
  <br>
26
26
  For additional information about the aspects of the release, see the following link
27
- <a href="http://bit.ly/20230929_Hatio_Release">V4.3.327 Release Note</a>
27
+ <a href="https://bit.ly/20230929_Hatio_ReleaseNote">V4.3.327 Release Note</a>
28
28
  <br>
29
29
 
30
30
  Should you have any inquiries, feel free to contact <a href="mailto: support@hatio.asia">support@hatio.asia</a>! Stay safe and positively negative!
@@ -24,7 +24,7 @@
24
24
 
25
25
  <br>
26
26
  For additional information about the aspects of the release, see the following link
27
- <a href="http://bit.ly/20230929_Hatio_Release">V4.3.327 Release Note</a>
27
+ <a href="https://bit.ly/20230929_Hatio_ReleaseNote">V4.3.327 Release Note</a>
28
28
  <br>
29
29
 
30
30
  Should you have any inquiries, feel free to contact <a href="mailto: support@hatio.asia">support@hatio.asia</a>! Stay safe and positively negative!
@@ -24,7 +24,7 @@
24
24
 
25
25
  <br>
26
26
  For additional information about the aspects of the release, see the following link
27
- <a href="http://bit.ly/20230929_Hatio_Release">V4.3.327 Release Note</a>
27
+ <a href="https://bit.ly/20230929_Hatio_ReleaseNote">V4.3.327 Release Note</a>
28
28
  <br>
29
29
 
30
30
  Should you have any inquiries, feel free to contact <a href="mailto: support@hatio.asia">support@hatio.asia</a>! Stay safe and positively negative!
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/operato-wms",
3
- "version": "4.3.328",
3
+ "version": "4.3.330",
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.281",
92
92
  "@things-factory/product-base": "^4.3.318",
93
93
  "@things-factory/resource-ui": "^4.3.281",
94
- "@things-factory/sales-ui": "^4.3.327",
94
+ "@things-factory/sales-ui": "^4.3.329",
95
95
  "@things-factory/scene-data-transform": "^4.3.281",
96
96
  "@things-factory/scene-excel": "^4.3.281",
97
97
  "@things-factory/scene-firebase": "^4.3.281",
@@ -107,8 +107,8 @@
107
107
  "@things-factory/system-ui": "^4.3.281",
108
108
  "@things-factory/transport-base": "^4.3.301",
109
109
  "@things-factory/tutorial-ui": "^4.3.281",
110
- "@things-factory/warehouse-base": "^4.3.327",
111
- "@things-factory/worksheet-base": "^4.3.328"
110
+ "@things-factory/warehouse-base": "^4.3.329",
111
+ "@things-factory/worksheet-base": "^4.3.329"
112
112
  },
113
113
  "devDependencies": {
114
114
  "@things-factory/builder": "^4.3.281",
@@ -117,5 +117,5 @@
117
117
  "cypress-localstorage-commands": "^1.6.1",
118
118
  "eslint-plugin-cypress": "^2.12.1"
119
119
  },
120
- "gitHead": "ea17231f1c60f87434619bceefaf52fb966b9d20"
120
+ "gitHead": "ad3bfe98841ad43e4c789cbd6cd0742321897c2a"
121
121
  }