@things-factory/operato-wms 4.1.32 → 4.1.35

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 (39) hide show
  1. package/client/pages/inbound/serial-number-list-popup.js +342 -0
  2. package/client/pages/inbound/unload-product.js +218 -39
  3. package/client/pages/inbound/unloaded-inventories-popup.js +7 -0
  4. package/client/pages/inventory/non-loaded-inventory.js +293 -0
  5. package/client/pages/outbound/picking-product.js +61 -36
  6. package/client/pages/outbound/serial-number-popup.js +150 -64
  7. package/client/pages/report/inbound-serial-number-report.js +452 -0
  8. package/client/pages/report/outbound-serial-number-report.js +460 -0
  9. package/client/route.js +11 -0
  10. package/dist-server/graphql/resolvers/reports/inbound-serial-number-report.js +111 -0
  11. package/dist-server/graphql/resolvers/reports/inbound-serial-number-report.js.map +1 -0
  12. package/dist-server/graphql/resolvers/reports/index.js +3 -1
  13. package/dist-server/graphql/resolvers/reports/index.js.map +1 -1
  14. package/dist-server/graphql/resolvers/reports/outbound-serial-number-report.js +116 -0
  15. package/dist-server/graphql/resolvers/reports/outbound-serial-number-report.js.map +1 -0
  16. package/dist-server/graphql/types/reports/inbound-serial-number-report-list.js +14 -0
  17. package/dist-server/graphql/types/reports/inbound-serial-number-report-list.js.map +1 -0
  18. package/dist-server/graphql/types/reports/inbound-serial-number-report.js +23 -0
  19. package/dist-server/graphql/types/reports/inbound-serial-number-report.js.map +1 -0
  20. package/dist-server/graphql/types/reports/index.js +10 -0
  21. package/dist-server/graphql/types/reports/index.js.map +1 -1
  22. package/dist-server/graphql/types/reports/outbound-serial-number-report-list.js +14 -0
  23. package/dist-server/graphql/types/reports/outbound-serial-number-report-list.js.map +1 -0
  24. package/dist-server/graphql/types/reports/outbound-serial-number-report.js +24 -0
  25. package/dist-server/graphql/types/reports/outbound-serial-number-report.js.map +1 -0
  26. package/package.json +6 -6
  27. package/server/graphql/resolvers/reports/inbound-serial-number-report.ts +128 -0
  28. package/server/graphql/resolvers/reports/index.ts +5 -0
  29. package/server/graphql/resolvers/reports/outbound-serial-number-report.ts +133 -0
  30. package/server/graphql/types/reports/inbound-serial-number-report-list.ts +8 -0
  31. package/server/graphql/types/reports/inbound-serial-number-report.ts +17 -0
  32. package/server/graphql/types/reports/index.ts +11 -0
  33. package/server/graphql/types/reports/outbound-serial-number-report-list.ts +8 -0
  34. package/server/graphql/types/reports/outbound-serial-number-report.ts +18 -0
  35. package/things-factory.config.js +12 -0
  36. package/translations/en.json +16 -2
  37. package/translations/ko.json +16 -3
  38. package/translations/ms.json +16 -3
  39. package/translations/zh.json +20 -7
