@things-factory/product-ui 4.0.35 → 4.0.39
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.
|
@@ -336,8 +336,8 @@ class ProductCombinationSettingsPopup extends localize(i18next)(LitElement) {
|
|
|
336
336
|
try {
|
|
337
337
|
let patches = this.productCombinationSettingGrist.dirtyData.records.map(record => {
|
|
338
338
|
const qty = record.qty
|
|
339
|
-
if (!qty || qty <= 0) {
|
|
340
|
-
throw new Error(i18next.t('text.
|
|
339
|
+
if (!qty || qty <= 0 || !Number.isSafeInteger(qty)) {
|
|
340
|
+
throw new Error(i18next.t('text.invalid_qty_for_item_number_x', { state: {x: record.__seq__} }))
|
|
341
341
|
}
|
|
342
342
|
return {
|
|
343
343
|
// only existing product combination will have id
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/product-ui",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.39",
|
|
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.0.
|
|
28
|
-
"@things-factory/grist-ui": "^4.0.
|
|
29
|
-
"@things-factory/i18n-base": "^4.0.
|
|
30
|
-
"@things-factory/import-ui": "^4.0.
|
|
31
|
-
"@things-factory/layout-base": "^4.0.
|
|
32
|
-
"@things-factory/product-base": "^4.0.
|
|
33
|
-
"@things-factory/shell": "^4.0.
|
|
27
|
+
"@things-factory/form-ui": "^4.0.39",
|
|
28
|
+
"@things-factory/grist-ui": "^4.0.39",
|
|
29
|
+
"@things-factory/i18n-base": "^4.0.39",
|
|
30
|
+
"@things-factory/import-ui": "^4.0.39",
|
|
31
|
+
"@things-factory/layout-base": "^4.0.39",
|
|
32
|
+
"@things-factory/product-base": "^4.0.39",
|
|
33
|
+
"@things-factory/shell": "^4.0.39"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "a4f93ea85a26cf70ae0aa2fcd298aa59b55dd039"
|
|
36
36
|
}
|
package/translations/en.json
CHANGED
|
@@ -61,7 +61,8 @@
|
|
|
61
61
|
"text.data_import_successfully": "data import successfully",
|
|
62
62
|
"text.data_restore_successfully": "data restore successfully",
|
|
63
63
|
"text.invalid_bundle_qty_for_item_number": "invalid bundle qty for item number",
|
|
64
|
-
"
|
|
64
|
+
"button.check_missing_x": "check missing {state.x}",
|
|
65
|
+
"text.invalid_qty_for_item_number_x": "invalid qty for item #{state.x}",
|
|
65
66
|
"text.there_is_nothing_to_restore": "there is nothing to restore",
|
|
66
67
|
"title.combination_sets": "combination sets",
|
|
67
68
|
"title.combination": "combination",
|
package/translations/ko.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"text.there_is_nothing_to_restore": "[ko]there is nothing to restore",
|
|
7
7
|
"text.data_restore_successfully": "[ko]data restore successfully",
|
|
8
8
|
"text.invalid_bundle_qty_for_item_number": "[ko] invalid bundle qty for item number",
|
|
9
|
-
"text.
|
|
9
|
+
"text.invalid_qty_for_item_number_x": "[ko] invalid qty for item #{state.x}",
|
|
10
10
|
"button.add_new_product": "[ko]add new product",
|
|
11
11
|
"button.back": "[ko]back",
|
|
12
12
|
"button.cancel": "[ko]cancel",
|
package/translations/ms.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"text.there_is_nothing_to_restore": "[ms]there is nothing to restore",
|
|
7
7
|
"text.data_restore_successfully": "[ms]data restore successfully",
|
|
8
8
|
"text.invalid_bundle_qty_for_item_number": "[ms] invalid bundle qty for item number",
|
|
9
|
-
"text.
|
|
9
|
+
"text.invalid_qty_for_item_number_x": "[ms] invalid qty for item #{state.x}",
|
|
10
10
|
"button.add_new_product": "[ms]add new product",
|
|
11
11
|
"button.back": "[ms]back",
|
|
12
12
|
"button.cancel": "[ms]cancel",
|
package/translations/zh.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"text.there_is_nothing_to_restore": "[zh]there is nothing to restore",
|
|
5
5
|
"text.data_restore_successfully": "[zh]data restore successfully",
|
|
6
6
|
"text.invalid_bundle_qty_for_item_number": "[zh] invalid bundle qty for item number",
|
|
7
|
-
"text.
|
|
7
|
+
"text.invalid_qty_for_item_number_x": "[zh] invalid qty for item #{state.x}",
|
|
8
8
|
|
|
9
9
|
"button.add_new_product": "[zh]add new product",
|
|
10
10
|
"button.back": "[zh]back",
|