@things-factory/operato-wms 4.2.9 → 4.2.12

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.
@@ -372,7 +372,7 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
372
372
  this.productBarcodeInput.readOnly = false
373
373
  this.productBarcodeInput.value = ''
374
374
  }
375
- if (this.serialNumberInput) {
375
+ if (record.product?.isRequireSerialNumberScanningInbound) {
376
376
  this.serialNumberInput.value = ''
377
377
  }
378
378
  this.cartonInput.value = ''
@@ -1090,10 +1090,14 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
1090
1090
  if (this._selectedOrderProduct && this._selectedOrderProduct.product.sku !== product.sku)
1091
1091
  this._selectedOrderProduct = null
1092
1092
 
1093
- if (foundOrderProducts?.length > 1 && !this._selectedOrderProduct) {
1094
- this.selectOrderProduct(foundOrderProducts)
1095
- } else {
1096
- this._selectedOrderProduct = foundParentProducts[0]
1093
+ if (!this._selectedOrderProduct) {
1094
+ if (foundOrderProducts?.length > 1) {
1095
+ this.selectOrderProduct(foundOrderProducts)
1096
+ } else if (foundOrderProducts?.length == 1) {
1097
+ this._selectedOrderProduct = foundOrderProducts[0]
1098
+ } else if (foundOrderProducts?.length == 0 && foundParentProducts?.length > 0) {
1099
+ this._selectedOrderProduct = foundParentProducts[0]
1100
+ }
1097
1101
  }
1098
1102
  }
1099
1103
  } catch (e) {
@@ -90,6 +90,9 @@ class CustomerReceivedNote extends localize(i18next)(PageView) {
90
90
  case 'seebuu-warehouse':
91
91
  this.shadowRoot.querySelector('#container').src = `/view_seebuu_grn/${this._grnNo}`
92
92
  break
93
+ case 'freight-mark-warehouse':
94
+ this.shadowRoot.querySelector('#container').src = `/view_fm_grn/${this._grnNo}/${timezoneOffSet}`
95
+ break
93
96
  case 'kimeda-warehouse':
94
97
  this.shadowRoot.querySelector('#container').src = `/view_kimeda_grn/${this._grnNo}/${timezoneOffSet}`
95
98
  break
@@ -92,6 +92,9 @@ class ReceivedNoteDetail extends localize(i18next)(PageView) {
92
92
  case 'seebuu-warehouse':
93
93
  this.shadowRoot.querySelector('#container').src = `/view_seebuu_grn/${this._grnNo}`
94
94
  break
95
+ case 'freight-mark-warehouse':
96
+ this.shadowRoot.querySelector('#container').src = `/view_fm_grn/${this._grnNo}/${timezoneOffSet}`
97
+ break
95
98
  case 'kimeda-warehouse':
96
99
  this.shadowRoot.querySelector('#container').src = `/view_kimeda_grn/${this._grnNo}/${timezoneOffSet}`
97
100
  break
@@ -786,12 +786,21 @@ class PrintProductLabel extends connect(store)(localize(i18next)(PageView)) {
786
786
  }
787
787
  } catch (ex) {
788
788
  this._showToast({ level: 'error', message: ex })
789
-
790
789
  delete this.printer
791
790
  break
792
791
  } finally {
793
792
  // we only need to update when the counter is more than 0
794
- if (printCounter > 0) await this._updatePrintedLabelSequence(record.type, printCounter, record.bizplaceId)
793
+ if (printCounter > 0) {
794
+ try {
795
+ await this._updatePrintedLabelSequence(record.type, printCounter, record.bizplaceId)
796
+ } catch (e) {
797
+ this._showToast({
798
+ level: 'error',
799
+ message: i18next.t('text.unable_to_save_print_history_x', { state: { counter: printCounter } })
800
+ })
801
+ return
802
+ }
803
+ }
795
804
  }
796
805
  }
797
806
  }
