@things-factory/operato-wms 4.3.38 → 4.3.41

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 (42) hide show
  1. package/client/pages/bulk-operation/bulk-operation.js +13 -2
  2. package/client/pages/bulk-operation/validate-ro-popup.js +40 -0
  3. package/client/pages/inventory/onhand-inventory.js +1 -18
  4. package/client/pages/order/arrival-notice/arrival-notice-detail.js +2 -2
  5. package/client/pages/order/arrival-notice/create-arrival-notice.js +2 -2
  6. package/client/pages/order/goods-received-note/received-note-detail.js +187 -15
  7. package/client/pages/order/release-order/create-release-order.js +500 -6
  8. package/client/pages/order/release-order/release-order-detail.js +760 -169
  9. package/client/pages/order/transport-order/delivery-note-popup.js +970 -126
  10. package/client/pages/order/transport-order/print-delivery-note.js +162 -2
  11. package/client/pages/outbound/loading-product.js +87 -77
  12. package/client/pages/outbound/merged-outbound-worksheet.js +2 -2
  13. package/client/pages/outbound/picking-product.js +11 -7
  14. package/client/pages/outbound/route-label-popup.js +283 -191
  15. package/client/pages/outbound/sorting-product.js +7 -7
  16. package/client/pages/report/inbound-serial-number-report.js +86 -9
  17. package/client/pages/report/inventory-report.js +10 -0
  18. package/client/pages/report/outbound-serial-number-report.js +87 -9
  19. package/dist-server/graphql/resolvers/dashboard/inventory-expiry-monitor.js +10 -5
  20. package/dist-server/graphql/resolvers/dashboard/inventory-expiry-monitor.js.map +1 -1
  21. package/dist-server/graphql/resolvers/dashboard/outbound-order-by-status.js +11 -5
  22. package/dist-server/graphql/resolvers/dashboard/outbound-order-by-status.js.map +1 -1
  23. package/dist-server/graphql/resolvers/reports/inbound-serial-number-report.js +33 -4
  24. package/dist-server/graphql/resolvers/reports/inbound-serial-number-report.js.map +1 -1
  25. package/dist-server/graphql/resolvers/reports/outbound-serial-number-report.js +33 -8
  26. package/dist-server/graphql/resolvers/reports/outbound-serial-number-report.js.map +1 -1
  27. package/dist-server/utils/report-query-util.js +3 -2
  28. package/dist-server/utils/report-query-util.js.map +1 -1
  29. package/helps/release-note.ko.md +10 -12
  30. package/helps/release-note.md +10 -12
  31. package/helps/release-note.ms.md +10 -12
  32. package/helps/release-note.zh.md +10 -12
  33. package/package.json +21 -20
  34. package/server/graphql/resolvers/dashboard/inventory-expiry-monitor.ts +10 -8
  35. package/server/graphql/resolvers/dashboard/outbound-order-by-status.ts +10 -7
  36. package/server/graphql/resolvers/reports/inbound-serial-number-report.ts +34 -4
  37. package/server/graphql/resolvers/reports/outbound-serial-number-report.ts +34 -8
  38. package/server/utils/report-query-util.ts +3 -2
  39. package/translations/en.json +31 -0
  40. package/translations/ko.json +10 -1
  41. package/translations/ms.json +11 -1
  42. package/translations/zh.json +10 -1
@@ -195,6 +195,7 @@ class BulkOperation extends localize(i18next)(PageView) {
195
195
  refNo3: '',
196
196
  releaseDate: '',
197
197
  attentionTo: '',
198
+ attentionCompany: '',
198
199
  deliveryAddress1: '',
199
200
  deliveryAddress2: '',
200
201
  deliveryAddress3: '',
@@ -208,7 +209,12 @@ class BulkOperation extends localize(i18next)(PageView) {
208
209
  packingType: '',
209
210
  packingSize: 0,
210
211
  uom: '',
211
- releaseQty: 0
212
+ releaseQty: 0,
213
+ billingAddress: '',
214
+ billingPostalCode: '',
215
+ billingCountry: '',
216
+ billingState: '',
217
+ billingCity: ''
212
218
  }
213
219
  ]
214
220
  }
@@ -425,7 +431,12 @@ class BulkOperation extends localize(i18next)(PageView) {
425
431
  : null,
426
432
  postalCode: String(record.postalCode || ''),
427
433
  phone1: String(record.phone1 || ''),
428
- exportOption: false
434
+ exportOption: false,
435
+ billingAddress: String(record.billingAddress || ''),
436
+ billingPostalCode: String(record.billingPostalCode || ''),
437
+ billingCountry: String(record.billingCountry || ''),
438
+ billingState: String(record.billingState || ''),
439
+ billingCity: String(record.billingCity || '')
429
440
  }
430
441
  })}
