@things-factory/operato-wms 4.3.430 → 4.3.434

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.
@@ -2570,8 +2570,6 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
2570
2570
  if (!record.vasQty) throw new Error(i18next.t('text.empty_field_field', { field: i18next.t('field.vas_qty') }))
2571
2571
 
2572
2572
  if (record.outputQty === 0) throw new Error(i18next.t('text.output_qty_must_be_more_than_0'))
2573
- if (!record.outputQty)
2574
- throw new Error(i18next.t('text.empty_field_field', { field: i18next.t('field.output_qty') }))
2575
2573
 
2576
2574
  if (!record.vas) throw new Error(i18next.t('text.empty_field_field', { field: i18next.t('field.vas') }))
2577
2575
  // allowing repacking to same SKU
@@ -268,6 +268,15 @@ class CreateDeliveryOrder extends localize(i18next)(PageView) {
268
268
  @click="${this._openDriverSelector.bind(this)}"
269
269
  />
270
270
 
271
+ <label ?hidden="${!this._checkTransport}">${i18next.t('label.driver_code')}</label>
272
+ <input name="ownDriverCode" value="" ?hidden="${!this._showOwnCollectionField}" />
273
+ <input
274
+ name="warehouseDriverCode"
275
+ ?hidden="${!this._showWarehouseTransportField}"
276
+ readonly
277
+ @click="${this._openDriverSelector.bind(this)}"
278
+ />
279
+
271
280
  <label ?hidden="${!this._checkTransport}">${i18next.t('label.truck_no')}</label>
272
281
  <input name="ownTruck" ?hidden="${!this._showOwnCollectionField}" />
273
282
  <input
@@ -410,6 +419,10 @@ class CreateDeliveryOrder extends localize(i18next)(PageView) {
410
419
  return this.shadowRoot.querySelector('input[name=warehouseDriver]')
411
420
  }
412
421
 
422
+ get _truckDriverCodeInput() {
423
+ return this.shadowRoot.querySelector('input[name=warehouseDriverCode]')
424
+ }
425
+
413
426
  get productGrist() {
414
427
  return this.shadowRoot.querySelector('data-grist#product-grist')
415
428
  }
@@ -685,6 +698,7 @@ class CreateDeliveryOrder extends localize(i18next)(PageView) {
685
698
  <transport-driver-popup
686
699
  @selected="${e => {
687
700
  this._truckDriverInput.value = e.detail.name
701
+ this._truckDriverCodeInput.value = e.detail.driverCode
688
702
  this._transportDriver = e.detail.id
689
703
  }}"
690
704
  ></transport-driver-popup>
@@ -917,16 +931,19 @@ class CreateDeliveryOrder extends localize(i18next)(PageView) {
917
931
 
918
932
  delete formData.warehouseTruck
919
933
  delete formData.warehouseDriver
934
+ delete formData.warehouseDriverCode
920
935
  } else {
921
936
  formData = {
922
937
  ...formData,
923
938
  truckNo: formData.ownTruck,
924
939
  otherDriver: formData.ownDriver,
940
+ otherDriverCode: formData.ownDriverCode,
925
941
  transportDriver: null,
926
942
  transportVehicle: null
927
943
  }
928
944
 
929
945
  delete formData.ownTruck
946
+ delete formData.ownDriverCode
930
947
  delete formData.ownDriver
931
948
  }
932
949
 
