@things-factory/product-ui 4.3.677 → 4.3.694

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.
@@ -493,6 +493,20 @@ class ProductList extends localize(i18next)(PageView) {
493
493
  sortable: true,
494
494
  width: 120
495
495
  },
496
+ {
497
+ type: 'boolean',
498
+ name: 'allowStackingOption',
499
+ header: i18next.t('field.stacking_option'),
500
+ record: { editable: true, align: 'center' },
501
+ imex: {
502
+ header: i18next.t('field.stacking_option'),
503
+ key: 'allowStackingOption',
504
+ width: 30,
505
+ type: 'string'
506
+ },
507
+ sortable: true,
508
+ width: 120
509
+ },
496
510
  {
497
511
  type: 'object',
498
512
  name: 'productRef',
@@ -868,6 +882,7 @@ class ProductList extends localize(i18next)(PageView) {
868
882
  isRequireSerialNumberScanningInbound
869
883
  isRequireSerialNumberScanningOutbound
870
884
  isInventoryDecimal
885
+ allowStackingOption
871
886
  weightUnit
872
887
  nettWeight
873
888
  grossWeight
@@ -1070,7 +1085,7 @@ class ProductList extends localize(i18next)(PageView) {
1070
1085
  patch.isRequireSerialNumberScanningOutbound =
1071
1086
  patch.isRequireSerialNumberScanningOutbound?.toString().toLowerCase() === 'true'
1072
1087
  patch.isInventoryDecimal = patch.isInventoryDecimal?.toString().toLowerCase() === 'true'
1073
-
1088
+ patch.allowStackingOption = patch.allowStackingOption?.toString().toLowerCase() === 'true'
1074
1089
  return {
1075
1090
  ...patch,
1076
1091
  costPrice: patch?.costPrice ? parseFloat(patch.costPrice) : undefined,
@@ -1097,7 +1112,8 @@ class ProductList extends localize(i18next)(PageView) {
1097
1112
  isRequiredCheckExpiry: patch?.isRequiredCheckExpiry || false,
1098
1113
  isRequireSerialNumberScanningInbound: patch?.isRequireSerialNumberScanningInbound || false,
1099
1114
  isRequireSerialNumberScanningOutbound: patch?.isRequireSerialNumberScanningOutbound || false,
1100
- isInventoryDecimal: patch?.isInventoryDecimal || false
1115
+ isInventoryDecimal: patch?.isInventoryDecimal || false,
1116
+ allowStackingOption: patch?.allowStackingOption || false
1101
1117
  }
1102
1118
  })
1103
1119
 
@@ -1356,6 +1372,7 @@ class ProductList extends localize(i18next)(PageView) {
1356
1372
  isRequireSerialNumberScanningInbound
1357
1373
  isRequireSerialNumberScanningOutbound
1358
1374
  isInventoryDecimal
1375
+ allowStackingOption
1359
1376
  weightUnit
1360
1377
  nettWeight
1361
1378
  grossWeight
@@ -1441,7 +1458,7 @@ class ProductList extends localize(i18next)(PageView) {
1441
1458
  packingSize: pd.packingSize,
1442
1459
  uom: pd.uom,
1443
1460
  uomValue: pd.uomValue,
1444
- gtin: gtin,
1461
+ gtin: gtin
1445
1462
  }
1446
1463
  })
1447
1464
  flattenedList.push(...pds)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/product-ui",
3
- "version": "4.3.677",
3
+ "version": "4.3.694",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -23,13 +23,13 @@
23
23
  "migration:create": "node ../../node_modules/typeorm/cli.js migration:create -d ./server/migrations"
24
24
  },
25
25
  "dependencies": {
26
- "@things-factory/form-ui": "^4.3.675",
27
- "@things-factory/grist-ui": "^4.3.675",
28
- "@things-factory/i18n-base": "^4.3.675",
29
- "@things-factory/import-ui": "^4.3.675",
30
- "@things-factory/layout-base": "^4.3.675",
31
- "@things-factory/product-base": "^4.3.677",
32
- "@things-factory/shell": "^4.3.675"
26
+ "@things-factory/form-ui": "^4.3.689",
27
+ "@things-factory/grist-ui": "^4.3.689",
28
+ "@things-factory/i18n-base": "^4.3.689",
29
+ "@things-factory/import-ui": "^4.3.689",
30
+ "@things-factory/layout-base": "^4.3.689",
31
+ "@things-factory/product-base": "^4.3.694",
32
+ "@things-factory/shell": "^4.3.689"
33
33
  },
34
- "gitHead": "40d5f1f02846df24414d16d4971acea9cc4574b8"
34
+ "gitHead": "a1bf668bd52a6b9f12b719ca1467beb423270400"
35
35
  }
@@ -9,6 +9,7 @@
9
9
  "button.restore": "restore",
10
10
  "button.save": "save",
11
11
  "button.sync_data": "sync data",
12
+ "field.stacking_option": "stacking option",
12
13
  "field.aux_unit": "aux unit",
13
14
  "field.aux_value": "aux value",
14
15
  "field.brand_sku": "brand sku",
@@ -8,6 +8,7 @@
8
8
  "button.restore": "[jp]restore",
9
9
  "button.save": "[jp]save",
10
10
  "button.sync_data": "[jp]sync data",
11
+ "field.stacking_option": "[jp]stacking option",
11
12
  "field.aux_unit": "[jp]aux unit",
12
13
  "field.aux_value": "[jp]aux value",
13
14
  "field.brand_sku": "[jp]brand sku",
@@ -9,6 +9,7 @@
9
9
  "button.restore": "[ko]restore",
10
10
  "button.save": "[ko]save",
11
11
  "button.sync_data": "[ko]sync data",
12
+ "field.stacking_option": "[ko]stacking option",
12
13
  "field.aux_unit": "[ko]aux unit",
13
14
  "field.aux_value": "[ko]aux value",
14
15
  "field.brand_sku": "[ko]brand sku",
@@ -9,6 +9,7 @@
9
9
  "button.restore": "[ms]restore",
10
10
  "button.save": "[ms]save",
11
11
  "button.sync_data": "[ms]sync data",
12
+ "field.stacking_option": "[ms]stacking option",
12
13
  "field.aux_unit": "[ms]aux unit",
13
14
  "field.aux_value": "[ms]aux value",
14
15
  "field.brand_sku": "[ms]brand sku",
@@ -9,6 +9,7 @@
9
9
  "button.restore": "[zh]restore",
10
10
  "button.save": "[zh]save",
11
11
  "button.sync_data": "[zh]sync data",
12
+ "field.stacking_option": "[zh]stacking option",
12
13
  "field.aux_unit": "[zh]aux unit",
13
14
  "field.aux_value": "[zh]aux value",
14
15
  "field.brand_sku": "[zh]brand sku",