@things-factory/operato-wms 3.8.0 → 3.8.1

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.
@@ -1152,7 +1152,7 @@ class PutawayProduct extends connect(store)(localize(i18next)(PageView)) {
1152
1152
  if (filters) {
1153
1153
  const response = await client.query({
1154
1154
  query: gql`
1155
- query locations($filters: [Filter]) {
1155
+ query locations($filters: [Filter!]!) {
1156
1156
  locations(filters: $filters) {
1157
1157
  items {
1158
1158
  id
@@ -120,7 +120,6 @@ class InventoryAdjustmentApproval extends connect(store)(localize(i18next)(PageV
120
120
 
121
121
  async pageInitialized() {
122
122
  this._lockedPallet = []
123
- this.location = await this.fetchLocation()
124
123
  const partners = await this._fetchPartners()
125
124
  const _approvalStatus = await getCodeByName('APPROVAL_STATUS')
126
125
 
@@ -592,23 +591,6 @@ class InventoryAdjustmentApproval extends connect(store)(localize(i18next)(PageV
592
591
  return response.data.productsByBizplace.items
593
592
  }
594
593
 
595
- async fetchLocation() {
596
- const response = await client.query({
597
- query: gql`
598
- query locations($filters: [Filter!]) {
599
- locations(filters: $filters) {
600
- items {
601
- id
602
- name
603
- }
604
- }
605
- }
606
- `,
607
- variables: { filters: [] }
608
- })
609
- return response.data.locations.items
610
- }
611
-
612
594
  _convertUnixTimestampToDate(unixTimestampValue) {
613
595
  let convertedUnix = new Date(unixTimestampValue)
614
596
  return `${convertedUnix.getDate()}/${convertedUnix.getMonth() + 1}/${convertedUnix.getFullYear()}`
@@ -8,7 +8,7 @@ exports.shippingProviders = {
8
8
  try {
9
9
  const { domain } = context.state;
10
10
  const items = await (0, typeorm_1.getRepository)(sales_base_1.ReleaseGood).query(`
11
- SELECT DISTINCT transporter FROM release_goods WHERE domain_id = '${domain.id}'
11
+ SELECT DISTINCT transporter FROM release_goods WHERE domain_id = '${domain.id}' AND transporter IS NOT null AND transporter != '' AND type = 'b2c'
12
12
  `);
13
13
  return { items: items };
14
14
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/operato-wms",
3
- "version": "3.8.0",
3
+ "version": "3.8.1",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -69,9 +69,9 @@
69
69
  "@things-factory/print-proxy-service": "^3.8.0",
70
70
  "@things-factory/print-service": "^3.8.0",
71
71
  "@things-factory/print-ui": "^3.8.0",
72
- "@things-factory/product-base": "^3.8.0",
72
+ "@things-factory/product-base": "^3.8.1",
73
73
  "@things-factory/resource-ui": "^3.8.0",
74
- "@things-factory/sales-ui": "^3.8.0",
74
+ "@things-factory/sales-ui": "^3.8.1",
75
75
  "@things-factory/scene-chartjs": "^3.7.5",
76
76
  "@things-factory/scene-clock": "^3.7.5",
77
77
  "@things-factory/scene-clone": "^3.7.5",
@@ -102,11 +102,11 @@
102
102
  "@things-factory/system-ui": "^3.8.0",
103
103
  "@things-factory/transport-base": "^3.8.0",
104
104
  "@things-factory/tutorial-ui": "^3.8.0",
105
- "@things-factory/warehouse-base": "^3.8.0",
106
- "@things-factory/worksheet-base": "^3.8.0"
105
+ "@things-factory/warehouse-base": "^3.8.1",
106
+ "@things-factory/worksheet-base": "^3.8.1"
107
107
  },
108
108
  "devDependencies": {
109
109
  "@things-factory/builder": "^3.7.5"
110
110
  },
111
- "gitHead": "d3a61edb1a77732db20185aedc47b2cce6dd1f82"
111
+ "gitHead": "2f2534de2c0866a693f6ec9949b35a5a0e65065f"
112
112
  }
@@ -9,7 +9,7 @@ export const shippingProviders = {
9
9
  const { domain }: { domain: Domain } = context.state
10
10
 
11
11
  const items: any[] = await getRepository(ReleaseGood).query(`
12
- SELECT DISTINCT transporter FROM release_goods WHERE domain_id = '${domain.id}'
12
+ SELECT DISTINCT transporter FROM release_goods WHERE domain_id = '${domain.id}' AND transporter IS NOT null AND transporter != '' AND type = 'b2c'
13
13
  `)
14
14
 
15
15
  return { items: items }