@@ -356,6 +356,16 @@ class DeliveryNotePopup extends localize(i18next)(LitElement) {
356
356
  readonly
357
357
  />
358
358
 
359
+ <label>${i18next.t('label.driver_code')}</label>
360
+ <input name="otherDriverCode" value="${this.orderInfo.otherDriverCode}" ?hidden="${!this._ownCollection}" />
361
+ <input
362
+ name="ownDriverCode"
363
+ ?hidden="${this._ownCollection}"
364
+ value="${this.orderInfo.driverCode}"
365
+ @click="${this._openDriverSelector.bind(this)}"
366
+ readonly
367
+ />
368
+
359
369
  <label>${i18next.t('label.vehicle_no')}</label>
360
370
  <input name="otherTruck" ?hidden="${!this._ownCollection}" value="${this._truckNo}" />
361
371
  <input
@@ -725,6 +735,10 @@ class DeliveryNotePopup extends localize(i18next)(LitElement) {
725
735
  return this.shadowRoot.querySelector('input[name=ownDriver]')
726
736
  }
727
737
 
738
+ get _truckDriverCodeInput() {
739
+ return this.shadowRoot.querySelector('input[name=ownDriverCode]')
740
+ }
741
+
728
742
  get doGrist() {
729
743
  return this.shadowRoot.querySelector('data-grist#do-grist')
730
744
  }
@@ -775,6 +789,7 @@ class DeliveryNotePopup extends localize(i18next)(LitElement) {
775
789
  this._determineOwnCollection = 'Warehouse Transport'
776
790
  this._truckNoInput.value = ''
777
791
  this._truckDriverInput.value = ''
792
+ this._truckDriverCodeInput.value = ''
778
793
  }
779
794
  }
780
795
 
@@ -837,6 +852,7 @@ class DeliveryNotePopup extends localize(i18next)(LitElement) {
837
852
  <transport-driver-popup
838
853
  @selected="${e => {
839
854
  this._truckDriverInput.value = e.detail.name
855
+ this._truckDriverCodeInput.value = e.detail.driverCode
840
856
  }}"
841
857
  ></transport-driver-popup>
