@things-factory/operato-wms 4.3.244 → 4.3.245

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.
@@ -176,6 +176,12 @@ class B2bOrderList extends localize(i18next)(PageView) {
176
176
  },
177
177
  value: new Date().toISOString().split('T')[0]
178
178
  },
179
+ {
180
+ label: i18next.t('field.product_info'),
181
+ name: 'sku',
182
+ type: 'text',
183
+ props: { searchOper: ' i_like' }
184
+ },
179
185
  {
180
186
  label: i18next.t('field.export_option'),
181
187
  name: 'exportOption',
@@ -498,7 +498,7 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
498
498
  </div>
499
499
 
500
500
  <form name="shippingInfo" ?hidden="${this._showShippingInfo}" class="multi-column-form" autocomplete="off">
501
- <legend>${i18next.t('title.shipping_information')}</legend>
501
+ <legend>${i18next.t('title.shipping_information')} (${this._releaseOrderNo})</legend>
502
502
 
503
503
  <label>${i18next.t('label.company')}</label>
504
504
  <input name="attentionCompany" .value="${this._releaseOrder.attentionCompany}" />
@@ -649,7 +649,7 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
649
649
  </form>
650
650
 
651
651
  <form name="exportInfo" ?hidden="${this._showExportInfo}" class="multi-column-form" autocomplete="off">
652
- <legend>${i18next.t('title.export_information')}</legend>
652
+ <legend>${i18next.t('title.export_information')} (${this._releaseOrderNo})</legend>
653
653
 
654
654
  <!-- <div remind-wrap>
655
655
  <input type="checkbox" id="remindContainerDeparture" name="remindContainerDeparture"
@@ -749,15 +749,15 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
749
749
  <!-- disable editing of vas -->
750
750
  <!-- <div class="vas-button-container">
751
751
  ${this._editVasStatus.indexOf(this._status) >= 0
752
- ? html`
753
- <mwc-button
754
- raised
755
- @click="${this._updateVass.bind(this)}"
756
- label="${i18next.t('button.update_vas')}"
757
- }
758
- ></mwc-button>
759
- `
760
- : ''}
752
+ ? html`
753
+ <mwc-button
754
+ raised
755
+ @click="${this._updateVass.bind(this)}"
756
+ label="${i18next.t('button.update_vas')}"
757
+ }
758
+ ></mwc-button>
759
+ `
760
+ : ''}
761
761
  </div> -->
762
762
  </div>
763
763
  </div>
@@ -1261,7 +1261,7 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
1261
1261
  type: 'string',
1262
1262
  name: 'vas',
1263
1263
  header: i18next.t('field.vas'),
1264
- record: {editable: enableVasEditing},
1264
+ record: { editable: enableVasEditing },
1265
1265
  width: 250
1266
1266
  },
1267
1267
  {
@@ -1614,42 +1614,43 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
1614
1614
  }
1615
1615
 
1616
1616
  this.vasData = {
1617
- records: orderVass.sort((a, b) => a.set - b.set).reduce((acc, orderVas, groupIdx) =>{
1618
- const releaseQty = orderProducts.find(op => op.batchId === orderVas.batchId)?.releaseQty || 0
1619
- acc.push({
1620
- ...orderVas,
1621
- productSKU: orderVas.product?.sku,
1622
- uom: orderVas.productDetail?.uom,
1623
- newSku: orderVas.newProduct?.sku,
1624
- newPackingType: orderVas.newProductDetail?.packingType,
1625
- newUomValue: orderVas.newProductDetail?.uomValue,
1626
- newUom: orderVas.newProductDetail?.uom,
1627
- releaseQty: releaseQty
1628
- })
1629
-
1630
- orderVas.orderVasItems.forEach((itm, idx)=>{
1631
- if(idx== 0){
1632
- acc[acc.length - 1] = {
1633
- ...acc[acc.length - 1],
1634
- orderVasItemId: itm.vas.id,
1635
- group: groupIdx,
1636
- vas: itm.vas.name,
1637
- vasQty: itm.vasQty
1638
- }
1639
- }else{
1640
- acc.push({
1641
- orderVasItemId: itm.vas.id,
1642
- group: groupIdx,
1643
- vas: itm.vas.name,
1644
- vasQty: itm.vasQty,
1645
- })
1646
- }
1647
- })
1617
+ records: orderVass
1618
+ .sort((a, b) => a.set - b.set)
1619
+ .reduce((acc, orderVas, groupIdx) => {
1620
+ const releaseQty = orderProducts.find(op => op.batchId === orderVas.batchId)?.releaseQty || 0
1621
+ acc.push({
1622
+ ...orderVas,
1623
+ productSKU: orderVas.product?.sku,
1624
+ uom: orderVas.productDetail?.uom,
1625
+ newSku: orderVas.newProduct?.sku,
1626
+ newPackingType: orderVas.newProductDetail?.packingType,
1627
+ newUomValue: orderVas.newProductDetail?.uomValue,
1628
+ newUom: orderVas.newProductDetail?.uom,
1629
+ releaseQty: releaseQty
1630
+ })
1648
1631
 
1649
- return acc
1650
- },[])
1651
- }
1632
+ orderVas.orderVasItems.forEach((itm, idx) => {
1633
+ if (idx == 0) {
1634
+ acc[acc.length - 1] = {
1635
+ ...acc[acc.length - 1],
1636
+ orderVasItemId: itm.vas.id,
1637
+ group: groupIdx,
1638
+ vas: itm.vas.name,
1639
+ vasQty: itm.vasQty
1640
+ }
1641
+ } else {
1642
+ acc.push({
1643
+ orderVasItemId: itm.vas.id,
1644
+ group: groupIdx,
1645
+ vas: itm.vas.name,
1646
+ vasQty: itm.vasQty
1647
+ })
1648
+ }
1649
+ })
1652
1650
 
1651
+ return acc
1652
+ }, [])
1653
+ }
1653
1654
  }
