@things-factory/operato-wms 4.1.22 → 4.1.25

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.
@@ -525,6 +525,7 @@ class InventoryHistory extends localize(i18next)(PageView) {
525
525
  async _fetchInventoryHistoriesForExport() {
526
526
  try {
527
527
  this._validate()
528
+
528
529
  let inventoryHistory = {}
529
530
  let filters = []
530
531
  const _customFields = this.searchForm.formFields
@@ -614,11 +615,15 @@ class InventoryHistory extends localize(i18next)(PageView) {
614
615
  if (this._toDateInput.value < fromDate) this._toDateInput.value = fromDate
615
616
 
616
617
  let min = new Date(fromDate)
617
- let today = new Date()
618
- today.setHours(0, 0, 0, 0)
618
+ let max = new Date(fromDate)
619
+ max.setMonth(max.getMonth() + 1)
620
+ max.setDate(max.getDate() - 1)
619
621
 
620
622
  min = min.toISOString().split('T')[0]
623
+ max = max.toISOString().split('T')[0]
621
624
 
625
+ this._toDateInput.value = max
626
+ this._toDateInput.max = max
622
627
  this._toDateInput.min = min
623
628
  }
624
629
 
@@ -653,6 +658,7 @@ class InventoryHistory extends localize(i18next)(PageView) {
653
658
  { header: i18next.t('field.sku'), key: 'sku', width: 75, type: 'string' },
654
659
  { header: i18next.t('field.product_name'), key: 'productName', width: 75, type: 'string' },
655
660
  { header: i18next.t('field.product_description'), key: 'productDescription', width: 75, type: 'string' },
661
+ { header: i18next.t('field.brand'), key: 'brand', width: 75, type: 'string' },
656
662
  { header: i18next.t('field.seq'), key: 'seq', width: 75, type: 'number' },
657
663
  { header: i18next.t('field.lot_id'), key: 'palletId', width: 75, type: 'string' },
658
664
  { header: i18next.t('field.carton_id'), key: 'cartonId', width: 75, type: 'string' },
@@ -662,6 +668,7 @@ class InventoryHistory extends localize(i18next)(PageView) {
662
668
  { header: i18next.t('field.uom_value'), key: 'uomValue', width: 75, type: 'number' },
663
669
  { header: i18next.t('field.uom'), key: 'uom', width: 75, type: 'string' },
664
670
  { header: i18next.t('field.location'), key: 'location', width: 75, type: 'string' },
671
+ { header: i18next.t('field.batch_id'), key: 'batchId', width: 75, type: 'string' },
665
672
  { header: i18next.t('field.batch_no_ref'), key: 'batchIdRef', width: 75, type: 'string' },
666
673
  { header: i18next.t('field.order_no'), key: 'orderNo', width: 75, type: 'string' },
667
674
  { header: i18next.t('field.ref_no'), key: 'refNo', width: 75, type: 'string' },
@@ -45,19 +45,20 @@ class ArrivalNoticeDetail extends localize(i18next)(PageView) {
45
45
  _importCargo: Boolean,
46
46
  _hasContainer: Boolean,
47
47
  _looseItem: Boolean,
48
- isUserBelongsDomain: Boolean,
49
48
  _status: String,
50
49
  _bizplaceName: String,
51
50
  _attachments: Array,
51
+ _template: Object,
52
+ _showAssignWarehouse: Boolean,
53
+ _vasExpanded: Boolean,
54
+ _enableCartonLabel: Boolean,
55
+ _strictProductSelection: Boolean,
56
+ isUserBelongsDomain: Boolean,
52
57
  data: Object,
53
58
  productGristConfig: Object,
54
59
  vasGristConfig: Object,
55
60
  productData: Object,
56
61
  vasData: Object,
57
- _template: Object,
58
- _showAssignWarehouse: Boolean,
59
- _vasExpanded: Boolean,
60
- _enableCartonLabel: Boolean,
61
62
  arrivalNoticeId: String
62
63
  }
63
64
  }
@@ -462,6 +463,7 @@ class ArrivalNoticeDetail extends localize(i18next)(PageView) {
462
463
  this.vasData = { records: [] }
463
464
  this._showAssignWarehouse = false
464
465
  this._vasExpanded = false
466
+ this._strictProductSelection = false
465
467
  }
466
468
 
467
469
  get arrivalNoticeForm() {
@@ -894,6 +896,8 @@ class ArrivalNoticeDetail extends localize(i18next)(PageView) {
894
896
  })
895
897
  }
896
898
  this._enableCartonLabel = await fetchSettingRule('enable-carton-label', partnerDomainId)
899
+ this._strictProductSelection = await fetchSettingRule('strict-product-selection', partnerDomainId)
900
+ let a = this._strictProductSelection
897
901
  this.updateContext()
898
902
  }
899
903
  }
@@ -1336,6 +1340,7 @@ class ArrivalNoticeDetail extends localize(i18next)(PageView) {
1336
1340
  .ganNo="${this._ganNo}"
1337
1341
  .productData="${this.productData}"
1338
1342
  .bizplace="${this.orderBizplace}"
1343
+ .strictEditable="${this._strictProductSelection}"
1339
1344
  @completed="${this._fetchGAN.bind(this)}"
1340
1345
  ></edit-product-popup>
1341
1346
  `,
@@ -74,7 +74,8 @@ export class EditProductPopup extends localize(i18next)(LitElement) {
74
74
  editProductConfig: Object,
75
75
  addProductConfig: Object,
76
76
  productData: Object,
77
- newProductData: Object
77
+ newProductData: Object,
78
+ strictEditable: Boolean
78
79
  }
79
80
  }
80
81
 
@@ -180,21 +181,21 @@ export class EditProductPopup extends localize(i18next)(LitElement) {
180
181
  type: 'code',
181
182
  name: 'packingType',
182
183
  header: i18next.t('field.packing_type'),
183
- record: { editable: true, codeName: 'PACKING_TYPES' },
184
+ record: { editable: !this.strictEditable, codeName: 'PACKING_TYPES' },
184
185
  width: 150
185
186
  },
186
187
  {
187
188
  type: 'float',
188
189
  name: 'uomValue',
189
190
  header: i18next.t('field.uom_value'),
190
- record: { options: { min: 0 } },
191
+ record: { editable: !this.strictEditable, options: { min: 0 } },
191
192
  width: 80
192
193
  },
193
194
  {
194
195
  type: 'code',
195
196
  name: 'uom',
196
197
  header: i18next.t('field.uom'),
197
- record: { codeName: 'WEIGHT_UNITS' },
198
+ record: { editable: !this.strictEditable, codeName: 'WEIGHT_UNITS' },
198
199
  width: 80
199
200
  },
200
201
  {
@@ -315,21 +316,21 @@ export class EditProductPopup extends localize(i18next)(LitElement) {
315
316
  type: 'code',
316
317
  name: 'packingType',
317
318
  header: i18next.t('field.packing_type'),
318
- record: { codeName: 'PACKING_TYPES' },
319
+ record: { editable: !this.strictEditable, codeName: 'PACKING_TYPES' },
319
320
  width: 150
320
321
  },
321
322
  {
322
323
  type: 'float',
323
324
  name: 'uomValue',
324
325
  header: i18next.t('field.uom_value'),
325
- record: { editable: true, options: { min: 0 } },
326
+ record: { editable: !this.strictEditable, options: { min: 0 } },
326
327
  width: 80
327
328
  },
328
329
  {
329
330
  type: 'code',
330
331
  name: 'uom',
331
332
  header: i18next.t('field.uom'),
332
- record: { editable: true, codeName: 'WEIGHT_UNITS' },
333
+ record: { editable: !this.strictEditable, codeName: 'WEIGHT_UNITS' },
333
334
  width: 80
334
335
  },
335
336
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/operato-wms",
3
- "version": "4.1.22",
3
+ "version": "4.1.25",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -86,7 +86,7 @@
86
86
  "@things-factory/print-ui": "^4.1.22",
87
87
  "@things-factory/product-base": "^4.1.22",
88
88
  "@things-factory/resource-ui": "^4.1.22",
89
- "@things-factory/sales-ui": "^4.1.22",
89
+ "@things-factory/sales-ui": "^4.1.24",
90
90
  "@things-factory/scene-data-transform": "^4.1.19",
91
91
  "@things-factory/scene-excel": "^4.1.19",
92
92
  "@things-factory/scene-firebase": "^4.1.19",
@@ -103,10 +103,10 @@
103
103
  "@things-factory/transport-base": "^4.1.22",
104
104
  "@things-factory/tutorial-ui": "^4.1.22",
105
105
  "@things-factory/warehouse-base": "^4.1.22",
106
- "@things-factory/worksheet-base": "^4.1.22"
106
+ "@things-factory/worksheet-base": "^4.1.24"
107
107
  },
108
108
  "devDependencies": {
109
109
  "@things-factory/builder": "^4.1.19"
110
110
  },
111
- "gitHead": "e40b890d9a573562872298a6b79b26f600f607bf"
111
+ "gitHead": "c336bb131f76a65f55b114a6b5c1296ee08f08b8"
112
112
  }