@things-factory/operato-wms 4.3.234 → 4.3.235

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.
@@ -4,28 +4,14 @@ import './return-pallet-check-popup'
4
4
  import './transport-vehicles-popup'
5
5
 
6
6
  import gql from 'graphql-tag'
7
- import {
8
- css,
9
- html
10
- } from 'lit-element'
7
+ import { css, html } from 'lit-element'
11
8
  import { connect } from 'pwa-helpers/connect-mixin.js'
12
9
 
13
10
  import { sleep } from '@operato/utils'
14
- import {
15
- MultiColumnFormStyles,
16
- SingleColumnFormStyles
17
- } from '@things-factory/form-ui'
18
- import {
19
- i18next,
20
- localize
21
- } from '@things-factory/i18n-base'
11
+ import { MultiColumnFormStyles, SingleColumnFormStyles } from '@things-factory/form-ui'
12
+ import { i18next, localize } from '@things-factory/i18n-base'
22
13
  import { openPopup } from '@things-factory/layout-base'
23
- import {
24
- client,
25
- CustomAlert,
26
- PageView,
27
- store
28
- } from '@things-factory/shell'
14
+ import { client, CustomAlert, PageView, store } from '@things-factory/shell'
29
15
  import { CommonButtonStyles } from '@things-factory/styles'
30
16
  import { isMobileDevice } from '@things-factory/utils'
31
17
 
@@ -331,6 +317,18 @@ class LoadingProduct extends connect(store)(localize(i18next)(PageView)) {
331
317
  { type: 'gutter', gutterName: 'row-selector', multiple: true }
332
318
  ]
333
319
 
320
+ let fields = [
321
+ 'palletId',
322
+ 'productSku',
323
+ 'product',
324
+ 'packingType',
325
+ 'packingSize',
326
+ 'batchId',
327
+ 'batchIdRef',
328
+ 'releaseQty',
329
+ 'loadedQty'
330
+ ]
331
+
334
332
  if (enableToteScanning) {
335
333
  configColumns.push({
336
334
  type: 'string',
@@ -338,6 +336,19 @@ class LoadingProduct extends connect(store)(localize(i18next)(PageView)) {
338
336
  header: i18next.t('field.tote'),
339
337
  width: 140
340
338
  })
339
+
340
+ fields = [
341
+ 'toteName',
342
+ 'palletId',
343
+ 'productSku',
344
+ 'product',
345
+ 'packingType',
346
+ 'packingSize',
347
+ 'batchId',
348
+ 'batchIdRef',
349
+ 'releaseQty',
350
+ 'loadedQty'
351
+ ]
341
352
  }
342
353
 
343
354
  configColumns.push(
@@ -429,17 +440,7 @@ class LoadingProduct extends connect(store)(localize(i18next)(PageView)) {
429
440
  },
430
441
  pagination: { infinite: true },
431
442
  list: {
432
- fields: [
433
- 'palletId',
434
- 'productSku',
435
- 'product',
436
- 'packingType',
437
- 'packingSize',
438
- 'batchId',
439
- 'batchIdRef',
440
- 'releaseQty',
441
- 'loadedQty'
442
- ]
443
+ fields: fields
443
444
  },
444
445
  columns: configColumns
445
446
  }
@@ -848,12 +849,11 @@ class LoadingProduct extends connect(store)(localize(i18next)(PageView)) {
848
849
  }
849
850
  //2. validate whether delivery order is empty or not. It should only validate if enable-loading-delivery-information is set to true
850
851
  if (this._requireDeliveryInformation) {
851
- if(this._ownCollection){
852
+ if (this._ownCollection) {
852
853
  if (!this.palletQty.value || !this.truckInput.value) {
853
854
  throw new Error(i18next.t('text.empty_field_in_delivery_information'))
854
855
  }
855
- } else
856
- if (!this.palletQty.value || !this.warehouseTruckInput.value) {
856
+ } else if (!this.palletQty.value || !this.warehouseTruckInput.value) {
857
857
  throw new Error(i18next.t('text.empty_field_in_delivery_information'))
858
858
  }
859
859
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/operato-wms",
3
- "version": "4.3.234",
3
+ "version": "4.3.235",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -108,7 +108,7 @@
108
108
  "@things-factory/transport-base": "^4.3.234",
109
109
  "@things-factory/tutorial-ui": "^4.3.234",
110
110
  "@things-factory/warehouse-base": "^4.3.234",
111
- "@things-factory/worksheet-base": "^4.3.234"
111
+ "@things-factory/worksheet-base": "^4.3.235"
112
112
  },
113
113
  "devDependencies": {
114
114
  "@things-factory/builder": "^4.3.227",
@@ -117,5 +117,5 @@
117
117
  "cypress-localstorage-commands": "^1.6.1",
118
118
  "eslint-plugin-cypress": "^2.12.1"
119
119
  },
120
- "gitHead": "f09a8d10fcf4cffc06abb9777ca60ee82b00ce33"
120
+ "gitHead": "76d957b60aa3ade7db5bb563a723f59d81548c75"
121
121
  }