431
442
  .bizplaceId=${this._roBizplaceId}
@@ -148,6 +148,36 @@ class ValidateRoPopup extends localize(i18next)(LitElement) {
148
148
  header: i18next.t('field.delivery_address_4'),
149
149
  width: 150
150
150
  },
151
+ {
152
+ type: 'string',
153
+ name: 'billingAddress',
154
+ header: i18next.t('field.billing_address'),
155
+ width: 150
156
+ },
157
+ {
158
+ type: 'string',
159
+ name: 'billingPostalCode',
160
+ header: i18next.t('field.billing_postal_code'),
161
+ width: 150
162
+ },
163
+ {
164
+ type: 'string',
165
+ name: 'billingCountry',
166
+ header: i18next.t('field.billing_country'),
167
+ width: 150
168
+ },
169
+ {
170
+ type: 'string',
171
+ name: 'billingState',
172
+ header: i18next.t('field.billing_state'),
173
+ width: 150
174
+ },
175
+ {
176
+ type: 'string',
177
+ name: 'billingCity',
178
+ header: i18next.t('field.billing_city'),
179
+ width: 150
180
+ },
151
181
  {
152
182
  type: 'string',
153
183
  name: 'city',
@@ -290,6 +320,11 @@ class ValidateRoPopup extends localize(i18next)(LitElement) {
290
320
  deliveryAddress2
291
321
  deliveryAddress3
292
322
  deliveryAddress4
323
+ billingAddress
324
+ billingCity
325
+ billingPostalCode
326
+ billingState
327
+ billingCountry
293
328
  attentionTo
294
329
  city
295
330
  state
@@ -344,6 +379,11 @@ class ValidateRoPopup extends localize(i18next)(LitElement) {
344
379
  deliveryAddress2: x.deliveryAddress2,
345
380
  deliveryAddress3: x.deliveryAddress3,
346
381
  deliveryAddress4: x.deliveryAddress4,
382
+ billingAddress: x.billingAddress,
383
+ billingCity: x.billingCity,
384
+ billingState: x.billingState,
385
+ billingPostalCode: x.billingPostalCode,
386
+ billingCountry: x.billingCountry,
347
387
  attentionTo: x.attentionTo,
348
388
  city: x.city,
349
389
  state: x.state,
@@ -94,8 +94,6 @@ class OnhandInventory extends connect(store)(localize(i18next)(PageView)) {
94
94
  'location',
95
95
  'remainQty',
96
96
  'expirationDate',
97
- 'nonLoadedQty',
98
- 'nonLoadedUomValue',
99
97
  'uomValue',
100
98
  'uom'
101
99
  ]
@@ -186,18 +184,6 @@ class OnhandInventory extends connect(store)(localize(i18next)(PageView)) {
186
184
  header: i18next.t('field.uom'),
187
185
  width: 80
188
186
  },
189
- {
190
- type: 'number',
191
- name: 'nonLoadedQty',
192
- header: i18next.t('field.non_loaded_qty'),
193
- width: 110
194
- },
195
- {
196
- type: 'float',
197
- name: 'nonLoadedUomValue',
198
- header: i18next.t('field.non_loaded_uom_value'),
199
- width: 110
200
- },
201
187
  {
202
188
  type: 'string',
203
189
  name: 'location_name',
@@ -407,8 +393,6 @@ class OnhandInventory extends connect(store)(localize(i18next)(PageView)) {
407
393
  packingType
408
394
  uom
409
395
  uomValue
410
- nonLoadedQty
411
- nonLoadedUomValue
412
396
  bizplace {
413
397
  id
414
398
  name
@@ -527,11 +511,10 @@ class OnhandInventory extends connect(store)(localize(i18next)(PageView)) {
527
511
  { header: i18next.t('field.qty'), key: 'remainQty', width: 15, type: 'string' },
528
512
  { header: i18next.t('field.total_uom_value'), key: 'uomValue', width: 25, type: 'string' },
529
513
  { header: i18next.t('field.uom'), key: 'uom', width: 15, type: 'string' },
530
- { header: i18next.t('field.non_loaded_qty'), key: 'nonLoadedQty', width: 25, type: 'string' },
531
- { header: i18next.t('field.non_loaded_uom_value'), key: 'nonLoadedUomValue', width: 25, type: 'string' },
532
514
  { header: i18next.t('field.location'), key: 'location_name', width: 25, type: 'string' },
533
515
  { header: i18next.t('field.remark'), key: 'remark', width: 40, type: 'string' },
534
516
  { header: i18next.t('field.exp_date'), key: 'expirationDate', width: 30, type: 'date' },
517
+ { header: i18next.t('field.batch_id'), key: 'batchId', width: 30, type: 'string' },
535
518
  { header: i18next.t('field.batch_no_ref'), key: 'batchIdRef', width: 50, type: 'string' },
536
519
  { header: i18next.t('field.volume_m3'), key: 'volume', width: 25, type: 'float' },
537
520
  { header: i18next.t('field.unit_cost'), key: 'unitCost', width: 25, type: 'float' }
@@ -1308,7 +1308,7 @@ class ArrivalNoticeDetail extends localize(i18next)(PageView) {
1308
1308
  palletQty: record.palletQty,
1309
1309
  printQty: record.palletQty,
1310
1310
  packingType: record.packingType,
1311
- bizplace: this._bizplace
1311
+ bizplace: this._bizplaceName
1312
1312
  }
1313
1313
  })
1314
1314
  }
@@ -1320,7 +1320,7 @@ class ArrivalNoticeDetail extends localize(i18next)(PageView) {
1320
1320
  }
1321
1321
 
1322
1322
  _openCartonLabelPrintPopup() {
1323
- openPopup(html` <carton-label-popup .bizplaceName="${this._bizplace}"></carton-label-popup> `, {
1323
+ openPopup(html` <carton-label-popup .bizplaceName="${this._bizplaceName}"></carton-label-popup> `, {
1324
1324
  backdrop: true,
1325
1325
  size: 'small',
1326
1326
  title: i18next.t('title.carton_label')
@@ -637,7 +637,7 @@ class CreateArrivalNotice extends localize(i18next)(PageView) {
637
637
  display: '',
638
638
  value: ''
639
639
  },
640
- ...this.packingTypes.map(type => {
640
+ ...(this.packingTypes || []).map(type => {
641
641
  return { display: type.name, value: type.name }
642
642
  })
643
643
  ]
@@ -662,7 +662,7 @@ class CreateArrivalNotice extends localize(i18next)(PageView) {
662
662
  display: '',
663
663
  value: ''
664
664
  },
665
- ...this.uomValueUnits.map(unit => {
665
+ ...(this.uomValueUnits || []).map(unit => {
666
666
  return { display: unit.name, value: unit.name }
667
667
  })
668
668
  ]
@@ -11,7 +11,8 @@ class ReceivedNoteDetail extends localize(i18next)(PageView) {
11
11
  return {
12
12
  _grnNo: String,
13
13
  _status: String,
14
- _domainName: String
14
+ _domainName: String,
15
+ _data: Object
15
16
  }
16
17
  }
17
18
 
@@ -54,6 +55,10 @@ class ReceivedNoteDetail extends localize(i18next)(PageView) {
54
55
  return {
55
56
  title: i18next.t('title.goods_received_note_details'),
56
57
  actions,
58
+ exportable: {
59
+ name: i18next.t('title.goods_received_note_details'),
60
+ data: this._exportableData.bind(this)
61
+ },
57
62
  help: 'operato-wms/goods-received-note/received-note-detail'
58
63
  }
59
64
  }
@@ -69,8 +74,7 @@ class ReceivedNoteDetail extends localize(i18next)(PageView) {
69
74
  }
70
75
 
71
76
  if (this._grnNo) {
72
- await this._fetchGRN()
73
- await this._fetchGRNTemplate()
77
+ this._fetchGRNTemplate()
74
78
  }
75
79
 
76
80
  this.updateContext()
@@ -105,30 +109,48 @@ class ReceivedNoteDetail extends localize(i18next)(PageView) {
105
109
  }
106
110
 
107
111
  async _fetchGRN() {
112
+ var timezoneOffSet = new Date().getTimezoneOffset().toString()
113
+
108
114
  if (!this._grnNo) return
109
115
  const response = await client.query({
110
116
  query: gql`
111
- query goodsReceivalNote($name: String!) {
112
- goodsReceivalNote(name: $name) {
113
- id
114
- name
115
- status
116
- domain {
117
- id
118
- name
117
+ query goodsReceivalNote($name: String!, $timezoneOffSet: String!) {
118
+ goodsReceivalNote(name: $name, timezoneOffSet: $timezoneOffSet) {
119
+ grnNo
120
+ ganNo
121
+ refGANNo
122
+ refGANNo2
123
+ refGANNo3
124
+ companyDomain
125
+ supplier
126
+ date
127
+ productLists {
128
+ po
129
+ productSKU
130
+ productName
131
+ productType
132
+ productBatch
133
+ expectedQty
134
+ actualQty
135
+ actualUomValue
136
+ productUom
137
+ expiryDate
138
+ manufactureDate
139
+ remark
140
+ batchNo
141
+ unitPrice
119
142
  }
120
143
  }
121
144
  }
122
145
  `,
123
146
  variables: {
124
- name: this._grnNo
147
+ name: this._grnNo,
148
+ timezoneOffSet: timezoneOffSet
125
149
  }
126
150
  })
127
151
 
128
152
  if (!response.errors) {
129
- const grn = response.data.goodsReceivalNote
130
- this._status = grn.status
131
- this._domainName = grn.domain.name
153
+ return response.data.goodsReceivalNote
132
154
  }
133
155
  }
134
156
 
@@ -166,6 +188,156 @@ class ReceivedNoteDetail extends localize(i18next)(PageView) {
166
188
  // }
167
189
  // }
168
190
 
191
+ async _exportableData() {
192
+ const { grnNo, ganNo, refGANNo, refGANNo2, refGANNo3, companyDomain, supplier, date, productLists } =
193
+ await this._fetchGRN()
194
+
195
+ const exportData = productLists.map(res => {
196
+ return {
197
+ grnNo,
198
+ ganNo,
199
+ refGANNo,
200
+ refGANNo2,
201
+ refGANNo3,
202
+ companyDomain,
203
+ supplier,
204
+ date,
205
+ ...res
206
+ }
207
+ })
208
+
209
+ const headerSetting = [
210
+ {
211
+ header: i18next.t('field.grn'),
212
+ key: 'grnNo',
213
+ width: 25,
214
+ type: 'string'
215
+ },
216
+ {
217
+ header: i18next.t('field.gan'),
218
+ key: 'ganNo',
219
+ width: 25,
220
+ type: 'string'
221
+ },
222
+ {
223
+ header: i18next.t('field.po'),
224
+ key: 'po',
225
+ width: 25,
226
+ type: 'string'
227
+ },
228
+ {
229
+ header: i18next.t('field.ref_no'),
230
+ key: 'refGANNo',
231
+ width: 25,
232
+ type: 'string'
233
+ },
234
+ {
235
+ header: i18next.t('field.ref_no_2'),
236
+ key: 'refGANNo2',
237
+ width: 25,
238
+ type: 'string'
239
+ },
240
+ {
241
+ header: i18next.t('field.ref_no_3'),
242
+ key: 'refGANNo3',
243
+ width: 25,
244
+ type: 'string'
245
+ },
246
+ {
247
+ header: i18next.t('field.company'),
248
+ key: 'companyDomain',
249
+ width: 25,
250
+ type: 'string'
251
+ },
252
+ {
253
+ header: i18next.t('field.supplier'),
254
+ key: 'supplier',
255
+ width: 25,
256
+ type: 'string'
257
+ },
258
+ {
259
+ header: i18next.t('field.date'),
260
+ key: 'date',
261
+ width: 25,
262
+ type: 'string'
263
+ },
264
+ {
265
+ header: i18next.t('field.batch_no'),
266
+ key: 'batchNo',
267
+ width: 25,
268
+ type: 'string'
269
+ },
270
+ {
271
+ header: i18next.t('field.batch_no'),
272
+ key: 'productSKU',
273
+ width: 25,
274
+ type: 'string'
275
+ },
276
+ {
277
+ header: i18next.t('field.product_name'),
278
+ key: 'productName',
279
+ width: 25,
280
+ type: 'string'
281
+ },
282
+ {
283
+ header: i18next.t('field.packing_type'),
284
+ key: 'productType',
285
+ width: 25,
286
+ type: 'string'
287
+ },
288
+ {
289
+ header: i18next.t('field.expected_qty'),
290
+ key: 'expectedQty',
291
+ width: 25,
292
+ type: 'string'
293
+ },
294
+ {
295
+ header: i18next.t('field.actual_qty'),
296
+ key: 'actualQty',
297
+ width: 25,
298
+ type: 'string'
299
+ },
300
+ {
301
+ header: i18next.t('field.actual_uom_value'),
302
+ key: 'actualUomValue',
303
+ width: 25,
304
+ type: 'string'
305
+ },
306
+ {
307
+ header: i18next.t('field.uom'),
308
+ key: 'productUom',
309
+ width: 25,
310
+ type: 'string'
311
+ },
312
+ {
313
+ header: i18next.t('field.expiry_date'),
314
+ key: 'expiryDate',
315
+ width: 25,
316
+ type: 'string'
317
+ },
318
+ {
319
+ header: i18next.t('field.manufacture_date'),
320
+ key: 'manufactureDate',
321
+ width: 25,
322
+ type: 'string'
323
+ },
324
+ {
325
+ header: i18next.t('field.unit_price'),
326
+ key: 'unitPrice',
327
+ width: 25,
328
+ type: 'number'
329
+ },
330
+ {
331
+ header: i18next.t('field.remark_issues'),
332
+ key: 'remark',
333
+ width: 25,
334
+ type: 'string'
335
+ }
336
+ ]
337
+
338
+ return { header: headerSetting, data: exportData }
339
+ }
340
+
169
341
  _showToast({ type, message }) {
170
342
  document.dispatchEvent(
171
343
  new CustomEvent('notify', {