@things-factory/product-ui 4.1.37 → 4.1.38

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.
@@ -0,0 +1,24 @@
1
+ import { i18next } from '@things-factory/i18n-base'
2
+
3
+ export const PICKING_STRATEGIES = [
4
+ {
5
+ name: i18next.t('label.fifo'),
6
+ value: 'FIFO'
7
+ },
8
+ {
9
+ name: i18next.t('label.fefo'),
10
+ value: 'FEFO'
11
+ },
12
+ {
13
+ name: i18next.t('label.fmfo'),
14
+ value: 'FMFO'
15
+ },
16
+ {
17
+ name: i18next.t('label.lifo'),
18
+ value: 'LIFO'
19
+ },
20
+ {
21
+ name: i18next.t('label.location'),
22
+ value: 'LOCATION'
23
+ }
24
+ ]
@@ -13,6 +13,8 @@ import { client, CustomAlert, gqlContext, PageView } from '@things-factory/shell
13
13
  import { CommonButtonStyles, ScrollbarStyles } from '@things-factory/styles'
14
14
  import { isMobileDevice } from '@things-factory/utils'
15
15
 
16
+ import { PICKING_STRATEGIES } from './constants/picking-strategy'
17
+
16
18
  class ProductList extends localize(i18next)(PageView) {
17
19
  static get properties() {
18
20
  return {
@@ -646,6 +648,22 @@ class ProductList extends localize(i18next)(PageView) {
646
648
  header: `${i18next.t('field.aux_value')} 5`,
647
649
  width: 100
648
650
  },
651
+ {
652
+ type: 'select',
653
+ name: 'pickingStrategy',
654
+ record: {
655
+ editable: true,
656
+ options: PICKING_STRATEGIES.map(strategy => strategy.value)
657
+ },
658
+ imex: {
659
+ header: `${i18next.t('field.picking_strategy')}`,
660
+ key: 'pickingStrategy',
661
+ width: 20,
662
+ type: 'string'
663
+ },
664
+ header: `${i18next.t('field.picking_strategy')}`,
665
+ width: 100
666
+ },
649
667
  {
650
668
  type: 'object',
651
669
  name: 'updater',
@@ -739,6 +757,7 @@ class ProductList extends localize(i18next)(PageView) {
739
757
  brand
740
758
  subBrand
741
759
  gtin
760
+ pickingStrategy
742
761
  updater {
743
762
  name
744
763
  description
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/product-ui",
3
- "version": "4.1.37",
3
+ "version": "4.1.38",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -29,8 +29,8 @@
29
29
  "@things-factory/i18n-base": "^4.1.28",
30
30
  "@things-factory/import-ui": "^4.1.28",
31
31
  "@things-factory/layout-base": "^4.1.28",
32
- "@things-factory/product-base": "^4.1.37",
32
+ "@things-factory/product-base": "^4.1.38",
33
33
  "@things-factory/shell": "^4.1.28"
34
34
  },
35
- "gitHead": "cc34a73ab56ed192e1f2babe6954a817c473a46c"
35
+ "gitHead": "eb948e4d5022d89a2950aeb71f82bbf8d5607d74"
36
36
  }
@@ -2,6 +2,7 @@
2
2
  "button.add_new_product": "add new product",
3
3
  "button.back": "back",
4
4
  "button.cancel": "cancel",
5
+ "button.check_missing_x": "check missing {state.x}",
5
6
  "button.delete": "delete",
6
7
  "button.link_product": "link product",
7
8
  "button.restore": "restore",
@@ -40,13 +41,14 @@
40
41
  "field.nett_weight": "nett weight",
41
42
  "field.packing_size": "packing size",
42
43
  "field.packing_type": "packing type",
44
+ "field.picking_strategy": "picking strategy",
43
45
  "field.product_info": "product info",
44
46
  "field.product_ref": "product ref",
45
47
  "field.product_set_info": "product set info",
46
48
  "field.ref_code": "ref code",
47
- "field.require_serial_number_scanning": "require serial number scanning",
48
49
  "field.require_serial_number_scanning_inbound": "require serial number scanning inbound",
49
50
  "field.require_serial_number_scanning_outbound": "require serial number scanning outbound",
51
+ "field.require_serial_number_scanning": "require serial number scanning",
50
52
  "field.required_checking_expiry": "required checking expiry",
51
53
  "field.sku": "SKU",
52
54
  "field.sub_brand": "sub brand",
@@ -63,7 +65,6 @@
63
65
  "text.data_import_successfully": "data import successfully",
64
66
  "text.data_restore_successfully": "data restore successfully",
65
67
  "text.invalid_bundle_qty_for_item_number": "invalid bundle qty for item number",
66
- "button.check_missing_x": "check missing {state.x}",
67
68
  "text.invalid_qty_for_item_number_x": "invalid qty for item #{state.x}",
68
69
  "text.there_is_nothing_to_restore": "there is nothing to restore",
69
70
  "title.combination_sets": "combination sets",
@@ -1,4 +1,5 @@
1
1
  {
2
+ "field.picking_strategy": "[ko]picking strategy",
2
3
  "field.require_serial_number_scanning": "[ko]require serial number scanning",
3
4
  "field.packing_size": "[ko]packing size",
4
5
  "field.deleted": "[ko]deleted",
@@ -1,4 +1,5 @@
1
1
  {
2
+ "field.picking_strategy": "[ms]picking strategy",
2
3
  "field.require_serial_number_scanning": "[ms]require serial number scanning",
3
4
  "field.packing_size": "[ms]packing size",
4
5
  "field.deleted": "[ms]deleted",
@@ -1,4 +1,5 @@
1
1
  {
2
+ "field.picking_strategy": "[zh]picking strategy",
2
3
  "field.require_serial_number_scanning": "[zh]require serial number scanning",
3
4
  "button.restore": "[zh]restore",
4
5
  "text.there_is_nothing_to_restore": "[zh]there is nothing to restore",