@things-factory/operato-wms 4.3.161 → 4.3.162

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.
@@ -1,4 +1,5 @@
1
1
  import '@things-factory/grist-ui'
2
+ import '@things-factory/warehouse-ui'
2
3
  import '../../components/attachment-viewer'
3
4
  import '../../components/vas-templates'
4
5
  import '../../components/popup-note'
@@ -7,7 +8,6 @@ import '../../inbound/pallet-label-popup'
7
8
  import './edit-product-popup'
8
9
  import './proceed-edit-product-popup'
9
10
  import './view-product-changes-popup'
10
- import { BufferLocationSelector } from '@things-factory/warehouse-ui'
11
11
 
12
12
  import gql from 'graphql-tag'
13
13
  import { css, html } from 'lit-element'
@@ -20,8 +20,8 @@ import { openPopup } from '@things-factory/layout-base'
20
20
  import { client, CustomAlert, navigate, PageView } from '@things-factory/shell'
21
21
  import { CommonButtonStyles } from '@things-factory/styles'
22
22
  import { isMobileDevice } from '@things-factory/utils'
23
- import { fetchSettingRule } from '../../../fetch-setting-value'
24
23
 
24
+ import { fetchSettingRule } from '../../../fetch-setting-value'
25
25
  import {
26
26
  ORDER_PRODUCT_STATUS,
27
27
  ORDER_STATUS,
@@ -1016,7 +1016,6 @@ class ArrivalNoticeDetail extends localize(i18next)(PageView) {
1016
1016
  this.setProductGristConfig()
1017
1017
  this.productData = {
1018
1018
  records: orderProducts.map(record => {
1019
- record.unitPrice = record.unitPrice.toFixed(2)
1020
1019
  return {
1021
1020
  ...record,
1022
1021
  productSku: record.product.sku,
@@ -1690,17 +1690,19 @@ class CreateArrivalNotice extends localize(i18next)(PageView) {
1690
1690
  if (!response.errors) {
1691
1691
  const data = response.data.bulkUploadValidateOrderProducts.map(item => {
1692
1692
  item.unitPrice =
1693
- item.unitPrice || item.unitPrice == 0
1693
+ item?.unitPrice || item?.unitPrice == 0
1694
1694
  ? item.unitPrice
1695
- : item.productDetail.costPrice != null
1695
+ : item?.productDetail?.costPrice
1696
1696
  ? item.productDetail.costPrice
1697
1697
  : null
1698
+
1698
1699
  return {
1699
1700
  ...item,
1700
1701
  productName: item?.productName,
1701
- unitPrice: item.unitPrice.toFixed(2) || 0,
1702
+ unitPrice: (item?.unitPrice || 0).toFixed(2),
1702
1703
  packQty: parseFloat(item.packQty) || '',
1703
- palletQty: parseFloat(item.palletQty) || ''
1704
+ palletQty: parseFloat(item.palletQty) || '',
1705
+ productDetail: { id: item?.productDetail?.id || null }
1704
1706
  }
1705
1707
  })
1706
1708
  this.productData = {
@@ -1,8 +1,11 @@
1
1
  import '@things-factory/grist-ui'
2
+
3
+ import { css, html, LitElement } from 'lit-element'
4
+
2
5
  import { i18next, localize } from '@things-factory/i18n-base'
3
6
  import { ScrollbarStyles } from '@things-factory/styles'
4
7
  import { isMobileDevice } from '@things-factory/utils'
5
- import { css, html, LitElement } from 'lit-element'
8
+
6
9
  import { ORDER_PRODUCT_STATUS } from '../../constants'
7
10
 
8
11
  export class ViewProductChangesPopup extends localize(i18next)(LitElement) {
@@ -100,9 +103,6 @@ export class ViewProductChangesPopup extends localize(i18next)(LitElement) {
100
103
  if (changedProps.has('data')) {
101
104
  this.productData = {
102
105
  ...this.data,
103
- records: this.data.records.map(item => {
104
- item.adjustedUnitPrice = item.adjustedUnitPrice.toFixed(2)
105
- }),
106
106
  records: this.data.records.filter(
107
107
  item => item.status === ORDER_PRODUCT_STATUS.ADDED.value || item.status === ORDER_PRODUCT_STATUS.EDITED.value
108
108
  )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/operato-wms",
3
- "version": "4.3.161",
3
+ "version": "4.3.162",
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.161",
93
93
  "@things-factory/resource-ui": "^4.3.159",
94
- "@things-factory/sales-ui": "^4.3.161",
94
+ "@things-factory/sales-ui": "^4.3.162",
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.159",
109
109
  "@things-factory/tutorial-ui": "^4.3.159",
110
- "@things-factory/warehouse-base": "^4.3.161",
111
- "@things-factory/worksheet-base": "^4.3.161"
110
+ "@things-factory/warehouse-base": "^4.3.162",
111
+ "@things-factory/worksheet-base": "^4.3.162"
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": "7fe9232a64285ebaa04382258806889c47924157"
120
+ "gitHead": "c933f88307fc147abcfa0cf6cf5c9b62db187f24"
121
121
  }