@things-factory/product-ui 4.3.27 → 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 (!
|
|
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.
|
|
3
|
+
"version": "4.3.37",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -24,13 +24,13 @@
|
|
|
24
24
|
"migration:create": "node ../../node_modules/typeorm/cli.js migration:create -d ./server/migrations"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@things-factory/form-ui": "^4.3.
|
|
28
|
-
"@things-factory/grist-ui": "^4.3.
|
|
29
|
-
"@things-factory/i18n-base": "^4.3.
|
|
30
|
-
"@things-factory/import-ui": "^4.3.
|
|
31
|
-
"@things-factory/layout-base": "^4.3.
|
|
32
|
-
"@things-factory/product-base": "^4.3.
|
|
33
|
-
"@things-factory/shell": "^4.3.
|
|
27
|
+
"@things-factory/form-ui": "^4.3.35",
|
|
28
|
+
"@things-factory/grist-ui": "^4.3.35",
|
|
29
|
+
"@things-factory/i18n-base": "^4.3.35",
|
|
30
|
+
"@things-factory/import-ui": "^4.3.35",
|
|
31
|
+
"@things-factory/layout-base": "^4.3.35",
|
|
32
|
+
"@things-factory/product-base": "^4.3.35",
|
|
33
|
+
"@things-factory/shell": "^4.3.35"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "63cc1d86f82b002d7bd96a72347e8d333c1b696a"
|
|
36
36
|
}
|