1654
1655
  }
1655
1656
 
@@ -2124,7 +2125,7 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
2124
2125
  .vasList="${this.vasData.records}"
2125
2126
  .record="${record}"
2126
2127
  @selected="${selected => {
2127
- let group = this.vasGrist.data.records[this.vasGrist.data.records.length -1].group
2128
+ let group = this.vasGrist.data.records[this.vasGrist.data.records.length - 1].group
2128
2129
 
2129
2130
  const newRecords = selected.detail.map(d => {
2130
2131
  return {
@@ -2282,7 +2283,6 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
2282
2283
  }
2283
2284
  }
2284
2285
 
2285
-
2286
2286
  get vasSummaryConfig() {
2287
2287
  return {
2288
2288
  rows: {
@@ -2626,8 +2626,6 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
2626
2626
  _updateVass() {
2627
2627
  try {
2628
2628
  let patches = this.vasGrist.data.records
2629
-
2630
- debugger
2631
2629
 
2632
2630
  // const result = await CustomAlert({
2633
2631
  // title: i18next.t('title.are_you_sure'),
@@ -2650,7 +2648,7 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
2650
2648
  // qty: patch.qty,
2651
2649
  // uomValue: patch.totalUomValue,
2652
2650
  // // vas: { id: patch.orderVasItems.reduce((vasList = [], ovi) => [...vasList.push(ovi.vas.id)]) }
2653
- // vas: { id: patch.orderVasItems.map(ovi => ovi.vas.id) },
2651
+ // vas: { id: patch.orderVasItems.map(ovi => ovi.vas.id) },
2654
2652
  // vasQty: patch.orderVasItems.map(ovi => ovi.vasQty),
2655
2653
  // newProduct: patch.newProduct?.id,
2656
2654
  // outputQty: patch.outputQty,
@@ -2817,6 +2815,7 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
2817
2815
  _getFormInfo() {
2818
2816
  let formData = this._serializeForm(this.releaseOrderForm)
2819
2817
  delete formData.importedOrder
2818
+ delete formData.vas
2820
2819
 
2821
2820
  return formData
2822
2821
  }
@@ -14,7 +14,7 @@ module.exports = {
14
14
  password: 'hatio',
15
15
  host: '192.168.0.161',
16
16
  port: 15432,
17
- synchronize: true,
17
+ synchronize: false,
18
18
  logging: true
19
19
  },
20
20
  // ormconfig: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/operato-wms",
3
- "version": "4.3.244",
3
+ "version": "4.3.245",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -117,5 +117,5 @@
117
117
  "cypress-localstorage-commands": "^1.6.1",
118
118
  "eslint-plugin-cypress": "^2.12.1"
119
119
  },
120
- "gitHead": "6892f7cf3a5b2e792cbbdfc4ebc5266802ef3499"
120
+ "gitHead": "0a4329dbc4d07db388401b79a1e6df3caf56d882"
121
121
  }