@things-factory/operato-wms 4.3.59 → 4.3.62

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.
Files changed (65) hide show
  1. package/client/pages/components/select-inventory-popup.js +626 -0
  2. package/client/pages/inbound/select-product-batch.js +7 -1
  3. package/client/pages/inbound/unload-product.js +75 -25
  4. package/client/pages/inventory/inventory-adjustment.js +1 -1
  5. package/client/pages/inventory/inventory-by-product-detail.js +99 -92
  6. package/client/pages/inventory/inventory-by-product.js +170 -68
  7. package/client/pages/inventory-check/inspecting-product.js +1 -1
  8. package/client/pages/order/release-order/b2b/b2b-order-list.js +76 -80
  9. package/client/pages/order/release-order/b2c/b2c-order-requests.js +93 -81
  10. package/client/pages/order/release-order/batch-picking-popup.js +11 -0
  11. package/client/pages/order/release-order/create-release-order.js +258 -252
  12. package/client/pages/order/release-order/release-extra-product-popup.js +10 -3
  13. package/client/pages/order/release-order/release-order-detail.js +202 -63
  14. package/client/pages/order/transport-order/delivery-note-popup.js +12 -17
  15. package/client/pages/order/transport-order/upload-delivery-note.js +6 -4
  16. package/client/pages/order/transport-order/view-delivery-note.js +0 -1
  17. package/client/pages/outbound/generate-worksheet-popup.js +337 -0
  18. package/client/pages/outbound/inventory-reassign-popup.js +1097 -0
  19. package/client/pages/outbound/loading-product.js +2 -2
  20. package/client/pages/outbound/picking-product.js +174 -100
  21. package/client/pages/outbound/sorting-product.js +5 -5
  22. package/client/pages/outbound/worksheet-batch-picking.js +39 -5
  23. package/client/pages/outbound/worksheet-picking.js +45 -6
  24. package/client/pages/report/outbound-order-details-report.js +181 -49
  25. package/client/pages/report/release-inventory-report.js +503 -0
  26. package/client/route.js +5 -0
  27. package/dist-server/graphql/resolvers/dashboard/outbound-order-by-status.js +3 -3
  28. package/dist-server/graphql/resolvers/extra/add-release-good-products.js +54 -3
  29. package/dist-server/graphql/resolvers/extra/add-release-good-products.js.map +1 -1
  30. package/dist-server/graphql/resolvers/reports/index.js +2 -1
  31. package/dist-server/graphql/resolvers/reports/index.js.map +1 -1
  32. package/dist-server/graphql/resolvers/reports/outbound-order-details-report.js +63 -28
  33. package/dist-server/graphql/resolvers/reports/outbound-order-details-report.js.map +1 -1
  34. package/dist-server/graphql/resolvers/reports/release-inventory-report.js +180 -0
  35. package/dist-server/graphql/resolvers/reports/release-inventory-report.js.map +1 -0
  36. package/dist-server/graphql/types/reports/index.js +6 -1
  37. package/dist-server/graphql/types/reports/index.js.map +1 -1
  38. package/dist-server/graphql/types/reports/outbound-order-details-report.js +14 -1
  39. package/dist-server/graphql/types/reports/outbound-order-details-report.js.map +1 -1
  40. package/dist-server/graphql/types/reports/release-inventory-report-list.js +14 -0
  41. package/dist-server/graphql/types/reports/release-inventory-report-list.js.map +1 -0
  42. package/dist-server/graphql/types/reports/release-inventory-report.js +29 -0
  43. package/dist-server/graphql/types/reports/release-inventory-report.js.map +1 -0
  44. package/dist-server/utils/report-query-util.js +4 -2
  45. package/dist-server/utils/report-query-util.js.map +1 -1
  46. package/helps/release-note.ko.md +13 -7
  47. package/helps/release-note.md +13 -7
  48. package/helps/release-note.ms.md +13 -7
  49. package/helps/release-note.zh.md +13 -7
  50. package/package.json +10 -10
  51. package/server/graphql/resolvers/dashboard/outbound-order-by-status.ts +3 -3
  52. package/server/graphql/resolvers/extra/add-release-good-products.ts +66 -3
  53. package/server/graphql/resolvers/reports/index.ts +3 -1
  54. package/server/graphql/resolvers/reports/outbound-order-details-report.ts +66 -29
  55. package/server/graphql/resolvers/reports/release-inventory-report.ts +202 -0
  56. package/server/graphql/types/reports/index.ts +6 -1
  57. package/server/graphql/types/reports/outbound-order-details-report.ts +14 -1
  58. package/server/graphql/types/reports/release-inventory-report-list.ts +8 -0
  59. package/server/graphql/types/reports/release-inventory-report.ts +23 -0
  60. package/server/utils/report-query-util.ts +4 -2
  61. package/things-factory.config.js +4 -0
  62. package/translations/en.json +73 -16
  63. package/translations/ko.json +157 -110
  64. package/translations/ms.json +65 -16
  65. package/translations/zh.json +79 -29