@@ -0,0 +1,460 @@
1
+ import '@things-factory/form-ui'
2
+ import '@things-factory/grist-ui'
3
+ import '../inventory/inventory-by-product-detail'
4
+
5
+ import gql from 'graphql-tag'
6
+ import { css, html } from 'lit-element'
7
+ import { connect } from 'pwa-helpers/connect-mixin'
8
+
9
+ import { i18next, localize } from '@things-factory/i18n-base'
10
+ import { client, gqlContext, PageView, store } from '@things-factory/shell'
11
+ import { flattenObject, isMobileDevice } from '@things-factory/utils'
12
+
13
+ class OutboundSerialNumberReport extends connect(store)(localize(i18next)(PageView)) {
14
+ static get styles() {
15
+ return css`
16
+ :host {
17
+ display: flex;
18
+ flex-direction: column;
19
+ width: 100%;
20
+ }
21
+
22
+ data-grist {
23
+ overflow-y: auto;
24
+ flex: 1;
25
+ }
26
+
27
+ .summary {
28
+ background-color: var(--main-section-background-color);
29
+ display: flex;
30
+ flex-direction: column;
31
+ overflow-y: auto;
32
+ align-items: flex-end;
33
+ padding: var(--data-list-item-padding);
34
+ display: grid;
35
+ font-size: 14px;
36
+ color: #394e64;
37
+ grid-template-columns: repeat(2, 1fr);
38
+ grid-auto-rows: minmax(24px, auto);
39
+ }
40
+ `
41
+ }
42
+
43
+ static get properties() {
44
+ return {
45
+ _searchFields: Object,
46
+ _config: Object,
47
+ _partners: Object,
48
+ _gristData: Object,
49
+ data: Object
50
+ }
51
+ }
52
+
53
+ get context() {
54
+ return {
55
+ title: i18next.t('title.outbound_serial_number_report'),
56
+ printable: {
57
+ accept: ['preview'],
58
+ content: this
59
+ },
60
+ help: 'operato-wms/report/outbound-serial-number-report'
61
+ }
62
+ }
63
+
64
+ get dataGrist() {
65
+ return this.shadowRoot.querySelector('data-grist')
66
+ }
67
+
68
+ get searchForm() {
69
+ return this.shadowRoot.querySelector('search-form')
70
+ }
71
+
72
+ get _bizplaceSelector() {
73
+ return this.searchForm.shadowRoot.querySelector('select[name=bizplace]')
74
+ }
75
+
76
+ get _fromDateInput() {
77
+ return this.searchForm.shadowRoot.querySelector('input[name=fromDate]')
78
+ }
79
+
80
+ get _toDateInput() {
81
+ return this.searchForm.shadowRoot.querySelector('input[name=toDate]')
82
+ }
83
+
84
+ render() {
85
+ return html`
86
+ <search-form id="search-form" .fields=${this._searchFields} @submit=${e => this.dataGrist.fetch()}></search-form>
87
+
88
+ <data-grist
89
+ .mode=${isMobileDevice() ? 'LIST' : 'GRID'}
90
+ .config=${this._config}
91
+ .fetchHandler="${this.fetchHandler.bind(this)}"
92
+ ></data-grist>
93
+ `
94
+ }
95
+
96
+ get searchFields() {
97
+ return [
98
+ {
99
+ label: i18next.t('field.company'),
100
+ name: 'bizplace',
101
+ type: 'select',
102
+ options: [
103
+ { value: '' },
104
+ ...this._partners
105
+ .map(partner => {
106
+ return {
107
+ name: `${partner.name} ${partner.description ? `(${partner.description})` : ''}`,
108
+ value: partner.id
109
+ }
110
+ })
111
+ .sort(this._compareValues('name', 'asc'))
112
+ ],
113
+ props: { searchOper: 'eq' }
114
+ },
115
+ {
116
+ label: i18next.t('field.from_date'),
117
+ name: 'fromDate',
118
+ type: 'date',
119
+ props: {
120
+ searchOper: 'eq',
121
+ max: new Date().toISOString().split('T')[0]
122
+ },
123
+ value: (() => {
124
+ let date = new Date()
125
+ date.setMonth(date.getMonth() - 1)
126
+ return date.toISOString().split('T')[0]
127
+ })(),
128
+ handlers: { change: this._modifyDateRange.bind(this) }
129
+ },
130
+ {
131
+ label: i18next.t('field.to_date'),
132
+ name: 'toDate',
133
+ type: 'date',
134
+ props: {
135
+ searchOper: 'eq',
136
+ min: (() => {
137
+ let date = new Date()
138
+ date.setMonth(date.getMonth() - 1)
139
+ return date.toISOString().split('T')[0]
140
+ })()
141
+ },
142
+ value: new Date().toISOString().split('T')[0],
143
+ handlers: { change: this._submit.bind(this) }
144
+ }
145
+ ]
146
+ }
147
+
148
+ get reportConfig() {
149
+ let columns = [
150
+ {
151
+ type: 'number',
152
+ name: 'no',
153
+ header: i18next.t('field.no'),
154
+ width: 50
155
+ },
156
+ {
157
+ type: 'string',
158
+ name: 'bizplace|name',
159
+ header: i18next.t('field.company'),
160
+ width: 200
161
+ },
162
+ {
163
+ type: 'string',
164
+ name: 'orderNo',
165
+ header: i18next.t('field.order_no'),
166
+ width: 200
167
+ },
168
+ {
169
+ type: 'string',
170
+ name: 'refNo1',
171
+ header: i18next.t('field.ref_no'),
172
+ width: 150
173
+ },
174
+ {
175
+ type: 'string',
176
+ name: 'refNo2',
177
+ header: i18next.t('field.ref_no_2'),
178
+ width: 150
179
+ },
180
+ {
181
+ type: 'string',
182
+ name: 'refNo3',
183
+ header: i18next.t('field.ref_no_3'),
184
+ width: 150
185
+ },
186
+ {
187
+ type: 'string',
188
+ name: 'deliverTo',
189
+ header: i18next.t('field.deliver_to'),
190
+ width: 200
191
+ },
192
+ {
193
+ type: 'string',
194
+ name: 'palletId',
195
+ header: i18next.t('field.lot_id'),
196
+ width: 200
197
+ },
198
+ {
199
+ type: 'string',
200
+ name: 'cartonId',
201
+ header: i18next.t('field.carton_id'),
202
+ width: 200
203
+ },
204
+ {
205
+ type: 'string',
206
+ name: 'product|sku',
207
+ header: i18next.t('field.sku'),
208
+ width: 150
209
+ },
210
+ {
211
+ type: 'string',
212
+ name: 'product|brandSku',
213
+ header: i18next.t('field.brand_sku'),
214
+ width: 150
215
+ },
216
+ {
217
+ type: 'string',
218
+ name: 'product|name',
219
+ header: i18next.t('field.product_name'),
220
+ width: 200
221
+ },
222
+ {
223
+ type: 'string',
224
+ name: 'product|description',
225
+ header: i18next.t('field.product_description'),
226
+ width: 300
227
+ },
228
+ {
229
+ type: 'string',
230
+ name: 'product|type',
231
+ header: i18next.t('field.product_type'),
232
+ width: 150
233
+ },
234
+ {
235
+ type: 'number',
236
+ name: 'product|volume',
237
+ header: i18next.t('field.volume'),
238
+ width: 150
239
+ },
240
+ {
241
+ type: 'string',
242
+ name: 'serialNumber',
243
+ header: i18next.t('field.serial_number'),
244
+ width: 150
245
+ },
246
+ {
247
+ type: 'datetime',
248
+ name: 'etd',
249
+ header: i18next.t('field.etd'),
250
+ width: 170
251
+ }
252
+ ]
253
+ let list = {
254
+ fields: [
255
+ 'no',
256
+ 'bizplace|name',
257
+ 'orderNo',
258
+ 'refNo1',
259
+ 'refNo2',
260
+ 'refNo3',
261
+ 'deliverTo',
262
+ 'palletId',
263
+ 'cartonId',
264
+ 'product|sku',
265
+ 'product|brandSku',
266
+ 'product|name',
267
+ 'product|description',
268
+ 'product|type',
269
+ 'product|volume',
270
+ 'serialNumber',
271
+ 'etd'
272
+ ]
273
+ }
274
+
275
+ return {
276
+ columns: columns,
277
+ list,
278
+ pagination: { limit: 100, pages: [50, 100, 200, 500, 1000] },
279
+ rows: {
280
+ selectable: false,
281
+ insertable: false,
282
+ appendable: false
283
+ }
284
+ }
285
+ }
286
+
287
+ async pageInitialized() {
288
+ this._gristData = { total: 0, records: [] }
289
+ this._partners = [...(await this._fetchPartners())]
290
+
291
+ this._searchFields = this.searchFields
292
+ this._config = this.reportConfig
293
+ }
294
+
295
+ async pageUpdated(changes, lifecycle) {
296
+ if (this.active) {
297
+ this.dataGrist.fetch()
298
+ }
299
+ }
300
+
301
+ async fetchHandler({ page, limit, sorters = [] }) {
302
+ try {
303
+ this._validate()
304
+ let filters = this.searchForm.queryFilters.map(filter => {
305
+ switch (filter.name) {
306
+ case 'fromDate':
307
+ let fromDt = new Date(filter.value)
308
+ fromDt.setHours(0)
309
+ filter.value = fromDt.toISOString()
310
+ break
311
+ case 'toDate':
312
+ let toDt = new Date(filter.value)
313
+ toDt.setHours(23, 59, 59)
314
+ filter.value = toDt.toISOString()
315
+ break
316
+ default:
317
+ break
318
+ }
319
+ return filter
320
+ })
321
+
322
+ const pagination = { page, limit }
323
+ const sortings = sorters
324
+
325
+ const response = await client.query({
326
+ query: gql`
327
+ query outboundSerialNumberReport($filters: [Filter!], $pagination: Pagination, $sortings: [Sorting!]) {
328
+ outboundSerialNumberReport(filters: $filters, pagination: $pagination, sortings: $sortings) {
329
+ items {
330
+ no
331
+ bizplace {
332
+ name
333
+ description
334
+ }
335
+ orderNo
336
+ refNo1
337
+ refNo2
338
+ refNo3
339
+ deliverTo
340
+ palletId
341
+ cartonId
342
+ product {
343
+ id
344
+ sku
345
+ brandSku
346
+ name
347
+ description
348
+ type
349
+ volume
350
+ }
351
+ serialNumber
352
+ etd
353
+ }
354
+ total
355
+ }
356
+ }
357
+ `,
358
+ variables: { filters, pagination, sortings },
359
+ context: gqlContext()
360
+ })
361
+
362
+ const data = {
363
+ total: response.data.outboundSerialNumberReport.total,
364
+ records:
365
+ response.data.outboundSerialNumberReport.items.map(itm => {
366
+ return flattenObject({ ...itm, bizplace: { name: `${itm.bizplace.name} ${itm.bizplace.description}` } })
367
+ }) || []
368
+ }
369
+
370
+ this._gristData = {
371
+ ...data
372
+ }
373
+
374
+ return data
375
+ } catch (e) {
376
+ this._showToast(e)
377
+ }
378
+ }
379
+
380
+ async _fetchPartners() {
381
+ const filters = []
382
+ const response = await client.query({
383
+ query: gql`
384
+ query partnersBizplaces($filters: [Filter!]) {
385
+ partnersBizplaces(filters: $filters) {
386
+ items {
387
+ id
388
+ name
389
+ description
390
+ }
391
+ }
392
+ }
393
+ `,
394
+ variables: { filters }
395
+ })
396
+
397
+ if (!response.errors) {
398
+ return response.data.partnersBizplaces.items
399
+ }
400
+ }
401
+ _validate() {
402
+ if (!this.searchForm.shadowRoot.querySelector('form').checkValidity())
403
+ throw new Error(i18next.t('text.invalid_form_value'))
404
+ if (!this._bizplaceSelector.value) throw new Error(i18next.t('text.no_company_selected'))
405
+ if (!this._fromDateInput.value) throw new Error(i18next.t('text.from_date_is_empty'))
406
+ if (!this._toDateInput.value) throw new Error(i18next.t('text.to_date_is_empty'))
407
+ }
408
+
409
+ _compareValues(key, order = 'asc') {
410
+ return function innerSort(a, b) {
411
+ if (!a.hasOwnProperty(key) || !b.hasOwnProperty(key)) {
412
+ return 0
413
+ }
414
+
415
+ const varA = typeof a[key] === 'string' ? a[key].toUpperCase() : a[key]
416
+ const varB = typeof b[key] === 'string' ? b[key].toUpperCase() : b[key]
417
+
418
+ let comparison = 0
419
+ if (varA > varB) {
420
+ comparison = 1
421
+ } else if (varA < varB) {
422
+ comparison = -1
423
+ }
424
+ return order === 'desc' ? comparison * -1 : comparison
425
+ }
426
+ }
427
+
428
+ _modifyDateRange(e) {
429
+ const fromDate = e.currentTarget.value
430
+
431
+ if (this._toDateInput.value < fromDate) this._toDateInput.value = fromDate
432
+
433
+ let min = new Date(fromDate)
434
+ let today = new Date()
435
+ today.setHours(0, 0, 0, 0)
436
+
437
+ min = min.toISOString().split('T')[0]
438
+
439
+ this._toDateInput.min = min
440
+ this._submit()
441
+ }
442
+
443
+ _submit(e) {
444
+ this._config = { ...this.reportConfig }
445
+ this.searchForm.submit()
446
+ }
447
+
448
+ _showToast({ type, message }) {
449
+ document.dispatchEvent(
450
+ new CustomEvent('notify', {
451
+ detail: {
452
+ type,
453
+ message
454
+ }
455
+ })
456
+ )
457
+ }
458
+ }
459
+
460
+ window.customElements.define('outbound-serial-number-report', OutboundSerialNumberReport)
package/client/route.js CHANGED
@@ -265,6 +265,10 @@ export default function route(page) {
265
265
  import('./pages/inventory/inventory-adjustment-approval')
266
266
  return page
267
267
 
268
+ case 'non_loaded_inventory':
269
+ import('./pages/inventory/non-loaded-inventory')
270
+ return page
271
+
268
272
  case 'create_cycle_count':
269
273
  import('./pages/inventory-check/create-cycle-count')
270
274
  return page
@@ -452,6 +456,13 @@ export default function route(page) {
452
456
  import('./pages/report/product-label-report')
453
457
  return page
454
458
 
459
+ case 'inbound_serial_number_report':
460
+ import('./pages/report/inbound-serial-number-report')
461
+ return page
462
+
463
+ case 'outbound_serial_number_report':
464
+ import('./pages/report/outbound-serial-number-report')
465
+ return page
455
466
  /**
456
467
  * Custom ELCCL Menus Section
457
468
  */
@@ -0,0 +1,111 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.inboundSerialNumberReport = void 0;
4
+ const auth_base_1 = require("@things-factory/auth-base");
5
+ const biz_base_1 = require("@things-factory/biz-base");
6
+ const utils_1 = require("../../../utils");
7
+ exports.inboundSerialNumberReport = {
8
+ async inboundSerialNumberReport(_, params, context) {
9
+ try {
10
+ const { tx } = context.state;
11
+ let bizplaceFilter = { name: '', operator: '', value: '' };
12
+ let userFilter = params.filters.find(data => data.name === 'user');
13
+ let fromDate = params.filters.find(data => data.name === 'fromDate');
14
+ let toDate = params.filters.find(data => data.name === 'toDate');
15
+ let ganNo = params.filters.find(data => data.name === 'ganNo');
16
+ if (userFilter) {
17
+ const user = await tx.getRepository(auth_base_1.User).findOne({
18
+ where: { id: userFilter.value },
19
+ relations: ['bizplaces']
20
+ });
21
+ const bizplace = user.bizplaces[0];
22
+ if (!bizplace)
23
+ throw 'Invalid input';
24
+ bizplaceFilter = { name: 'bizplace', operator: 'eq', value: bizplace.id };
25
+ }
26
+ else {
27
+ bizplaceFilter = params.filters.find(data => data.name === 'bizplace');
28
+ }
29
+ if (!bizplaceFilter || !fromDate || !toDate)
30
+ throw 'Invalid input';
31
+ const bizplace = await tx.getRepository(biz_base_1.Bizplace).findOne({
32
+ id: bizplaceFilter.value
33
+ });
34
+ await (0, utils_1.rawProductsQuery)(tx, params, bizplace);
35
+ let extraQueryFilters = '';
36
+ if (ganNo) {
37
+ extraQueryFilters = `${extraQueryFilters} and order_no like '%${ganNo.value}%' `;
38
+ }
39
+ await tx.query(`
40
+ create temp table temp_inbound_serial_number_report on commit drop as (
41
+ select * from (
42
+ select
43
+ row_number() over(partition by an."name" order by coalesce(w.started_at, ii.created_at), p.sku ) as "no",
44
+ case when "source" = 'ADJUSTMENT' then 'adjustment' else an."name" end as "order_no",
45
+ i.pallet_id, i.carton_id,an.ref_no, an.ref_no_2, an.ref_no_3,
46
+ p.id as "product_id", p.sku as "product_sku", p.brand_sku as "product_brand_sku",
47
+ p.name as "product_name", p.description as "product_description", p."type" as "product_type",
48
+ coalesce(pd.volume, '0') as "product_volume",
49
+ ii.serial_number,
50
+ coalesce(w.started_at,ii.created_at) as "etd"
51
+ from inventory_items ii
52
+ inner join inventories i on i.id = ii.inventory_id
53
+ inner join products p on p.id = i.product_id
54
+ left join product_details pd on pd.product_id = p.id and pd.packing_type = i.packing_type and pd.packing_size = i.packing_size
55
+ left join arrival_notices an on an.id = ii.inbound_order_id::uuid
56
+ left join worksheets w on w.arrival_notice_id = an.id and w.type = 'UNLOADING'
57
+ where
58
+ i.domain_id = $1 and i.bizplace_id = $2
59
+ and coalesce(w.started_at, ii.created_at) between $3 and $4
60
+ order by coalesce(w.started_at, ii.created_at), p.sku
61
+ ) src
62
+ where 1=1
63
+ ${extraQueryFilters}
64
+ )
65
+ `, [context.state.domain.id, bizplace.id, fromDate.value, toDate.value]);
66
+ const total = await tx.query(`
67
+ select count(*) from temp_inbound_serial_number_report
68
+ `);
69
+ const result = await tx.query(`
70
+ select *
71
+ from temp_inbound_serial_number_report
72
+ offset $1 limit $2
73
+ `, [(params.pagination.page - 1) * params.pagination.limit, params.pagination.limit]);
74
+ let items = result.map(itm => {
75
+ let data = {
76
+ no: itm.no,
77
+ bizplace: {
78
+ description: bizplace.description,
79
+ name: bizplace.name
80
+ },
81
+ palletId: itm.pallet_id,
82
+ cartonId: itm.carton_id,
83
+ orderNo: itm.order_no,
84
+ refNo1: itm.ref_no,
85
+ refNo2: itm.ref_no_2,
86
+ refNo3: itm.ref_no_3,
87
+ product: {
88
+ id: itm.product_id,
89
+ sku: itm.product_sku,
90
+ brandSku: itm.product_brand_sku,
91
+ name: itm.product_name,
92
+ description: itm.product_description,
93
+ type: itm.product_type,
94
+ volume: itm.product_volume
95
+ },
96
+ serialNumber: itm.serial_number,
97
+ etd: itm.etd
98
+ };
99
+ return data;
100
+ });
101
+ return {
102
+ items,
103
+ total: total[0].count
104
+ };
105
+ }
106
+ catch (error) {
107
+ throw error;
108
+ }
109
+ }
110
+ };
111
+ //# sourceMappingURL=inbound-serial-number-report.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inbound-serial-number-report.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/reports/inbound-serial-number-report.ts"],"names":[],"mappings":";;;AAEA,yDAAgD;AAChD,uDAAmD;AAGnD,0CAAiD;AAEpC,QAAA,yBAAyB,GAAG;IACvC,KAAK,CAAC,yBAAyB,CAAC,CAAM,EAAE,MAAiB,EAAE,OAAY;QACrE,IAAI;YACF,MAAM,EAAE,EAAE,EAAE,GAA0B,OAAO,CAAC,KAAK,CAAA;YACnD,IAAI,cAAc,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,CAAA;YAC1D,IAAI,UAAU,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,MAAM,CAAC,CAAA;YAClE,IAAI,QAAQ,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,UAAU,CAAC,CAAA;YACpE,IAAI,MAAM,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,QAAQ,CAAC,CAAA;YAChE,IAAI,KAAK,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAA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gBAED,OAAO,IAAI,CAAA;YACb,CAAC,CAAC,CAAA;YAEF,OAAO;gBACL,KAAK;gBACL,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK;aACtB,CAAA;SACF;QAAC,OAAO,KAAK,EAAE;YACd,MAAM,KAAK,CAAA;SACZ;IACH,CAAC;CACF,CAAA"}
@@ -1,8 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Query = void 0;
4
+ const inbound_serial_number_report_1 = require("./inbound-serial-number-report");
5
+ const outbound_serial_number_report_1 = require("./outbound-serial-number-report");
4
6
  const inbound_order_details_report_1 = require("./inbound-order-details-report");
5
7
  const outbound_order_details_report_1 = require("./outbound-order-details-report");
6
8
  const product_label_report_1 = require("./product-label-report");
7
- exports.Query = Object.assign(Object.assign(Object.assign({}, inbound_order_details_report_1.inboundOrderDetailsReport), outbound_order_details_report_1.outboundOrderDetailsReport), product_label_report_1.productLabelReport);
9
+ exports.Query = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, inbound_serial_number_report_1.inboundSerialNumberReport), outbound_serial_number_report_1.outboundSerialNumberReport), inbound_order_details_report_1.inboundOrderDetailsReport), outbound_order_details_report_1.outboundOrderDetailsReport), product_label_report_1.productLabelReport);
8
10
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/reports/index.ts"],"names":[],"mappings":";;;AAAA,iFAA0E;AAC1E,mFAA4E;AAC5E,iEAA2D;AAE9C,QAAA,KAAK,iDACb,wDAAyB,GACzB,0DAA0B,GAC1B,yCAAkB,EACtB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/reports/index.ts"],"names":[],"mappings":";;;AAAA,iFAA0E;AAC1E,mFAA4E;AAE5E,iFAA0E;AAC1E,mFAA4E;AAC5E,iEAA2D;AAE9C,QAAA,KAAK,6EACb,wDAAyB,GACzB,0DAA0B,GAC1B,wDAAyB,GACzB,0DAA0B,GAC1B,yCAAkB,EACtB"}