@things-factory/product-ui 4.3.35 → 4.3.37

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.
@@ -894,6 +894,11 @@ class ProductList extends localize(i18next)(PageView) {
894
894
  patches = patches.map(patch => {
895
895
  return {
896
896
  ...patch,
897
+ uomValue: patch?.uomValue ? parseFloat(patch.uomValue) : undefined,
898
+ bufferQty: patch?.bufferQty ? parseInt(patch.bufferQty) : undefined,
899
+ minQty: patch?.minQty ? parseInt(patch.minQty) : undefined,
900
+ maxQty: patch?.maxQty ? parseInt(patch.maxQty) : undefined,
901
+ packingSize: patch?.packingSize ? parseInt(patch.packingSize) : undefined,
897
902
  expirationPeriod: patch?.expirationPeriod ? parseInt(patch.expirationPeriod) : undefined,
898
903
  productRef: patch.productRef?.id ? { id: patch.productRef?.id } : undefined
899
904
  }
@@ -941,7 +946,7 @@ class ProductList extends localize(i18next)(PageView) {
941
946
  if (_.isEmpty(itm.uom) || '') {
942
947
  if (!errors.find(err => err.type == 'uom')) errors.push({ type: 'uom', value: 'UOM is required' })
943
948
  }
944
- if (!_.isNumber(itm.uomValue) || _.isNaN(itm.uomValue) || '' || itm?.uomValue <= 0) {
949
+ if (!parseFloat(itm.uomValue) || _.isNaN(itm.uomValue) || '' || itm?.uomValue <= 0) {
945
950
  if (!errors.find(err => err.type == 'uomValue'))
946
951
  errors.push({ type: 'uomValue', value: 'UOM Value is required' })
947
952
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/product-ui",
3
- "version": "4.3.35",
3
+ "version": "4.3.37",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -32,5 +32,5 @@
32
32
  "@things-factory/product-base": "^4.3.35",
33
33
  "@things-factory/shell": "^4.3.35"
34
34
  },
35
- "gitHead": "3500a8c074e7ec6d112454b0b0631fcc9e41b886"
35
+ "gitHead": "63cc1d86f82b002d7bd96a72347e8d333c1b696a"
36
36
  }