@@ -35,7 +35,7 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
35
35
  _enableProductScanning: Boolean,
36
36
  _expirationPeriod: Number,
37
37
  _enableCartonLabel: Boolean,
38
- _enableInputQty: Boolean,
38
+ _enableInputQty: Number,
39
39
  _isLooseItem: Boolean,
40
40
  _isQtyChecked: Boolean,
41
41
  _isRequiredCheckExpiry: Boolean,
@@ -274,7 +274,7 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
274
274
  <barcode-scanable-input name="productBarcode" without-enter custom-input></barcode-scanable-input>
275
275
  `
276
276
  : ''}
277
- ${this._enableInputQty && !this._isRequireSerialNumberScanningInbound
277
+ ${this._enableInputQty >= 0 && this._enableInputQty < 4 && !this._isRequireSerialNumberScanningInbound
278
278
  ? html`
279
279
  <label>${i18next.t('label.actual_qty')}</label>
280
280
  <input name="qty" type="number" min="1" />
@@ -322,7 +322,7 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
322
322
  this._worksheetLoaded = false
323
323
  this._usingReusablePallet = false
324
324
  this._enableCartonLabel = false
325
- this._enableInputQty = true
325
+ this._enableInputQty = -1
326
326
  this._enableProductScanning = false
327
327
  this._expirationPeriod = 0
328
328
  this._isLooseItem = false
@@ -669,7 +669,7 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
669
669
  this._enableProductScanning = await fetchSettingRule('enable-product-scanning', partnerDomainId)
670
670
  this._enableCartonLabel = await fetchSettingRule('enable-carton-label', partnerDomainId)
671
671
  if (this._enableProductScanning)
672
- this._enableInputQty = await fetchSettingRule('enable-input-qty', partnerDomainId)
672
+ this._enableInputQty = parseInt(await fetchSettingRule('enable-input-qty', partnerDomainId))
673
673
 
674
674
  this._fetchInventories()
675
675
  }
@@ -823,7 +823,7 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
823
823
  this._focusOnSerialNumberInput()
824
824
  }
825
825
  } else {
826
- if (this._enableInputQty) {
826
+ if (this._enableInputQty >= 0 && this._enableInputQty < 4) {
827
827
  this.actualQtyInput.value = ''
828
828
  }
829
829
  this.cartonInput.value = ''
@@ -836,7 +836,7 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
836
836
  this._focusOnSerialNumberInput()
837
837
  } else {
838
838
  this.lotInput.value = ''
839
- if (this._enableInputQty) this.actualQtyInput.value = ''
839
+ if (this._enableInputQty >= 0 && this._enableInputQty < 4) this.actualQtyInput.value = ''
840
840
  this._focusOnLotInput()
841
841
  }
842
842
  }
@@ -873,7 +873,8 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
873
873
  if (this._isRequireSerialNumberScanningInbound) {
874
874
  return this._scanSerialNumberUnload()
875
875
  } else {
876
- if (!(this._enableProductScanning && !this._enableInputQty)) return this._qtyUnload()
876
+ if (!(this._enableProductScanning && (this._enableInputQty < 0 || this._enableInputQty > 3)))
877
+ return this._qtyUnload()
877
878
  }
878
879
  this._scanProductUnload()
879
880
  }
@@ -1067,6 +1068,37 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
1067
1068
  })
1068
1069
  }
1069
1070
 
