@things-factory/operato-wms 4.3.500 → 4.3.501

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.
@@ -8,6 +8,7 @@ import { client, store } from '@things-factory/shell'
8
8
  import { css, html, LitElement } from 'lit-element'
9
9
  import { connect } from 'pwa-helpers/connect-mixin'
10
10
  import { CARTON_LABEL_SETTING_KEY, CARTON_LABEL_BY_SKU_SETTING_KEY } from '../constants'
11
+ import { sleep } from '@things-factory/utils'
11
12
 
12
13
  import gql from 'graphql-tag'
13
14
 
@@ -241,7 +242,7 @@ class CartonLabelPopup extends connect(store)(localize(i18next)(LitElement)) {
241
242
 
242
243
  for (let i = 0; i < printData.length; i++) {
243
244
  await sendToPrinter(labelId, { ...printData[i], carton: printData[i].cartonId }, this._printer)
244
- setTimeout(50)
245
+ await sleep(300)
245
246
  }
246
247
  }
247
248
  break
@@ -258,9 +259,7 @@ class CartonLabelPopup extends connect(store)(localize(i18next)(LitElement)) {
258
259
  cartonId: results[i].cartonId,
259
260
  customer: bizplaceName
260
261
  }
261
-
262
262
  await sendToPrinter(labelId, printData, this._printer)
263
- setTimeout(50)
264
263
  }
265
264
  }
266
265
  } catch (e) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/operato-wms",
3
- "version": "4.3.500",
3
+ "version": "4.3.501",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -91,7 +91,7 @@
91
91
  "@things-factory/print-ui": "^4.3.434",
92
92
  "@things-factory/product-base": "^4.3.495",
93
93
  "@things-factory/resource-ui": "^4.3.452",
94
- "@things-factory/sales-ui": "^4.3.500",
94
+ "@things-factory/sales-ui": "^4.3.501",
95
95
  "@things-factory/scene-data-transform": "^4.3.381",
96
96
  "@things-factory/scene-excel": "^4.3.381",
97
97
  "@things-factory/scene-firebase": "^4.3.381",
@@ -107,8 +107,8 @@
107
107
  "@things-factory/system-ui": "^4.3.434",
108
108
  "@things-factory/transport-base": "^4.3.452",
109
109
  "@things-factory/tutorial-ui": "^4.3.452",
110
- "@things-factory/warehouse-base": "^4.3.495",
111
- "@things-factory/worksheet-base": "^4.3.500"
110
+ "@things-factory/warehouse-base": "^4.3.501",
111
+ "@things-factory/worksheet-base": "^4.3.501"
112
112
  },
113
113
  "devDependencies": {
114
114
  "@things-factory/builder": "^4.3.381",
@@ -117,5 +117,5 @@
117
117
  "cypress-localstorage-commands": "^1.6.1",
118
118
  "eslint-plugin-cypress": "^2.12.1"
119
119
  },
120
- "gitHead": "7309dbba2d1d56664b79e7d0d704763ee326d304"
120
+ "gitHead": "166a28a7bc039dc1c4f21ba305052ee1ba375abe"
121
121
  }