842
858
  `,
@@ -135,8 +135,10 @@ class PrintDeliveryOrder extends localize(i18next)(PageView) {
135
135
  deliveryDate
136
136
  doStatus
137
137
  driverName
138
+ driverCode
138
139
  otherDestination
139
140
  otherDriver
141
+ otherDriverCode
140
142
  ownCollection
141
143
  isManualDo
142
144
  remark
@@ -123,8 +123,10 @@ class ViewDeliveryOrder extends localize(i18next)(PageView) {
123
123
  deliveryDate
124
124
  doStatus
125
125
  driverName
126
+ driverCode
126
127
  otherDestination
127
128
  otherDriver
129
+ otherDriverCode
128
130
  ownCollection
129
131
  isManualDo
130
132
  remark
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/operato-wms",
3
- "version": "4.3.430",
3
+ "version": "4.3.434",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -62,53 +62,53 @@
62
62
  "@operato/scene-tab": "^0.1.8",
63
63
  "@operato/scene-table": "^0.1.8",
64
64
  "@operato/scene-wheel-sorter": "^0.1.8",
65
- "@things-factory/apptool-ui": "^4.3.381",
66
- "@things-factory/attachment-ui": "^4.3.425",
67
- "@things-factory/auth-ui": "^4.3.425",
68
- "@things-factory/barcode-ui": "^4.3.381",
69
- "@things-factory/biz-ui": "^4.3.425",
70
- "@things-factory/board-service": "^4.3.425",
71
- "@things-factory/board-ui": "^4.3.425",
72
- "@things-factory/code-ui": "^4.3.425",
73
- "@things-factory/context-ui": "^4.3.381",
74
- "@things-factory/export-ui": "^4.3.381",
75
- "@things-factory/export-ui-csv": "^4.3.381",
76
- "@things-factory/export-ui-excel": "^4.3.381",
77
- "@things-factory/fav-base": "^4.3.425",
78
- "@things-factory/form-ui": "^4.3.381",
79
- "@things-factory/geography": "^4.3.425",
80
- "@things-factory/grist-ui": "^4.3.381",
81
- "@things-factory/help": "^4.3.381",
82
- "@things-factory/i18n-base": "^4.3.381",
83
- "@things-factory/id-rule-base": "^4.3.425",
84
- "@things-factory/import-ui": "^4.3.381",
85
- "@things-factory/import-ui-excel": "^4.3.381",
86
- "@things-factory/menu-ui": "^4.3.425",
87
- "@things-factory/more-ui": "^4.3.381",
88
- "@things-factory/notification": "^4.3.425",
65
+ "@things-factory/apptool-ui": "^4.3.434",
66
+ "@things-factory/attachment-ui": "^4.3.434",
67
+ "@things-factory/auth-ui": "^4.3.434",
68
+ "@things-factory/barcode-ui": "^4.3.434",
69
+ "@things-factory/biz-ui": "^4.3.434",
70
+ "@things-factory/board-service": "^4.3.434",
71
+ "@things-factory/board-ui": "^4.3.434",
72
+ "@things-factory/code-ui": "^4.3.434",
73
+ "@things-factory/context-ui": "^4.3.434",
74
+ "@things-factory/export-ui": "^4.3.434",
75
+ "@things-factory/export-ui-csv": "^4.3.434",
76
+ "@things-factory/export-ui-excel": "^4.3.434",
77
+ "@things-factory/fav-base": "^4.3.434",
78
+ "@things-factory/form-ui": "^4.3.434",
79
+ "@things-factory/geography": "^4.3.434",
80
+ "@things-factory/grist-ui": "^4.3.434",
81
+ "@things-factory/help": "^4.3.434",
82
+ "@things-factory/i18n-base": "^4.3.434",
83
+ "@things-factory/id-rule-base": "^4.3.434",
84
+ "@things-factory/import-ui": "^4.3.434",
85
+ "@things-factory/import-ui-excel": "^4.3.434",
86
+ "@things-factory/menu-ui": "^4.3.434",
87
+ "@things-factory/more-ui": "^4.3.434",
88
+ "@things-factory/notification": "^4.3.434",
89
89
  "@things-factory/pdf": "^4.3.381",
90
- "@things-factory/print-proxy-service": "^4.3.381",
91
- "@things-factory/print-ui": "^4.3.381",
92
- "@things-factory/product-base": "^4.3.425",
93
- "@things-factory/resource-ui": "^4.3.425",
94
- "@things-factory/sales-ui": "^4.3.430",
90
+ "@things-factory/print-proxy-service": "^4.3.434",
91
+ "@things-factory/print-ui": "^4.3.434",
92
+ "@things-factory/product-base": "^4.3.434",
93
+ "@things-factory/resource-ui": "^4.3.434",
94
+ "@things-factory/sales-ui": "^4.3.434",
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",
98
98
  "@things-factory/scene-form": "^4.3.381",
99
99
  "@things-factory/scene-google-map": "^4.3.381",
100
100
  "@things-factory/scene-graphql": "^4.3.381",
101
- "@things-factory/scene-label": "^4.3.381",
101
+ "@things-factory/scene-label": "^4.3.434",
102
102
  "@things-factory/scene-marker": "^4.3.381",
103
103
  "@things-factory/scene-mqtt": "^4.3.381",
104
104
  "@things-factory/scene-restful": "^4.3.381",
105
105
  "@things-factory/scene-visualizer": "^4.3.381",
106
- "@things-factory/setting-ui": "^4.3.425",
107
- "@things-factory/system-ui": "^4.3.381",
108
- "@things-factory/transport-base": "^4.3.425",
109
- "@things-factory/tutorial-ui": "^4.3.425",
110
- "@things-factory/warehouse-base": "^4.3.430",
111
- "@things-factory/worksheet-base": "^4.3.430"
106
+ "@things-factory/setting-ui": "^4.3.434",
107
+ "@things-factory/system-ui": "^4.3.434",
108
+ "@things-factory/transport-base": "^4.3.434",
109
+ "@things-factory/tutorial-ui": "^4.3.434",
110
+ "@things-factory/warehouse-base": "^4.3.434",
111
+ "@things-factory/worksheet-base": "^4.3.434"
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": "b62b950285aa5cb36af746fa9fe77b7476e4538c"
120
+ "gitHead": "1e313f6256aa565f49d71ee37f60f173c7b49bc0"
121
121
  }