1071
+ async fetchProductDetails(gtin) {
1072
+ return await client.query({
1073
+ query: gql`
1074
+ query checkGtin($gtin: String!, $customerCompanyDomainId: String!) {
1075
+ checkGtin(gtin: $gtin, customerCompanyDomainId: $customerCompanyDomainId) {
1076
+ items {
1077
+ id
1078
+ name
1079
+ packingType
1080
+ packingSize
1081
+ gtin
1082
+ product {
1083
+ id
1084
+ name
1085
+ sku
1086
+ isRequiredCheckExpiry
1087
+ isRequireSerialNumberScanningInbound
1088
+ expirationPeriod
1089
+ }
1090
+ }
1091
+ total
1092
+ }
1093
+ }
1094
+ `,
1095
+ variables: {
1096
+ gtin,
1097
+ customerCompanyDomainId: this.customerCompanyDomainId
1098
+ }
1099
+ })
1100
+ }
1101
+
1070
1102
  //need to enhance
1071
1103
  async _checkedLotScannedProduct() {
1072
1104
  const response = await this.fetchProductDetail('', this._selectedOrderProduct.product.id)
@@ -1077,23 +1109,28 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
1077
1109
 
1078
1110
  async _checkedScannedProduct() {
1079
1111
  try {
1080
- const response = await this.fetchProductDetail(this.productBarcodeInput?.value || '', '')
1112
+ //fetch any product details that has entered gtin
1113
+ const response = await this.fetchProductDetails(this.productBarcodeInput?.value || '', '')
1081
1114
 
1082
1115
  if (!response.errors) {
1083
- const { product, packingSize, packingType } = response.data.productDetail
1084
- const foundOrderProducts = this.orderProductData.records.filter(
1085
- orderProduct =>
1086
- orderProduct.product.id === product.id &&
1087
- orderProduct.packingType === packingType &&
1088
- orderProduct.packingSize === packingSize
1089
- )
1090
- const foundParentProducts = this.orderProductData.records.filter(
1091
- orderProduct => orderProduct.product.id === product.id
1092
- )
1116
+ let orderProductData = this.orderProductData.records
1117
+ let checkedProductDetails = response.data.checkGtin.items
1118
+
1119
+ //check from grist if any is matched
1120
+ const foundOrderProducts = orderProductData.filter(op => {
1121
+ return checkedProductDetails.some(
1122
+ itm =>
1123
+ itm.product.id == op.product.id && itm.packingType == op.packingType && itm.packingSize == op.packingSize
1124
+ )
1125
+ })
1126
+
1127
+ const foundParentProducts = orderProductData.filter(op => {
1128
+ return checkedProductDetails.some(itm => itm.product.id == op.product.id)
1129
+ })
1093
1130
 
1094
1131
  if (!foundOrderProducts?.length) {
1095
1132
  if (!foundParentProducts?.length) {
1096
- if (this._enableInputQty && !this._isRequireSerialNumberScanningInbound) {
1133
+ if (this._enableInputQty >= 0 && this._enableInputQty < 4 && !this._isRequireSerialNumberScanningInbound) {
1097
1134
  if (this.actualQtyInput?.value) this.actualQtyInput.value = ''
1098
1135
  }
1099
1136
 
@@ -1106,9 +1143,13 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
1106
1143
  throw new Error(i18next.t('text.no_matching_product_found'))
1107
1144
  }
1108
1145
  }
1109
- this._expirationPeriod = product.expirationPeriod
1110
- this._isRequiredCheckExpiry = product.isRequiredCheckExpiry
1111
- this._isRequireSerialNumberScanningInbound = product.isRequireSerialNumberScanningInbound
1146
+
1147
+ const product =
1148
+ foundOrderProducts?.length >= 1
1149
+ ? foundOrderProducts[0].product
1150
+ : foundOrderProducts?.length == 0 && foundParentProducts?.length > 0
1151
+ ? foundParentProducts[0].product
1152
+ : null
1112
1153
 
1113
1154
  if (this._selectedOrderProduct && this._selectedOrderProduct.product.sku !== product.sku)
1114
1155
  this._selectedOrderProduct = null
@@ -1122,8 +1163,14 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
1122
1163
  return foundOrderProducts
1123
1164
  }
1124
1165
  } else if (foundOrderProducts?.length == 1) {
1166
+ this._expirationPeriod = product.expirationPeriod
1167
+ this._isRequiredCheckExpiry = product.isRequiredCheckExpiry
1168
+ this._isRequireSerialNumberScanningInbound = product.isRequireSerialNumberScanningInbound
1125
1169
  this._selectedOrderProduct = foundOrderProducts[0]
1126
1170
  } else if (foundOrderProducts?.length == 0 && foundParentProducts?.length > 0) {
1171
+ this._expirationPeriod = product.expirationPeriod
1172
+ this._isRequiredCheckExpiry = product.isRequiredCheckExpiry
1173
+ this._isRequireSerialNumberScanningInbound = product.isRequireSerialNumberScanningInbound
1127
1174
  this._selectedOrderProduct = foundParentProducts[0]
1128
1175
  }
1129
1176
  }
@@ -1139,7 +1186,10 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
1139
1186
  .orderProducts="${orderProducts}"
1140
1187
  @selected-batch="${async e => {
1141
1188
  this._selectedOrderProduct = e.detail
1142
-
1189
+ this._expirationPeriod = this._selectedOrderProduct.product.expirationPeriod
1190
+ this._isRequiredCheckExpiry = this._selectedOrderProduct.product.isRequiredCheckExpiry
1191
+ this._isRequireSerialNumberScanningInbound =
1192
+ this._selectedOrderProduct.product.isRequireSerialNumberScanningInbound
1143
1193
  if (e.detail.product.isRequireSerialNumberScanningInbound) {
1144
1194
  this._isRequireSerialNumberScanningInbound = true
1145
1195
  if (!this.serialNumberInput.value) {
@@ -1148,7 +1198,7 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
1148
1198
  }
1149
1199
  await this._scanSerialNumberUnload()
1150
1200
  } else {
1151
- if (this._enableProductScanning && !this._enableInputQty) {
1201
+ if (this._enableProductScanning && (this._enableInputQty < 0 || this._enableInputQty > 3)) {
1152
1202
  await this._scanProductUnload()
1153
1203
  } else {
1154
1204
  await this._qtyUnload()
@@ -1216,7 +1266,7 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
1216
1266
 
1217
1267
  let orderProducts = await this._checkedScannedProduct()
1218
1268
 
1219
- if (this._enableInputQty && !this._isRequireSerialNumberScanningInbound) {
1269
+ if (this._enableInputQty >= 0 && this._enableInputQty < 4 && !this._isRequireSerialNumberScanningInbound) {
1220
1270
  if (!parseInt(this.actualQtyInput.value)) {
1221
1271
  this._focusOnActualQtyInput()
1222
1272
  throw new Error(i18next.t('text.enter_qty'))
@@ -420,7 +420,7 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
420
420
  type: 'code',
421
421
  name: 'uom',
422
422
  header: i18next.t('field.uom'),
423
- record: { editable: true, codeName: 'WEIGHT_UNITS' },
423
+ record: { editable: true, codeName: 'UOM' },
424
424
  imex: { header: i18next.t('field.uom'), key: 'uom', width: 25, type: 'array', arrData: uom },
425
425
  sortable: true,
426
426
  width: 80
@@ -1,13 +1,15 @@
1
1
  import '@material/mwc-button/mwc-button'
2
2
  import '@things-factory/grist-ui'
3
+ import './inventory-history-by-pallet'
4
+
5
+ import gql from 'graphql-tag'
6
+ import { css, html, LitElement } from 'lit-element'
7
+
3
8
  import { i18next, localize } from '@things-factory/i18n-base'
4
9
  import { openPopup } from '@things-factory/layout-base'
5
10
  import { client } from '@things-factory/shell'
6
11
  import { ScrollbarStyles } from '@things-factory/styles'
7
12
  import { isMobileDevice } from '@things-factory/utils'
8
- import gql from 'graphql-tag'
9
- import { css, html, LitElement } from 'lit-element'
10
- import './inventory-history-by-pallet'
11
13
 
12
14
  class InventoryByProductDetail extends localize(i18next)(LitElement) {
13
15
  static get styles() {
@@ -54,6 +56,54 @@ class InventoryByProductDetail extends localize(i18next)(LitElement) {
54
56
  }
55
57
 
56
58
  firstUpdated() {
59
+ this._searchFields = [
60
+ {
61
+ label: i18next.t('field.batch_id'),
62
+ name: 'batchId',
63
+ type: 'text',
64
+ props: { searchOper: 'i_like' }
65
+ },
66
+ {
67
+ label: i18next.t('field.lot_id'),
68
+ name: 'palletId',
69
+ type: 'text',
70
+ props: { searchOper: 'i_like' }
71
+ },
72
+ {
73
+ label: i18next.t('field.carton_id'),
74
+ name: 'cartonId',
75
+ type: 'text',
76
+ props: { searchOper: 'i_like' }
77
+ },
78
+ {
79
+ label: i18next.t('field.location'),
80
+ name: 'location',
81
+ type: 'object',
82
+ queryName: 'locations',
83
+ field: 'name'
84
+ },
85
+ {
86
+ label: i18next.t('field.expirying_in'),
87
+ name: 'expiryingIn',
88
+ type: 'select',
89
+ options: [
90
+ { value: '' },
91
+ { name: i18next.t('text.3_months'), value: '3 months' },
92
+ { name: i18next.t('text.6_months'), value: '6 months' },
93
+ { name: i18next.t('text.9_months'), value: '9 months' },
94
+ { name: i18next.t('text.12_months'), value: '12 months' }
95
+ ],
96
+ props: { searchOper: 'eq' }
97
+ },
98
+ {
99
+ label: i18next.t('field.has_balance'),
100
+ name: 'remainOnly',
101
+ type: 'checkbox',
102
+ value: true,
103
+ props: { searchOper: 'eq' }
104
+ }
105
+ ]
106
+
57
107
  this.config = {
58
108
  list: { fields: ['palletId', 'batchId', 'orderRefNo', 'orderNo', 'zone', 'location', 'qty', 'batchIdRef'] },
59
109
  rows: { appendable: false },
@@ -68,39 +118,28 @@ class InventoryByProductDetail extends localize(i18next)(LitElement) {
68
118
  },
69
119
  {
70
120
  type: 'string',
71
- name: 'palletId',
72
- header: i18next.t('field.lot_id'),
73
- sortable: true,
121
+ name: 'batchId',
122
+ header: i18next.t('field.batch_id'),
74
123
  width: 200
75
124
  },
76
125
  {
77
126
  type: 'string',
78
- name: 'cartonId',
79
- header: i18next.t('field.carton_id'),
80
- sortable: true,
127
+ name: 'palletId',
128
+ header: i18next.t('field.lot_id'),
81
129
  width: 200
82
130
  },
83
131
  {
84
132
  type: 'string',
85
- name: 'batchId',
86
- header: i18next.t('field.batch_id'),
87
- sortable: true,
133
+ name: 'cartonId',
134
+ header: i18next.t('field.carton_id'),
88
135
  width: 200
89
136
  },
90
137
  {
91
138
  type: 'string',
92
139
  name: 'packingType',
93
140
  header: i18next.t('field.packing_type'),
94
- sortable: true,
95
141
  width: 200
96
142
  },
97
- {
98
- type: 'string',
99
- name: 'zone',
100
- header: i18next.t('field.zone'),
101
- sortable: true,
102
- width: 80
103
- },
104
143
  {
105
144
  type: 'object',
106
145
  name: 'location',
@@ -108,31 +147,24 @@ class InventoryByProductDetail extends localize(i18next)(LitElement) {
108
147
  sortable: true,
109
148
  width: 200
110
149
  },
111
- {
112
- type: 'number',
113
- name: 'qty',
114
- header: i18next.t('field.qty'),
115
- sortable: true,
116
- width: 80
117
- },
118
150
  {
119
151
  type: 'number',
120
152
  name: 'lockedQty',
121
153
  header: i18next.t('field.release_qty'),
122
- sortable: false,
154
+ sortable: true,
123
155
  width: 160
124
156
  },
125
157
  {
126
158
  type: 'number',
127
- name: 'remainingQty',
128
- header: i18next.t('field.remain_qty'),
159
+ name: 'qty',
160
+ header: i18next.t('field.available_qty'),
129
161
  sortable: true,
130
- width: 160
162
+ width: 80
131
163
  },
132
164
  {
133
165
  type: 'string',
134
166
  name: 'uomValue',
135
- header: i18next.t('field.uom_value'),
167
+ header: i18next.t('field.available_uom_value'),
136
168
  sortable: true,
137
169
  width: 80
138
170
  },
@@ -140,52 +172,24 @@ class InventoryByProductDetail extends localize(i18next)(LitElement) {
140
172
  type: 'string',
141
173
  name: 'batchIdRef',
142
174
  header: i18next.t('field.batch_no_ref'),
175
+ width: 200
176
+ },
177
+ {
178
+ type: 'date',
179
+ name: 'expirationDate',
180
+ header: i18next.t('field.expiry_date'),
181
+ sortable: true,
182
+ width: 200
183
+ },
184
+ {
185
+ type: 'date',
186
+ name: 'manufactureDate',
187
+ header: i18next.t('field.manufacture_date'),
143
188
  sortable: true,
144
189
  width: 200
145
190
  }
146
191
  ]
147
192
  }
148
-
149
- this._searchFields = [
150
- {
151
- label: i18next.t('field.batch_id'),
152
- name: 'batchId',
153
- type: 'text',
154
- props: { searchOper: 'i_like' }
155
- },
156
- {
157
- label: i18next.t('field.lot_id'),
158
- name: 'palletId',
159
- type: 'text',
160
- props: { searchOper: 'i_like' }
161
- },
162
- {
163
- label: i18next.t('field.carton_id'),
164
- name: 'cartonId',
165
- type: 'text',
166
- props: { searchOper: 'i_like' }
167
- },
168
- {
169
- label: i18next.t('field.location'),
170
- name: 'location',
171
- type: 'object',
172
- queryName: 'locations',
173
- field: 'name'
174
- },
175
- {
176
- label: i18next.t('field.zone'),
177
- name: 'zone',
178
- type: 'text',
179
- props: { searchOper: 'i_like' }
180
- },
181
- {
182
- label: i18next.t('field.has_balance'),
183
- name: 'remainOnly',
184
- type: 'checkbox',
185
- value: true,
186
- props: { searchOper: 'eq' }
187
- }
188
- ]
189
193
  }
190
194
 
191
195
  get dataGrist() {
@@ -199,35 +203,38 @@ class InventoryByProductDetail extends localize(i18next)(LitElement) {
199
203
  async fetchHandler({ page, limit, sorters = [] }) {
200
204
  try {
201
205
  if (!this.productId) return
202
- const filters = await this.searchForm.getQueryFilters()
206
+ let filters = await this.searchForm.getQueryFilters()
207
+
208
+ if (filters && filters.length > 2 && filters.find(filter => filter.name == 'remainOnly')) {
209
+ // only supports 2 filters including remainOnly (because its a boolean)
210
+ this._showToast({ type: 'warning', message: i18next.t('text.only_supports_search_of_single_field') })
211
+ return
212
+ } else if (!filters.find(filter => filter.name == 'remainOnly')) {
213
+ // when popup init, it doesnt capture the value of this field
214
+ // hence, we need to push a default value as follows
215
+ filters.push({ name: 'remainOnly', operator: 'eq', value: true })
216
+ }
217
+
203
218
  const response = await client.query({
204
219
  query: gql`
205
220
  query inventories($filters: [Filter!], $pagination: Pagination, $sortings: [Sorting!]) {
206
221
  inventories(filters: $filters, pagination: $pagination, sortings: $sortings) {
207
222
  items {
208
- packingType
223
+ batchId
209
224
  palletId
210
225
  cartonId
211
- batchId
212
- batchIdRef
213
- qty
214
- uomValue
215
- uom
216
- remainQty
217
- warehouse {
218
- name
219
- description
220
- }
221
- zone
226
+ packingType
222
227
  location {
223
228
  name
224
229
  description
225
230
  }
226
- updatedAt
227
- updater {
228
- name
229
- description
230
- }
231
+ uom
232
+ remainQty
233
+ qty
234
+ uomValue
235
+ batchIdRef
236
+ expirationDate
237
+ manufactureDate
231
238
  }
232
239
  total
233
240
  }
@@ -237,7 +244,7 @@ class InventoryByProductDetail extends localize(i18next)(LitElement) {
237
244
  filters: [
238
245
  ...filters,
239
246
  { name: 'product_id', operator: 'eq', value: this.productId },
240
- { name: 'status', operator: 'in', value: ['STORED', 'TERMINATED','MISSING'] }
247
+ { name: 'status', operator: 'in', value: ['STORED', 'TERMINATED', 'MISSING'] }
241
248
  ],
242
249
  pagination: { page, limit },
243
250
  sortings: sorters