@@ -801,8 +810,8 @@ class PrintProductLabel extends connect(store)(localize(i18next)(PageView)) {
801
810
  try {
802
811
  await client.mutate({
803
812
  mutation: gql`
804
- mutation updateInsertSequence($type: String!, $counter: Int, $bizplaceId: String!) {
805
- updateInsertSequence(type: $type, counter: $counter, bizplaceId: $bizplaceId) {
813
+ mutation upsertSequence($type: String!, $counter: Float!, $bizplaceId: String!) {
814
+ upsertSequence(type: $type, counter: $counter, bizplaceId: $bizplaceId) {
806
815
  pattern
807
816
  seq
808
817
  }
@@ -814,8 +823,8 @@ class PrintProductLabel extends connect(store)(localize(i18next)(PageView)) {
814
823
  bizplaceId
815
824
  }
816
825
  })
817
- } catch (e) {
818
- this._showToast({ message: e })
826
+ } catch (error) {
827
+ throw error
819
828
  }
820
829
  }
821
830
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/operato-wms",
3
- "version": "4.2.9",
3
+ "version": "4.2.12",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -63,53 +63,53 @@
63
63
  "@operato/scene-tab": "^0.1.5",
64
64
  "@operato/scene-table": "^0.1.5",
65
65
  "@operato/scene-wheel-sorter": "^0.1.5",
66
- "@things-factory/apptool-ui": "^4.1.40",
67
- "@things-factory/attachment-ui": "^4.1.40",
68
- "@things-factory/auth-ui": "^4.1.40",
69
- "@things-factory/barcode-ui": "^4.1.40",
70
- "@things-factory/biz-ui": "^4.1.40",
71
- "@things-factory/board-service": "^4.1.40",
72
- "@things-factory/board-ui": "^4.1.40",
73
- "@things-factory/code-ui": "^4.1.40",
74
- "@things-factory/context-ui": "^4.1.40",
75
- "@things-factory/export-ui": "^4.1.40",
76
- "@things-factory/export-ui-csv": "^4.1.40",
77
- "@things-factory/export-ui-excel": "^4.1.40",
78
- "@things-factory/fav-base": "^4.1.40",
79
- "@things-factory/form-ui": "^4.1.40",
80
- "@things-factory/grist-ui": "^4.1.40",
81
- "@things-factory/help": "^4.1.40",
82
- "@things-factory/i18n-base": "^4.1.40",
83
- "@things-factory/id-rule-base": "^4.2.0",
84
- "@things-factory/import-ui": "^4.1.40",
85
- "@things-factory/import-ui-excel": "^4.1.40",
86
- "@things-factory/menu-ui": "^4.1.40",
87
- "@things-factory/more-ui": "^4.1.40",
88
- "@things-factory/notification": "^4.1.40",
66
+ "@things-factory/apptool-ui": "^4.2.12",
67
+ "@things-factory/attachment-ui": "^4.2.12",
68
+ "@things-factory/auth-ui": "^4.2.12",
69
+ "@things-factory/barcode-ui": "^4.2.12",
70
+ "@things-factory/biz-ui": "^4.2.12",
71
+ "@things-factory/board-service": "^4.2.12",
72
+ "@things-factory/board-ui": "^4.2.12",
73
+ "@things-factory/code-ui": "^4.2.12",
74
+ "@things-factory/context-ui": "^4.2.12",
75
+ "@things-factory/export-ui": "^4.2.12",
76
+ "@things-factory/export-ui-csv": "^4.2.12",
77
+ "@things-factory/export-ui-excel": "^4.2.12",
78
+ "@things-factory/fav-base": "^4.2.12",
79
+ "@things-factory/form-ui": "^4.2.12",
80
+ "@things-factory/grist-ui": "^4.2.12",
81
+ "@things-factory/help": "^4.2.12",
82
+ "@things-factory/i18n-base": "^4.2.12",
83
+ "@things-factory/id-rule-base": "^4.2.12",
84
+ "@things-factory/import-ui": "^4.2.12",
85
+ "@things-factory/import-ui-excel": "^4.2.12",
86
+ "@things-factory/menu-ui": "^4.2.12",
87
+ "@things-factory/more-ui": "^4.2.12",
88
+ "@things-factory/notification": "^4.2.12",
89
89
  "@things-factory/pdf": "^4.1.40",
90
- "@things-factory/print-proxy-service": "^4.1.40",
91
- "@things-factory/print-service": "^4.1.40",
92
- "@things-factory/print-ui": "^4.1.40",
93
- "@things-factory/product-base": "^4.2.3",
94
- "@things-factory/resource-ui": "^4.1.40",
95
- "@things-factory/sales-ui": "^4.2.9",
90
+ "@things-factory/print-proxy-service": "^4.2.12",
91
+ "@things-factory/print-service": "^4.2.12",
92
+ "@things-factory/print-ui": "^4.2.12",
93
+ "@things-factory/product-base": "^4.2.12",
94
+ "@things-factory/resource-ui": "^4.2.12",
95
+ "@things-factory/sales-ui": "^4.2.12",
96
96
  "@things-factory/scene-data-transform": "^4.1.40",
97
97
  "@things-factory/scene-excel": "^4.1.40",
98
98
  "@things-factory/scene-firebase": "^4.1.40",
99
99
  "@things-factory/scene-form": "^4.1.40",
100
100
  "@things-factory/scene-google-map": "^4.1.40",
101
101
  "@things-factory/scene-graphql": "^4.1.40",
102
- "@things-factory/scene-label": "^4.1.40",
102
+ "@things-factory/scene-label": "^4.2.12",
103
103
  "@things-factory/scene-marker": "^4.1.40",
104
104
  "@things-factory/scene-mqtt": "^4.1.40",
105
105
  "@things-factory/scene-restful": "^4.1.40",
106
106
  "@things-factory/scene-visualizer": "^4.1.40",
107
- "@things-factory/setting-ui": "^4.1.40",
108
- "@things-factory/system-ui": "^4.1.40",
109
- "@things-factory/transport-base": "^4.2.0",
110
- "@things-factory/tutorial-ui": "^4.1.40",
111
- "@things-factory/warehouse-base": "^4.2.9",
112
- "@things-factory/worksheet-base": "^4.2.9"
107
+ "@things-factory/setting-ui": "^4.2.12",
108
+ "@things-factory/system-ui": "^4.2.12",
109
+ "@things-factory/transport-base": "^4.2.12",
110
+ "@things-factory/tutorial-ui": "^4.2.12",
111
+ "@things-factory/warehouse-base": "^4.2.12",
112
+ "@things-factory/worksheet-base": "^4.2.12"
113
113
  },
114
114
  "devDependencies": {
115
115
  "@things-factory/builder": "^4.1.40",
@@ -118,5 +118,5 @@
118
118
  "cypress-localstorage-commands": "^1.6.1",
119
119
  "eslint-plugin-cypress": "^2.12.1"
120
120
  },
121
- "gitHead": "1d2a0b987ce31cc207e1c70e75d53ba65acee61a"
121
+ "gitHead": "fea26f2ea238a3a279c7ab6427cd8aedcd68926b"
122
122
  }
@@ -132,7 +132,7 @@
132
132
  "field.arrival_notice": "arrival notice",
133
133
  "field.assigned_load": "assigned load",
134
134
  "field.assigned_pack_qty": "assigned pack qty",
135
- "field.assigned_picker":"assigned picker",
135
+ "field.assigned_picker": "assigned picker",
136
136
  "field.assigned_qty": "assigned qty",
137
137
  "field.assigned_uom_value": "assigned uom value",
138
138
  "field.assigned": "assigned",
@@ -369,7 +369,7 @@
369
369
  "field.picked_at": "picked at",
370
370
  "field.picked_by": "picked by",
371
371
  "field.picked_qty": "picked qty",
372
- "field.picker":"picker",
372
+ "field.picker": "picker",
373
373
  "field.picking_complete": "picking complete",
374
374
  "field.picking_start": "picking start",
375
375
  "field.pickup_time_id": "pickup time id",
@@ -438,7 +438,7 @@
438
438
  "field.ro_no": "RO no.",
439
439
  "field.ro_type": "RO type",
440
440
  "field.ro": "RO",
441
- "filed.role":"role",
441
+ "filed.role": "role",
442
442
  "field.rounded_uom_value": "rounded uom value",
443
443
  "field.route": "route",
444
444
  "field.route_label": "route label",
@@ -802,7 +802,7 @@
802
802
  "label.picking_type": "picking type",
803
803
  "label.picking": "picking",
804
804
  "label.pickup_date": "pickup date",
805
- "label.picker":"picker",
805
+ "label.picker": "picker",
806
806
  "label.please_select_a_container_size": "please select a container size",
807
807
  "label.please_select_an_item": "please select an item",
808
808
  "label.please_select_template_type": "please select template type",
@@ -1360,6 +1360,7 @@
1360
1360
  "text.truck_is_not_selected": "truck is not selected",
1361
1361
  "text.truck_no_is_empty": "truck number is empty",
1362
1362
  "text.unable_to_find_matching_x": "unable to find matching {state.x}",
1363
+ "text.unable_to_save_print_history_x": "unable to save print history ({state.counter} label(s) printed). Kindly contact our support",
1363
1364
  "text.undo_inventory": "undo inventory",
1364
1365
  "text.undo_picking_worksheet": "undo inventory selection",
1365
1366
  "text.undo_preunload": "undo preunload",
@@ -1438,6 +1438,7 @@
1438
1438
  "text.truck_is_not_selected": "[ko] truck is not selected",
1439
1439
  "text.truck_no_is_empty": "[ko] truck number is empty",
1440
1440
  "text.turn_to_pdf_successfully": "turn to pdf successfully",
1441
+ "text.unable_to_save_print_history_x": "[ko] unable to save print history ({state.counter} label(s) printed). Kindly contact our support",
1441
1442
  "text.undo_inventory": "[ko]undo inventory",
1442
1443
  "text.undo_picking_worksheet": "재고 피킹 되돌리기",
1443
1444
  "text.undo_preunload": "임시하차 되돌리기",
@@ -1355,6 +1355,7 @@
1355
1355
  "text.transfer_location_completed": "[ms] transfer location completed",
1356
1356
  "text.truck_is_not_selected": "[ms] truck is not selected",
1357
1357
  "text.truck_no_is_empty": "[ms] truck number is empty",
1358
+ "text.unable_to_save_print_history_x": "[ms] unable to save print history ({state.counter} label(s) printed). Kindly contact our support",
1358
1359
  "text.undo_inventory": "[ms]undo inventory",
1359
1360
  "text.undo_picking_worksheet": "undo inventory selection",
1360
1361
  "text.undo_preunload": "undo preunload",
@@ -1322,6 +1322,7 @@
1322
1322
  "text.transfer_location_completed": "[zh] transfer location completed",
1323
1323
  "text.truck_is_not_selected": "[zh] truck is not selected",
1324
1324
  "text.truck_no_is_empty": "[zh] truck number is empty",
1325
+ "text.unable_to_save_print_history_x": "[zh] unable to save print history ({state.counter} label(s) printed). Kindly contact our support",
1325
1326
  "text.undo_inventory": "[zh]undo inventory",
1326
1327
  "text.undo_picking_worksheet": "undo inventory selection",
1327
1328
  "text.undo_preunload": "undo preunload",