@things-factory/product-ui 4.3.443 → 4.3.450

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.
@@ -676,10 +676,10 @@ export class ProductDetailsPopup extends localize(i18next)(LitElement) {
676
676
  errors.push({ type: 'gtin', value: 'Gtin is required' })
677
677
  }
678
678
 
679
- // if (isEmpty(itm.refCode) || '') {
680
- // itm.error = true
681
- // if (!errors.find(err => err.type == 'refCode')) errors.push({ type: 'refCode', value: 'Ref code is required' })
682
- // }
679
+ if (isEmpty(itm.refCode) || '') {
680
+ itm.error = true
681
+ if (!errors.find(err => err.type == 'refCode')) errors.push({ type: 'refCode', value: 'Ref code is required' })
682
+ }
683
683
 
684
684
  if (isEmpty(itm.packingType) || '') {
685
685
  itm.error = true
@@ -3,15 +3,29 @@ import '@things-factory/grist-ui'
3
3
  import './product-details-popup'
4
4
 
5
5
  import gql from 'graphql-tag'
6
- import { css, html } from 'lit'
6
+ import {
7
+ css,
8
+ html
9
+ } from 'lit'
7
10
  import _ from 'lodash'
8
11
 
9
12
  import { getCodeByName } from '@things-factory/code-base'
10
- import { i18next, localize } from '@things-factory/i18n-base'
13
+ import {
14
+ i18next,
15
+ localize
16
+ } from '@things-factory/i18n-base'
11
17
  import { openImportPopUp } from '@things-factory/import-ui'
12
18
  import { openPopup } from '@things-factory/layout-base'
13
- import { client, CustomAlert, gqlContext, PageView } from '@things-factory/shell'
14
- import { CommonButtonStyles, ScrollbarStyles } from '@things-factory/styles'
19
+ import {
20
+ client,
21
+ CustomAlert,
22
+ gqlContext,
23
+ PageView
24
+ } from '@things-factory/shell'
25
+ import {
26
+ CommonButtonStyles,
27
+ ScrollbarStyles
28
+ } from '@things-factory/styles'
15
29
  import { isMobileDevice } from '@things-factory/utils'
16
30
 
17
31
  import { PICKING_STRATEGIES } from './constants/picking-strategy'
@@ -1047,7 +1061,13 @@ class ProductList extends localize(i18next)(PageView) {
1047
1061
  commissionFee: patch?.commissionFee ? parseFloat(patch.commissionFee) : undefined,
1048
1062
  platformFee: patch?.platformFee ? parseFloat(patch.platformFee) : undefined,
1049
1063
  serviceFee: patch?.serviceFee ? parseFloat(patch.serviceFee) : undefined,
1050
- transactionFee: patch?.transactionFee ? parseFloat(patch.transactionFee) : undefined
1064
+ transactionFee: patch?.transactionFee ? parseFloat(patch.transactionFee) : undefined,
1065
+ nettWeight: patch?.nettWeight ? parseFloat(patch.nettWeight) : undefined,
1066
+ width: patch?.width ? parseFloat(patch.width) : undefined,
1067
+ depth: patch?.depth ? parseFloat(patch.depth) : undefined,
1068
+ height: patch?.height ? parseFloat(patch.height) : undefined,
1069
+ grossWeight: patch?.grossWeight ? parseFloat(patch.grossWeight) : undefined,
1070
+ volume: patch?.volume ? parseFloat(patch.volume) : undefined
1051
1071
  }
1052
1072
  })
1053
1073
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/product-ui",
3
- "version": "4.3.443",
3
+ "version": "4.3.450",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -31,5 +31,5 @@
31
31
  "@things-factory/product-base": "^4.3.443",
32
32
  "@things-factory/shell": "^4.3.434"
33
33
  },
34
- "gitHead": "9756867524d3f488d74f22738ef3f2d2aec1da8c"
34
+ "gitHead": "ae6d14ca0ee8a171fbc281a232d0097c4e0370e4"
35
35
  }