@things-factory/operato-wms 4.3.21 → 4.3.22

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.
@@ -237,7 +237,7 @@ class InventoryByProductDetail extends localize(i18next)(LitElement) {
237
237
  filters: [
238
238
  ...filters,
239
239
  { name: 'product_id', operator: 'eq', value: this.productId },
240
- { name: 'status', operator: 'in', value: ['STORED', 'TERMINATED'] }
240
+ { name: 'status', operator: 'in', value: ['STORED', 'TERMINATED','MISSING'] }
241
241
  ],
242
242
  pagination: { page, limit },
243
243
  sortings: sorters
@@ -94,6 +94,8 @@ class OnhandInventory extends connect(store)(localize(i18next)(PageView)) {
94
94
  'location',
95
95
  'remainQty',
96
96
  'expirationDate',
97
+ 'nonLoadedQty',
98
+ 'nonLoadedUomValue',
97
99
  'uomValue',
98
100
  'uom'
99
101
  ]
@@ -184,6 +186,18 @@ class OnhandInventory extends connect(store)(localize(i18next)(PageView)) {
184
186
  header: i18next.t('field.uom'),
185
187
  width: 80
186
188
  },
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
+ },
187
201
  {
188
202
  type: 'string',
189
203
  name: 'location_name',
@@ -197,6 +211,14 @@ class OnhandInventory extends connect(store)(localize(i18next)(PageView)) {
197
211
  header: i18next.t('field.exp_date'),
198
212
  width: 150
199
213
  },
214
+ {
215
+ type: 'date',
216
+ name: 'manufactureDate',
217
+ header: i18next.t('field.manufacture_date'),
218
+ imex: { header: i18next.t('field.manufacture_date'), key: 'manufactureDate', width: 40, type: 'date' },
219
+ sortable: true,
220
+ width: 120
221
+ },
200
222
  {
201
223
  type: 'string',
202
224
  name: 'batchIdRef',
@@ -385,6 +407,8 @@ class OnhandInventory extends connect(store)(localize(i18next)(PageView)) {
385
407
  packingType
386
408
  uom
387
409
  uomValue
410
+ nonLoadedQty
411
+ nonLoadedUomValue
388
412
  bizplace {
389
413
  id
390
414
  name
@@ -417,6 +441,7 @@ class OnhandInventory extends connect(store)(localize(i18next)(PageView)) {
417
441
  }
418
442
  initialInboundAt
419
443
  expirationDate
444
+ manufactureDate
420
445
  remark
421
446
  unitCost
422
447
  }
@@ -502,6 +527,8 @@ class OnhandInventory extends connect(store)(localize(i18next)(PageView)) {
502
527
  { header: i18next.t('field.qty'), key: 'remainQty', width: 15, type: 'string' },
503
528
  { header: i18next.t('field.total_uom_value'), key: 'uomValue', width: 25, type: 'string' },
504
529
  { 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' },
505
532
  { header: i18next.t('field.location'), key: 'location_name', width: 25, type: 'string' },
506
533
  { header: i18next.t('field.remark'), key: 'remark', width: 40, type: 'string' },
507
534
  { header: i18next.t('field.exp_date'), key: 'expirationDate', width: 30, type: 'date' },
@@ -619,6 +619,7 @@ class CreateCycleCount extends localize(i18next)(PageView) {
619
619
  return {
620
620
  batchId: record?.inventory?.batchId,
621
621
  packingType: record?.inventory?.packingType,
622
+ packingSize: record?.inventory?.packingSize,
622
623
  productId: record?.inventory?.productId,
623
624
  groupType: record?.inventory?.groupType
624
625
  }
@@ -1788,6 +1788,7 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
1788
1788
  return {
1789
1789
  batchId: record?.inventory?.batchId,
1790
1790
  packingType: record?.inventory?.packingType,
1791
+ packingSize: record?.inventory?.packingSize,
1791
1792
  productId: record?.inventory?.productId,
1792
1793
  groupType: record?.inventory?.groupType,
1793
1794
  releaseQty: record.releaseQty || 0,
@@ -612,11 +612,19 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
612
612
  this.inventoryGristConfig = {
613
613
  pagination: { infinite: true },
614
614
  rows: { selectable: { multiple: true }, appendable: false },
615
- list: { fields: ['sku', 'productName', 'batchId', 'packingType', 'releaseQty', 'releaseUomValue'] },
615
+ list: { fields: ['sku', 'productName', 'batchId','invStatus', 'packingType', 'releaseQty', 'releaseUomValue'] },
616
616
  columns: [
617
617
  { name: 'releaseUomValue', hidden: true },
618
618
  { name: 'remainUomValue', hidden: true },
619
619
  { type: 'gutter', gutterName: 'sequence' },
620
+ {
621
+ type: 'boolean',
622
+ name: 'invStatus',
623
+ header: i18next.t('field.missing'),
624
+ imex: { header: i18next.t('field.missing'), key: 'invStatus', width: 20, type: 'string' },
625
+ sortable: true,
626
+ width: 100
627
+ },
620
628
  {
621
629
  type: 'string',
622
630
  name: 'batchId',
@@ -803,6 +811,7 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
803
811
  id
804
812
  name
805
813
  }
814
+ invStatus
806
815
  status
807
816
  refNo
808
817
  refNo2
@@ -930,6 +939,7 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
930
939
  releaseUomValueWithUom: inventoryInfo.releaseUomValue + ' ' + inventoryInfo.uom,
931
940
  remainUomValueWithUom: `${inventoryInfo.uomValue - inventoryInfo.releaseUomValue} ${inventoryInfo.uom}`,
932
941
  status: inventoryInfo.status,
942
+ invStatus: inventoryInfo.status == "MISSING"?true:false,
933
943
  existing: true,
934
944
  roundedUomValue: `${roundedUomValue} ${inventoryInfo.uom}`,
935
945
  addableQty: inventoryInfo.qty - inventoryInfo.lockedQty,
@@ -351,6 +351,7 @@ class CreateVasOrder extends localize(i18next)(PageView) {
351
351
  return {
352
352
  batchId: record.inventory.batchId,
353
353
  packingType: record.inventory.packingType,
354
+ packingSize: record.inventory.packingSize,
354
355
  productId: record.inventory.productId
355
356
  }
356
357
  })
@@ -202,9 +202,9 @@ class ElcclInventorySummaryReport extends connect(store)(localize(i18next)(PageV
202
202
  {
203
203
  type: 'float',
204
204
  name: 'adjustmentQty',
205
- header: i18next.t('field.adjustment_qty'),
205
+ header: i18next.t('field.adjusted_qty'),
206
206
  record: { align: 'center' },
207
- imex: { header: i18next.t('field.adjustment_qty'), key: 'adjustmentQty', width: 25, type: 'string' },
207
+ imex: { header: i18next.t('field.adjusted_qty'), key: 'adjustmentQty', width: 25, type: 'string' },
208
208
  width: 140
209
209
  },
210
210
  {
@@ -260,7 +260,7 @@ class InventorySummaryReport extends connect(store)(localize(i18next)(PageView))
260
260
  {
261
261
  type: 'float',
262
262
  name: 'adjustmentQty',
263
- header: i18next.t('field.adjustment_qty'),
263
+ header: i18next.t('field.adjusted_qty'),
264
264
  record: { align: 'center' },
265
265
  width: 140
266
266
  },
@@ -371,6 +371,7 @@ class InventorySummaryReport extends connect(store)(localize(i18next)(PageView))
371
371
  type
372
372
  }
373
373
  openingQty
374
+ missingQty
374
375
  totalInQty
375
376
  totalOutQty
376
377
  adjustmentQty
@@ -505,7 +506,7 @@ class InventorySummaryReport extends connect(store)(localize(i18next)(PageView))
505
506
  { header: i18next.t('field.packing_size'), key: 'packingSize', width: 25, type: 'string' },
506
507
  { header: i18next.t('field.opening_balance'), key: 'openingQty', width: 25, type: 'string' },
507
508
  { header: i18next.t('field.inbound_qty'), key: 'totalInQty', width: 25, type: 'string' },
508
- { header: i18next.t('field.adjustment_qty'), key: 'adjustmentQty', width: 25, type: 'string' },
509
+ { header: i18next.t('field.adjusted_qty'), key: 'adjustmentQty', width: 25, type: 'string' },
509
510
  { header: i18next.t('field.outbound_qty'), key: 'totalOutQty', width: 25, type: 'string' },
510
511
  { header: i18next.t('field.closing_balance'), key: 'closingQty', width: 25, type: 'string' }
511
512
  ]
@@ -0,0 +1,606 @@
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, PageView, store } from '@things-factory/shell'
11
+ import { flattenObject, isMobileDevice } from '@things-factory/utils'
12
+
13
+ class VolumeSummaryReport 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
+ search-form {
23
+ overflow: visible;
24
+ }
25
+ data-grist {
26
+ overflow-y: auto;
27
+ flex: 1;
28
+ }
29
+
30
+ #total {
31
+ height: 70%;
32
+ }
33
+
34
+ data-grist#summary-grist {
35
+ padding-top: 0px;
36
+ height: 100%;
37
+ }
38
+
39
+ .summary {
40
+ background-color: var(--main-section-background-color);
41
+ display: flex;
42
+ flex-direction: column;
43
+ overflow-y: auto;
44
+ align-items: flex-end;
45
+ padding: var(--data-list-item-padding);
46
+ display: grid;
47
+ font-size: 14px;
48
+ color: #394e64;
49
+ grid-template-columns: repeat(2, 1fr);
50
+ grid-auto-rows: minmax(24px, auto);
51
+ }
52
+ `
53
+ }
54
+
55
+ static get properties() {
56
+ return {
57
+ _searchFields: Object,
58
+ _config: Object,
59
+ _totalConfig: Object,
60
+ _partners: Object,
61
+ _gristData: Object,
62
+ _totalGristData: Object,
63
+ data: Object
64
+ }
65
+ }
66
+
67
+ get context() {
68
+ return {
69
+ title: i18next.t('title.volume_summary_report'),
70
+ printable: {
71
+ accept: ['preview'],
72
+ content: this
73
+ },
74
+ exportable: {
75
+ name: i18next.t('title.volume_summary_report'),
76
+ data: this._exportableData.bind(this)
77
+ },
78
+ help: 'operato-wms/report/volume-summary-report'
79
+ }
80
+ }
81
+
82
+ get dataGrist() {
83
+ return this.shadowRoot.querySelector('data-grist')
84
+ }
85
+
86
+ get searchForm() {
87
+ return this.shadowRoot.querySelector('search-form')
88
+ }
89
+
90
+ get _bizplaceSelector() {
91
+ return this.searchForm.shadowRoot.querySelector('select[name=bizplace]')
92
+ }
93
+
94
+ get _fromDateInput() {
95
+ return this.searchForm.shadowRoot.querySelector('input[name=fromDate]')
96
+ }
97
+
98
+ get _toDateInput() {
99
+ return this.searchForm.shadowRoot.querySelector('input[name=toDate]')
100
+ }
101
+
102
+ render() {
103
+ return html`
104
+ <search-form id="search-form" .fields=${this._searchFields} @submit=${e => this.dataGrist.fetch()}></search-form>
105
+
106
+ <div id="total">
107
+ <data-grist
108
+ id="summary-grist"
109
+ .mode=${isMobileDevice() ? 'LIST' : 'GRID'}
110
+ .config=${this._config}
111
+ .fetchHandler="${this.fetchHandler.bind(this)}"
112
+ .data=${this._gristData}
113
+ ></data-grist>
114
+ </div>
115
+
116
+ <data-grist
117
+ .mode=${isMobileDevice() ? 'LIST' : 'GRID'}
118
+ .config=${this._totalConfig}
119
+ .data=${this._totalGristData}
120
+ ></data-grist>
121
+ `
122
+ }
123
+
124
+ get searchFields() {
125
+ return [
126
+ {
127
+ label: i18next.t('field.company'),
128
+ name: 'bizplace',
129
+ type: 'select',
130
+ options: [
131
+ { value: '' },
132
+ ...this._partners
133
+ .map(partner => {
134
+ return {
135
+ name: `${partner.name} ${partner.description ? `(${partner.description})` : ''}`,
136
+ value: partner.id
137
+ }
138
+ })
139
+ .sort(this._compareValues('name', 'asc'))
140
+ ],
141
+ props: { searchOper: 'eq' }
142
+ },
143
+ {
144
+ label: i18next.t('field.from_date'),
145
+ name: 'fromDate',
146
+ type: 'date',
147
+ props: {
148
+ searchOper: 'eq',
149
+ max: new Date().toISOString().split('T')[0]
150
+ },
151
+ value: (() => {
152
+ let date = new Date()
153
+ date.setMonth(date.getMonth() - 1)
154
+ return date.toISOString().split('T')[0]
155
+ })(),
156
+ handlers: { change: this._modifyDateRange.bind(this) }
157
+ },
158
+ {
159
+ label: i18next.t('field.to_date'),
160
+ name: 'toDate',
161
+ type: 'date',
162
+ props: {
163
+ searchOper: 'eq',
164
+ min: (() => {
165
+ let date = new Date()
166
+ date.setMonth(date.getMonth() - 1)
167
+ return date.toISOString().split('T')[0]
168
+ })(),
169
+ max: (() => {
170
+ var max = new Date()
171
+ max.setMonth(max.getMonth())
172
+ return max.toISOString().split('T')[0]
173
+ })()
174
+ },
175
+ value: new Date().toISOString().split('T')[0],
176
+ handlers: { change: this._submit.bind(this) }
177
+ }
178
+ ]
179
+ }
180
+
181
+ get reportConfig() {
182
+ let columns = [
183
+ { type: 'gutter', gutterName: 'sequence' },
184
+ {
185
+ type: 'date',
186
+ name: 'date',
187
+ header: i18next.t('field.date'),
188
+ width: 100
189
+ },
190
+ {
191
+ type: 'number',
192
+ name: 'openingQty',
193
+ header: i18next.t('field.opening_qty'),
194
+ width: 100
195
+ },
196
+ {
197
+ type: 'float',
198
+ name: 'openingVolume',
199
+ header: i18next.t('field.opening_volume'),
200
+ width: 100
201
+ },
202
+ {
203
+ type: 'number',
204
+ name: 'inboundQty',
205
+ header: i18next.t('field.inbound_qty'),
206
+ width: 100
207
+ },
208
+ {
209
+ type: 'float',
210
+ name: 'inboundVolume',
211
+ header: i18next.t('field.inbound_volume'),
212
+ width: 100
213
+ },
214
+ {
215
+ type: 'number',
216
+ name: 'adjustedQty',
217
+ header: i18next.t('field.adjusted_qty'),
218
+ width: 100
219
+ },
220
+ {
221
+ type: 'float',
222
+ name: 'adjustedVolume',
223
+ header: i18next.t('field.adjusted_volume'),
224
+ width: 100
225
+ },
226
+ {
227
+ type: 'number',
228
+ name: 'missingQty',
229
+ header: i18next.t('field.missing_qty'),
230
+ width: 100
231
+ },
232
+ {
233
+ type: 'float',
234
+ name: 'missingVolume',
235
+ header: i18next.t('field.missing_volume'),
236
+ width: 100
237
+ },
238
+ {
239
+ type: 'number',
240
+ name: 'outboundQty',
241
+ header: i18next.t('field.outbound_qty'),
242
+ width: 100
243
+ },
244
+ {
245
+ type: 'float',
246
+ name: 'outboundVolume',
247
+ header: i18next.t('field.outbound_volume'),
248
+ width: 100
249
+ },
250
+ {
251
+ type: 'number',
252
+ name: 'closingQty',
253
+ header: i18next.t('field.closing_qty'),
254
+ width: 100
255
+ },
256
+ {
257
+ type: 'float',
258
+ name: 'closingVolume',
259
+ header: i18next.t('field.closing_volume'),
260
+ width: 100
261
+ }
262
+ ]
263
+
264
+ return {
265
+ list: {
266
+ fields: [
267
+ 'date',
268
+ 'openingQty',
269
+ 'openingVolume',
270
+ 'inboundQty',
271
+ 'inboundVolume',
272
+ 'adjustmentQty',
273
+ 'adjustmentVolume',
274
+ 'missingQty',
275
+ 'missingVolume',
276
+ 'closingQty',
277
+ 'closingVolume'
278
+ ]
279
+ },
280
+ pagination: { limit: 50, pages: [50, 100, 200, 500, 1000] },
281
+ rows: {
282
+ selectable: false,
283
+ insertable: false,
284
+ appendable: false
285
+ },
286
+ columns: columns
287
+ }
288
+ }
289
+
290
+ get totalConfig() {
291
+ let columns = [
292
+ {
293
+ type: 'string',
294
+ name: 'name',
295
+ header: '',
296
+ width: 100
297
+ },
298
+ {
299
+ type: 'float',
300
+ name: 'opening',
301
+ header: i18next.t('field.opening'),
302
+ width: 100
303
+ },
304
+ {
305
+ type: 'float',
306
+ name: 'inbound',
307
+ header: i18next.t('field.inbound'),
308
+ width: 100
309
+ },
310
+ {
311
+ type: 'float',
312
+ name: 'adjustment',
313
+ header: i18next.t('field.adjusted'),
314
+ width: 100
315
+ },
316
+ {
317
+ type: 'float',
318
+ name: 'missing',
319
+ header: i18next.t('field.missing'),
320
+ width: 100
321
+ },
322
+ {
323
+ type: 'float',
324
+ name: 'outbound',
325
+ header: i18next.t('field.outbound'),
326
+ width: 100
327
+ },
328
+ {
329
+ type: 'float',
330
+ name: 'closing',
331
+ header: i18next.t('field.closing'),
332
+ width: 100
333
+ }
334
+ ]
335
+
336
+ return {
337
+ list: {
338
+ fields: [
339
+ 'totalopeningQty',
340
+ 'totalopeningVolume',
341
+ 'totalinboundQty',
342
+ 'totalinboundVolume',
343
+ 'totaladjustmentQty',
344
+ 'totaladjustmentVolume',
345
+ 'totalmissingQty',
346
+ 'totalmissingVolume',
347
+ 'totalclosingQty',
348
+ 'totalclosingVolume'
349
+ ]
350
+ },
351
+ pagination: { infinite: true },
352
+ rows: {
353
+ selectable: false,
354
+ insertable: false,
355
+ appendable: false
356
+ },
357
+ columns: columns
358
+ }
359
+ }
360
+
361
+ async pageInitialized() {
362
+ this._gristData = { total: 0, records: [] }
363
+ this._totalGristData = { total: 0, records: [] }
364
+ this._partners = [...(await this._fetchPartners())]
365
+
366
+ this._searchFields = this.searchFields
367
+ this._config = this.reportConfig
368
+ this._totalConfig = this.totalConfig
369
+ }
370
+
371
+ pageUpdated(changes, lifecycle) {
372
+ if (this.active) {
373
+ this.dataGrist.fetch()
374
+ }
375
+ }
376
+
377
+ async fetchHandler({ page, limit, sorters = [] }) {
378
+ try {
379
+ this._validate()
380
+ let filter = this.searchForm.queryFilters
381
+ const response = await client.query({
382
+ query: gql`
383
+ query inventoryHistoryVolumeSummaryReport(
384
+ $filters: [Filter!]
385
+ $pagination: Pagination
386
+ $sortings: [Sorting!]
387
+ ) {
388
+ inventoryHistoryVolumeSummaryReport(filters: $filters, pagination: $pagination, sortings: $sortings) {
389
+ items {
390
+ date
391
+ openingQty
392
+ openingVolume
393
+ inboundQty
394
+ inboundVolume
395
+ adjustedQty
396
+ adjustedVolume
397
+ missingQty
398
+ missingVolume
399
+ outboundQty
400
+ outboundVolume
401
+ closingQty
402
+ closingVolume
403
+ }
404
+ total
405
+ totalOpeningQty
406
+ totalOpeningVolume
407
+ totalInboundQty
408
+ totalInboundVolume
409
+ totalAdjustedQty
410
+ totalAdjustedVolume
411
+ totalMissingQty
412
+ totalMissingVolume
413
+ totalOutboundQty
414
+ totalOutboundVolume
415
+ totalClosingQty
416
+ totalClosingVolume
417
+ }
418
+ }
419
+ `,
420
+ variables: { filters: filter, pagination: { page, limit }, sortings: sorters }
421
+ })
422
+
423
+ if (!response.errors) {
424
+ const report = response.data.inventoryHistoryVolumeSummaryReport
425
+
426
+ const data = {
427
+ total: report.total,
428
+ records: report.items.map(itm => {
429
+ return {
430
+ ...itm,
431
+ openingQty: itm.openingQty || 0,
432
+ inboundQty: itm.inboundQty || 0,
433
+ adjustedQty: itm.adjustedQty || 0,
434
+ missingQty: itm.missingQty || 0,
435
+ outboundQty: itm.outboundQty || 0,
436
+ closingQty: itm.closingQty || 0,
437
+ openingVolume: parseFloat(itm.openingVolume || 0).toFixed(2),
438
+ inboundVolume: parseFloat(itm.inboundVolume || 0).toFixed(2),
439
+ adjustedVolume: parseFloat(itm.adjustedVolume || 0).toFixed(2),
440
+ missingVolume: parseFloat(itm.missingVolume || 0).toFixed(2),
441
+ outboundVolume: parseFloat(itm.outboundVolume || 0).toFixed(2),
442
+ closingVolume: parseFloat(itm.closingVolume || 0).toFixed(2)
443
+ }
444
+ })
445
+ }
446
+
447
+ this._gristData = {
448
+ ...data
449
+ }
450
+
451
+ this._totalGristData = {
452
+ total: 2,
453
+ records: [
454
+ {
455
+ name: 'Quantity',
456
+ opening: report.totalOpeningQty || 0,
457
+ inbound: report.totalInboundQty || 0,
458
+ adjustment: report.totalAdjustedQty || 0,
459
+ missing: report.totalMissingQty || 0,
460
+ outbound: report.totalOutboundQty || 0,
461
+ closing: report.totalClosingQty || 0
462
+ },
463
+ {
464
+ name: 'Volume',
465
+ opening: parseFloat(report.totalOpeningVolume || 0).toFixed(2),
466
+ inbound: parseFloat(report.totalInboundVolume || 0).toFixed(2),
467
+ adjustment: parseFloat(report.totalAdjustedVolume || 0).toFixed(2),
468
+ missing: parseFloat(report.totalMissingVolume || 0).toFixed(2),
469
+ outbound: parseFloat(report.totalOutboundVolume || 0).toFixed(2),
470
+ closing: parseFloat(report.totalClosingVolume || 0).toFixed(2)
471
+ }
472
+ ]
473
+ }
474
+
475
+ return data
476
+ } else {
477
+ this._gristData = { total: 0, records: [] }
478
+ this._totalGristData = { total: 0, records: [] }
479
+ }
480
+ } catch (e) {
481
+ this._showToast(e)
482
+ }
483
+ }
484
+
485
+ async _fetchPartners() {
486
+ const filters = []
487
+ const response = await client.query({
488
+ query: gql`
489
+ query partnersBizplaces($filters: [Filter!]) {
490
+ partnersBizplaces(filters: $filters) {
491
+ items {
492
+ id
493
+ name
494
+ description
495
+ company {
496
+ id
497
+ domainId
498
+ }
499
+ }
500
+ }
501
+ }
502
+ `,
503
+ variables: { filters }
504
+ })
505
+
506
+ if (!response.errors) {
507
+ return response.data.partnersBizplaces.items
508
+ }
509
+ }
510
+ _validate() {
511
+ if (!this.searchForm.shadowRoot.querySelector('form').checkValidity())
512
+ throw new Error(i18next.t('text.invalid_form_value'))
513
+ if (!this._bizplaceSelector.value) throw new Error(i18next.t('text.no_company_selected'))
514
+ if (!this._fromDateInput.value) throw new Error(i18next.t('text.from_date_is_empty'))
515
+ if (!this._toDateInput.value) throw new Error(i18next.t('text.to_date_is_empty'))
516
+ }
517
+
518
+ _compareValues(key, order = 'asc') {
519
+ return function innerSort(a, b) {
520
+ if (!a.hasOwnProperty(key) || !b.hasOwnProperty(key)) {
521
+ return 0
522
+ }
523
+
524
+ const varA = typeof a[key] === 'string' ? a[key].toUpperCase() : a[key]
525
+ const varB = typeof b[key] === 'string' ? b[key].toUpperCase() : b[key]
526
+
527
+ let comparison = 0
528
+ if (varA > varB) {
529
+ comparison = 1
530
+ } else if (varA < varB) {
531
+ comparison = -1
532
+ }
533
+ return order === 'desc' ? comparison * -1 : comparison
534
+ }
535
+ }
536
+
537
+ _modifyDateRange(e) {
538
+ const fromDate = e.currentTarget.value
539
+
540
+ if (this._toDateInput.value < fromDate) this._toDateInput.value = fromDate
541
+
542
+ let min = new Date(fromDate)
543
+ let max = new Date(fromDate)
544
+ max.setMonth(max.getMonth() + 1)
545
+
546
+ let today = new Date()
547
+ today.setHours(0, 0, 0, 0)
548
+
549
+ min = min.toISOString().split('T')[0]
550
+ max = max.toISOString().split('T')[0]
551
+
552
+ if (this._toDateInput.value > max) this._toDateInput.value = max
553
+
554
+ this._toDateInput.min = min
555
+ this._toDateInput.max = max
556
+ this._submit()
557
+ }
558
+
559
+ _submit(e) {
560
+ this._config = { ...this.reportConfig }
561
+ this._totalConfig = { ...this.totalConfig }
562
+ this.searchForm.submit()
563
+ }
564
+
565
+ async _exportableData() {
566
+ try {
567
+ var headerSetting = [
568
+ { header: i18next.t('field.date'), key: 'date', width: 30, type: 'date' },
569
+ { header: i18next.t('field.opening_qty'), key: 'openingQty', width: 30, type: 'int' },
570
+ { header: i18next.t('field.opening_volume'), key: 'openingVolume', width: 30, type: 'float' },
571
+ { header: i18next.t('field.inbound_qty'), key: 'inboundQty', width: 30, type: 'int' },
572
+ { header: i18next.t('field.inbound_volume'), key: 'inboundVolume', width: 30, type: 'float' },
573
+ { header: i18next.t('field.adjusted_qty'), key: 'adjustedQty', width: 30, type: 'int' },
574
+ { header: i18next.t('field.adjusted_volume'), key: 'adjustedVolume', width: 30, type: 'float' },
575
+ { header: i18next.t('field.missing_qty'), key: 'missingQty', width: 30, type: 'int' },
576
+ { header: i18next.t('field.missing_volume'), key: 'missingVolume', width: 30, type: 'float' },
577
+ { header: i18next.t('field.outbound_qty'), key: 'outboundQty', width: 30, type: 'int' },
578
+ { header: i18next.t('field.outbound_volume'), key: 'outboundVolume', width: 30, type: 'float' },
579
+ { header: i18next.t('field.closing_qty'), key: 'closingQty', width: 30, type: 'int' },
580
+ { header: i18next.t('field.closing_volume'), key: 'closingVolume', width: 30, type: 'float' }
581
+ ]
582
+
583
+ var exportData = {
584
+ header: [...headerSetting],
585
+ data: (await this.fetchHandler({ page: 1, limit: 9999999 })).records
586
+ }
587
+
588
+ return exportData
589
+ } catch (e) {
590
+ this._showToast(e)
591
+ }
592
+ }
593
+
594
+ _showToast({ type, message }) {
595
+ document.dispatchEvent(
596
+ new CustomEvent('notify', {
597
+ detail: {
598
+ type,
599
+ message
600
+ }
601
+ })
602
+ )
603
+ }
604
+ }
605
+
606
+ window.customElements.define('volume-summary-report', VolumeSummaryReport)
package/client/route.js CHANGED
@@ -440,6 +440,10 @@ export default function route(page) {
440
440
  import('./pages/report/inventory-summary-report')
441
441
  return page
442
442
 
443
+ case 'volume_summary_report':
444
+ import('./pages/report/volume-summary-report')
445
+ return page
446
+
443
447
  case 'inventory_pallet_report':
444
448
  import('./pages/report/inventory-pallet-report')
445
449
  return page
@@ -41,12 +41,19 @@ exports.warehouseInventoryAdjustment = {
41
41
  where: { inventory: (0, typeorm_1.In)(invId), status: 'PICKING' }
42
42
  });
43
43
  await tx.getRepository(sales_base_1.OrderInventory).update({
44
- inventory: (0, typeorm_1.In)(invId), status: "PICKING"
44
+ inventory: (0, typeorm_1.In)(invId),
45
+ status: 'PICKING'
45
46
  }, { status: 'MISSING' });
46
47
  const orderInvId = orderInventory.map((oi) => oi.id);
48
+ const releaseGoodId = orderInventory.map((roId) => roId.releaseGoodId);
47
49
  await tx.getRepository(worksheet_base_1.WorksheetDetail).update({
48
- targetInventory: (0, typeorm_1.In)(orderInvId), status: "EXECUTING"
50
+ targetInventory: (0, typeorm_1.In)(orderInvId),
51
+ status: 'EXECUTING'
49
52
  }, { status: 'MISSING' });
53
+ await tx.getRepository(worksheet_base_1.Worksheet).update({
54
+ releaseGood: (0, typeorm_1.In)(releaseGoodId),
55
+ status: 'EXECUTING'
56
+ }, { status: 'DEACTIVATED' });
50
57
  }
51
58
  return item;
52
59
  }
@@ -1 +1 @@
1
- {"version":3,"file":"warehouse-intentory-adjustment.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/warehouse-inventory-adjustment/warehouse-intentory-adjustment.ts"],"names":[],"mappings":";;;AACA,mEAAyF;AACzF,qCAAyC;AACzC,2DAA2D;AAC3D,mEAAgE;AAEnD,QAAA,4BAA4B,GAAG;IAC1C,KAAK,CAAC,4BAA4B,CAAC,CAAM,EAAE,EAAE,OAAO,EAAE,EAAE,OAAY;QAClE,IAAI;YACF,MAAM,IAAI,GAAG,MAAM,IAAA,wCAAuB,EAAC,OAAO,EAAE,OAAO,CAAC,CAAA;YAE5D,2BAA2B;YAC3B,MAAM,EAAE,EAAE,EAAE,GAA0B,OAAO,CAAC,KAAK,CAAA;YAEnD,MAAM,iBAAiB,GAAG,MAAM,EAAE,CAAC,aAAa,CAAC,gCAAe,CAAC,CAAC,IAAI,CAAC;gBACrE,KAAK,EAAE,EAAE,EAAE,EAAE,IAAA,YAAE,EAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,EAAE;gBAC/C,SAAS,EAAE;oBACT,WAAW;oBACX,oBAAoB;oBACpB,2BAA2B;oBAC3B,mBAAmB;oBACnB,oBAAoB;oBACpB,qBAAqB;oBACrB,UAAU;oBACV,iBAAiB;oBACjB,kBAAkB;oBAClB,yBAAyB;oBACzB,SAAS;oBACT,wBAAwB;oBACxB,2CAA2C;oBAC3C,UAAU;iBACX;gBACD,KAAK,EAAE;oBACL,SAAS,EAAE,KAAK;iBACjB;aACF,CAAC,CAAA;YAEF,IAAI,iBAAiB,CAAC,MAAM,GAAG,CAAC,EAAE;gBAChC,MAAM,KAAK,GAAU,iBAAiB;qBACnC,MAAM,CAAC,CAAC,EAAO,EAAE,EAAE,CAAC,EAAE,CAAC,eAAe,IAAI,SAAS,CAAC;qBACpD,GAAG,CAAC,CAAC,EAAO,EAAE,EAAE,CAAC,EAAE,CAAC,SAAS,CAAC,EAAE,CAAC,CAAA;gBAEpC,MAAM,cAAc,GAAqB,MAAM,EAAE,CAAC,aAAa,CAAC,2BAAc,CAAC,CAAC,IAAI,CAAC;oBACnF,KAAK,EAAE,EAAE,SAAS,EAAE,IAAA,YAAE,EAAC,KAAK,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE;iBACnD,CAAC,CAAA;gBAEF,MAAM,EAAE,CAAC,aAAa,CAAC,2BAAc,CAAC,CAAC,MAAM,CAC3C;oBACE,SAAS,EAAE,IAAA,YAAE,EAAC,KAAK,CAAC,EAAC,MAAM,EAAC,SAAS;iBACtC,EACD,EAAE,MAAM,EAAE,SAAS,EAAE,CACtB,CAAA;gBAED,MAAM,UAAU,GAAU,cAAc,CAAC,GAAG,CAAC,CAAC,EAAO,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAA;gBAEhE,MAAM,EAAE,CAAC,aAAa,CAAC,gCAAe,CAAC,CAAC,MAAM,CAC5C;oBACE,eAAe,EAAE,IAAA,YAAE,EAAC,UAAU,CAAC,EAAC,MAAM,EAAC,WAAW;iBACnD,EACD,EAAE,MAAM,EAAE,SAAS,EAAE,CACtB,CAAA;aACF;YACD,OAAO,IAAI,CAAA;SACZ;QAAC,OAAO,KAAK,EAAE;YACd,MAAM,KAAK,CAAA;SACZ;IACH,CAAC;CACF,CAAA"}
1
+ {"version":3,"file":"warehouse-intentory-adjustment.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/warehouse-inventory-adjustment/warehouse-intentory-adjustment.ts"],"names":[],"mappings":";;;AACA,mEAAyF;AACzF,qCAAyC;AACzC,2DAAwE;AACxE,mEAA2E;AAE9D,QAAA,4BAA4B,GAAG;IAC1C,KAAK,CAAC,4BAA4B,CAAC,CAAM,EAAE,EAAE,OAAO,EAAE,EAAE,OAAY;QAClE,IAAI;YACF,MAAM,IAAI,GAAG,MAAM,IAAA,wCAAuB,EAAC,OAAO,EAAE,OAAO,CAAC,CAAA;YAE5D,2BAA2B;YAC3B,MAAM,EAAE,EAAE,EAAE,GAA0B,OAAO,CAAC,KAAK,CAAA;YAEnD,MAAM,iBAAiB,GAAG,MAAM,EAAE,CAAC,aAAa,CAAC,gCAAe,CAAC,CAAC,IAAI,CAAC;gBACrE,KAAK,EAAE,EAAE,EAAE,EAAE,IAAA,YAAE,EAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,EAAE;gBAC/C,SAAS,EAAE;oBACT,WAAW;oBACX,oBAAoB;oBACpB,2BAA2B;oBAC3B,mBAAmB;oBACnB,oBAAoB;oBACpB,qBAAqB;oBACrB,UAAU;oBACV,iBAAiB;oBACjB,kBAAkB;oBAClB,yBAAyB;oBACzB,SAAS;oBACT,wBAAwB;oBACxB,2CAA2C;oBAC3C,UAAU;iBACX;gBACD,KAAK,EAAE;oBACL,SAAS,EAAE,KAAK;iBACjB;aACF,CAAC,CAAA;YAEF,IAAI,iBAAiB,CAAC,MAAM,GAAG,CAAC,EAAE;gBAChC,MAAM,KAAK,GAAU,iBAAiB;qBACnC,MAAM,CAAC,CAAC,EAAO,EAAE,EAAE,CAAC,EAAE,CAAC,eAAe,IAAI,SAAS,CAAC;qBACpD,GAAG,CAAC,CAAC,EAAO,EAAE,EAAE,CAAC,EAAE,CAAC,SAAS,CAAC,EAAE,CAAC,CAAA;gBAEpC,MAAM,cAAc,GAAqB,MAAM,EAAE,CAAC,aAAa,CAAC,2BAAc,CAAC,CAAC,IAAI,CAAC;oBACnF,KAAK,EAAE,EAAE,SAAS,EAAE,IAAA,YAAE,EAAC,KAAK,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE;iBACnD,CAAC,CAAA;gBAEF,MAAM,EAAE,CAAC,aAAa,CAAC,2BAAc,CAAC,CAAC,MAAM,CAC3C;oBACE,SAAS,EAAE,IAAA,YAAE,EAAC,KAAK,CAAC;oBACpB,MAAM,EAAE,SAAS;iBAClB,EACD,EAAE,MAAM,EAAE,SAAS,EAAE,CACtB,CAAA;gBAED,MAAM,UAAU,GAAU,cAAc,CAAC,GAAG,CAAC,CAAC,EAAO,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAA;gBAChE,MAAM,aAAa,GAAU,cAAc,CAAC,GAAG,CAAC,CAAC,IAAS,EAAE,EAAE,CAAC,IAAI,CAAC,aAAa,CAAC,CAAA;gBAElF,MAAM,EAAE,CAAC,aAAa,CAAC,gCAAe,CAAC,CAAC,MAAM,CAC5C;oBACE,eAAe,EAAE,IAAA,YAAE,EAAC,UAAU,CAAC;oBAC/B,MAAM,EAAE,WAAW;iBACpB,EACD,EAAE,MAAM,EAAE,SAAS,EAAE,CACtB,CAAA;gBAED,MAAM,EAAE,CAAC,aAAa,CAAC,0BAAS,CAAC,CAAC,MAAM,CACtC;oBACE,WAAW,EAAE,IAAA,YAAE,EAAC,aAAa,CAAC;oBAC9B,MAAM,EAAE,WAAW;iBACpB,EACD,EAAE,MAAM,EAAE,aAAa,EAAE,CAC1B,CAAA;aACF;YACD,OAAO,IAAI,CAAA;SACZ;QAAC,OAAO,KAAK,EAAE;YACd,MAAM,KAAK,CAAA;SACZ;IACH,CAAC;CACF,CAAA"}
@@ -2,36 +2,33 @@
2
2
 
3
3
  <div align="center">
4
4
 
5
- ## 25 April Update
5
+ ## 20 May Update
6
6
 
7
- #### V4.3.0 Release Note
7
+ #### V4.4.0 Release Note
8
8
 
9
9
  #### Greetings to all,
10
10
 
11
- #### In this holy fasting month, we have strived to bring these early Ramadhan gifts as below:
11
+ #### We are back with more features and enhancements to digitize your warehouse operation!
12
12
 
13
13
  <div>
14
- 1. B2C Order Remark
14
+ 1. Volume Summary Report (beta)
15
15
  </div>
16
16
  <div>
17
- 2. Mark Missing Inventory
17
+ 2. Excel upload for Purchase Order
18
18
  </div>
19
19
  <div>
20
- 3. Outbound Draft Order
20
+ 3. Non-loaded inventory in Onhand Inventory
21
21
  </div>
22
22
  <div>
23
- 4. Loosen Restriction in Inventory Adjustment
24
- </div>
25
- <div>
26
- 5. Bug fixes and API updates!
23
+ 4. Manufacture date in Onhand Inventory
27
24
  </div>
28
25
  <br>
29
- https://bit.ly/220424_Hatio_Release
26
+ https://bit.ly/220519_Hatio_Release
30
27
  <br>
31
28
 
32
29
  Should you have any inquiry, feel free to contact support@hatio.asia!
33
30
  <br>
34
- With pleasure, we wish you Selamat Hari Raya Aidilfitri in advance. Stay safe and positively negative!
31
+ Don't forget to stay cool and we shall together beat the heat away! Stay safe and positively negative!
35
32
 
36
33
  <br>
37
34
 
@@ -2,36 +2,33 @@
2
2
 
3
3
  <div align="center">
4
4
 
5
- ## 25 April Update
5
+ ## 20 May Update
6
6
 
7
- #### V4.3.0 Release Note
7
+ #### V4.4.0 Release Note
8
8
 
9
9
  #### Greetings to all,
10
10
 
11
- #### In this holy fasting month, we have strived to bring these early Ramadhan gifts as below:
11
+ #### We are back with more features and enhancements to digitize your warehouse operation!
12
12
 
13
13
  <div>
14
- 1. B2C Order Remark
14
+ 1. Volume Summary Report (beta)
15
15
  </div>
16
16
  <div>
17
- 2. Mark Missing Inventory
17
+ 2. Excel upload for Purchase Order
18
18
  </div>
19
19
  <div>
20
- 3. Outbound Draft Order
20
+ 3. Non-loaded inventory in Onhand Inventory
21
21
  </div>
22
22
  <div>
23
- 4. Loosen Restriction in Inventory Adjustment
24
- </div>
25
- <div>
26
- 5. Bug fixes and API updates!
23
+ 4. Manufacture date in Onhand Inventory
27
24
  </div>
28
25
  <br>
29
- https://bit.ly/220424_Hatio_Release
26
+ https://bit.ly/220519_Hatio_Release
30
27
  <br>
31
28
 
32
29
  Should you have any inquiry, feel free to contact support@hatio.asia!
33
30
  <br>
34
- With pleasure, we wish you Selamat Hari Raya Aidilfitri in advance. Stay safe and positively negative!
31
+ Don't forget to stay cool and we shall together beat the heat away! Stay safe and positively negative!
35
32
 
36
33
  <br>
37
34
 
@@ -2,36 +2,33 @@
2
2
 
3
3
  <div align="center">
4
4
 
5
- ## 25 April Update
5
+ ## 20 May Update
6
6
 
7
- #### V4.3.0 Release Note
7
+ #### V4.4.0 Release Note
8
8
 
9
9
  #### Greetings to all,
10
10
 
11
- #### In this holy fasting month, we have strived to bring these early Ramadhan gifts as below:
11
+ #### We are back with more features and enhancements to digitize your warehouse operation!
12
12
 
13
13
  <div>
14
- 1. B2C Order Remark
14
+ 1. Volume Summary Report (beta)
15
15
  </div>
16
16
  <div>
17
- 2. Mark Missing Inventory
17
+ 2. Excel upload for Purchase Order
18
18
  </div>
19
19
  <div>
20
- 3. Outbound Draft Order
20
+ 3. Non-loaded inventory in Onhand Inventory
21
21
  </div>
22
22
  <div>
23
- 4. Loosen Restriction in Inventory Adjustment
24
- </div>
25
- <div>
26
- 5. Bug fixes and API updates!
23
+ 4. Manufacture date in Onhand Inventory
27
24
  </div>
28
25
  <br>
29
- https://bit.ly/220424_Hatio_Release
26
+ https://bit.ly/220519_Hatio_Release
30
27
  <br>
31
28
 
32
29
  Should you have any inquiry, feel free to contact support@hatio.asia!
33
30
  <br>
34
- With pleasure, we wish you Selamat Hari Raya Aidilfitri in advance. Stay safe and positively negative!
31
+ Don't forget to stay cool and we shall together beat the heat away! Stay safe and positively negative!
35
32
 
36
33
  <br>
37
34
 
@@ -2,36 +2,33 @@
2
2
 
3
3
  <div align="center">
4
4
 
5
- ## 25 April Update
5
+ ## 20 May Update
6
6
 
7
- #### V4.3.0 Release Note
7
+ #### V4.4.0 Release Note
8
8
 
9
9
  #### Greetings to all,
10
10
 
11
- #### In this holy fasting month, we have strived to bring these early Ramadhan gifts as below:
11
+ #### We are back with more features and enhancements to digitize your warehouse operation!
12
12
 
13
13
  <div>
14
- 1. B2C Order Remark
14
+ 1. Volume Summary Report (beta)
15
15
  </div>
16
16
  <div>
17
- 2. Mark Missing Inventory
17
+ 2. Excel upload for Purchase Order
18
18
  </div>
19
19
  <div>
20
- 3. Outbound Draft Order
20
+ 3. Non-loaded inventory in Onhand Inventory
21
21
  </div>
22
22
  <div>
23
- 4. Loosen Restriction in Inventory Adjustment
24
- </div>
25
- <div>
26
- 5. Bug fixes and API updates!
23
+ 4. Manufacture date in Onhand Inventory
27
24
  </div>
28
25
  <br>
29
- https://bit.ly/220424_Hatio_Release
26
+ https://bit.ly/220519_Hatio_Release
30
27
  <br>
31
28
 
32
29
  Should you have any inquiry, feel free to contact support@hatio.asia!
33
30
  <br>
34
- With pleasure, we wish you Selamat Hari Raya Aidilfitri in advance. Stay safe and positively negative!
31
+ Don't forget to stay cool and we shall together beat the heat away! Stay safe and positively negative!
35
32
 
36
33
  <br>
37
34
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/operato-wms",
3
- "version": "4.3.21",
3
+ "version": "4.3.22",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -92,7 +92,7 @@
92
92
  "@things-factory/print-ui": "^4.3.20",
93
93
  "@things-factory/product-base": "^4.3.20",
94
94
  "@things-factory/resource-ui": "^4.3.20",
95
- "@things-factory/sales-ui": "^4.3.21",
95
+ "@things-factory/sales-ui": "^4.3.22",
96
96
  "@things-factory/scene-data-transform": "^4.3.20",
97
97
  "@things-factory/scene-excel": "^4.3.20",
98
98
  "@things-factory/scene-firebase": "^4.3.20",
@@ -108,8 +108,8 @@
108
108
  "@things-factory/system-ui": "^4.3.20",
109
109
  "@things-factory/transport-base": "^4.3.20",
110
110
  "@things-factory/tutorial-ui": "^4.3.20",
111
- "@things-factory/warehouse-base": "^4.3.21",
112
- "@things-factory/worksheet-base": "^4.3.21"
111
+ "@things-factory/warehouse-base": "^4.3.22",
112
+ "@things-factory/worksheet-base": "^4.3.22"
113
113
  },
114
114
  "devDependencies": {
115
115
  "@things-factory/builder": "^4.3.20",
@@ -118,5 +118,5 @@
118
118
  "cypress-localstorage-commands": "^1.6.1",
119
119
  "eslint-plugin-cypress": "^2.12.1"
120
120
  },
121
- "gitHead": "2021cf9407cfd29d9e1b32063f834584c7b97714"
121
+ "gitHead": "9dd1ce192948dbc0e4f3611e11f4804b71d06643"
122
122
  }
@@ -1,8 +1,8 @@
1
1
  import { EntityManager } from 'typeorm'
2
2
  import { InventoryChange, approveInventoryChanges } from '@things-factory/warehouse-base'
3
3
  import { In, Not, IsNull } from 'typeorm'
4
- import { OrderInventory } from '@things-factory/sales-base'
5
- import { WorksheetDetail } from '@things-factory/worksheet-base'
4
+ import { OrderInventory, ReleaseGood } from '@things-factory/sales-base'
5
+ import { WorksheetDetail, Worksheet } from '@things-factory/worksheet-base'
6
6
 
7
7
  export const warehouseInventoryAdjustment = {
8
8
  async warehouseInventoryAdjustment(_: any, { patches }, context: any) {
@@ -46,19 +46,30 @@ export const warehouseInventoryAdjustment = {
46
46
 
47
47
  await tx.getRepository(OrderInventory).update(
48
48
  {
49
- inventory: In(invId),status:"PICKING"
49
+ inventory: In(invId),
50
+ status: 'PICKING'
50
51
  },
51
52
  { status: 'MISSING' }
52
53
  )
53
54
 
54
55
  const orderInvId: any[] = orderInventory.map((oi: any) => oi.id)
56
+ const releaseGoodId: any[] = orderInventory.map((roId: any) => roId.releaseGoodId)
55
57
 
56
58
  await tx.getRepository(WorksheetDetail).update(
57
59
  {
58
- targetInventory: In(orderInvId),status:"EXECUTING"
60
+ targetInventory: In(orderInvId),
61
+ status: 'EXECUTING'
59
62
  },
60
63
  { status: 'MISSING' }
61
64
  )
65
+
66
+ await tx.getRepository(Worksheet).update(
67
+ {
68
+ releaseGood: In(releaseGoodId),
69
+ status: 'EXECUTING'
70
+ },
71
+ { status: 'DEACTIVATED' }
72
+ )
62
73
  }
63
74
  return item
64
75
  } catch (error) {
@@ -453,6 +453,10 @@ export default {
453
453
  tagname: 'inventory-summary-report',
454
454
  page: 'inventory_summary_report'
455
455
  },
456
+ {
457
+ tagname: 'volume-summary-report',
458
+ page: 'volume_summary_report'
459
+ },
456
460
  {
457
461
  tagname: 'inventory-pallet-report',
458
462
  page: 'inventory_pallet_report'
@@ -122,6 +122,7 @@
122
122
  "field.addable_uom_value": "addable uom value",
123
123
  "field.address_id": "address id",
124
124
  "field.address": "address",
125
+ "field.adjusted": "adjusted",
125
126
  "field.adjusted_batch_id_ref": "adjusted batch no ref",
126
127
  "field.adjusted_batch_id": "adjusted batch no",
127
128
  "field.adjusted_pack_qty": "adjusted pack qty",
@@ -131,7 +132,8 @@
131
132
  "field.adjusted_unit_price": "adjusted unit price",
132
133
  "field.adjusted_uom_value": "adjusted uom value",
133
134
  "field.adjusted_uom": "adjusted uom",
134
- "field.adjustment_qty": "adjustment qty",
135
+ "field.adjusted_volume": "adjusted volume",
136
+ "field.adjusted_qty": "adjusted qty",
135
137
  "field.after": "after",
136
138
  "field.amount": "amount",
137
139
  "field.arrival_notice": "arrival notice",
@@ -188,7 +190,10 @@
188
190
  "field.claim_type": "claim type",
189
191
  "field.claim": "claim",
190
192
  "field.claimType": "claim type",
193
+ "field.closing": "closing",
191
194
  "field.closing_balance": "closing balance",
195
+ "field.closing_volume": "closing volume",
196
+ "field.closing_qty": "closing qty",
192
197
  "field.cogs_account_code": "COGS account code",
193
198
  "field.column": "column",
194
199
  "field.combination": "combination",
@@ -275,6 +280,7 @@
275
280
  "field.id": "id",
276
281
  "field.import_cargo": "import cargo",
277
282
  "field.in": "in",
283
+ "field.inbound_volume": "inbound volume",
278
284
  "field.inbound_pallet_id": "inbound pallet id",
279
285
  "field.inbound_qty": "inbound qty",
280
286
  "field.inbound": "inbound",
@@ -318,6 +324,8 @@
318
324
  "field.max_qty": "max qty",
319
325
  "field.mfg_year": "mfg. year",
320
326
  "field.min_qty": "min qty",
327
+ "field.missing": "missing",
328
+ "field.missing_volume": "missing volume",
321
329
  "field.missing_qty": "missing qty",
322
330
  "field.month": "month",
323
331
  "field.movement": "movement",
@@ -328,13 +336,17 @@
328
336
  "field.no_of_items": "no of items",
329
337
  "field.no": "no",
330
338
  "field.non_tally": "non tally",
339
+ "field.non_loaded_qty": "non loaded qty",
340
+ "field.non_loaded_uom_value": "non loaded uom value",
331
341
  "field.now_scanning": "now scanning",
332
342
  "field.number_of_column": "number of column",
333
343
  "field.number_of_depth": "number of depth",
334
344
  "field.number_of_row": "number of row",
335
345
  "field.number_of_shelf": "number of shelf",
336
346
  "field.onhand_inventory_quantity": "onhand inventory quantity",
347
+ "field.opening": "opening",
337
348
  "field.opening_balance": "opening balance",
349
+ "field.opening_volume": "opening volume",
338
350
  "field.opening_qty": "opening qty",
339
351
  "field.opening_uom_value": "opening uom value",
340
352
  "field.operation_guide_type": "operation guide type",
@@ -352,6 +364,7 @@
352
364
  "field.ot": "O/T",
353
365
  "field.other_target": "other target",
354
366
  "field.out": "out",
367
+ "field.outbound_volume": "outbound volume",
355
368
  "field.outbound_qty": "outbound qty",
356
369
  "field.outbound": "outbound",
357
370
  "field.over_stock": "over stock",
@@ -1100,6 +1113,7 @@
1100
1113
  "text.do_you_want_to_print": "do you want to print",
1101
1114
  "text.do_you_want_to_proceed": "do you want to proceed",
1102
1115
  "text.document_has_been_generated": "document has been generated",
1116
+ "text.draft_purchase_order": "draft purchase order",
1103
1117
  "text.draft_order_form_invalid": "draft order form invalid",
1104
1118
  "text.driver_and_vehicle_is_not_selected": "driver and vehicle is not selected",
1105
1119
  "text.driver_is_empty": "driver name is empty",
@@ -1227,6 +1241,7 @@
1227
1241
  "text.order_status_not_qualified_for_bulk_printing_packing_list": "order status not qualified for bulk printing packing list",
1228
1242
  "text.orders_has_been_activated": "orders has been activated",
1229
1243
  "text.owner_field_is_empty": "owner field is empty",
1244
+ "text.pack_qty_and_unit_price_will_be_updated_to_1_if_the_value_is_empty_or_0": "pack qty and unit price will be updated to 1 if the value is empty or 0",
1230
1245
  "text.packing_is_completed": "packing is completed",
1231
1246
  "text.pallet_qty_is_empty": "pallet qty is empty",
1232
1247
  "text.partial_complete": "partial unloading",
@@ -1720,6 +1735,7 @@
1720
1735
  "title.transfer_order_requests": "transfer order requests",
1721
1736
  "title.transport_driver": "transport driver",
1722
1737
  "title.transport_vehicle": "transport vehicle",
1738
+ "title.update_purchase_order": "update purchase order?",
1723
1739
  "title.undo_putaway": "undo putaway",
1724
1740
  "title.undo_unload": "undo unload",
1725
1741
  "title.unloaded_inventories": "unloaded inventories",
@@ -1746,6 +1762,7 @@
1746
1762
  "title.vas_worksheets": "vas worksheet",
1747
1763
  "title.vas": "value added services",
1748
1764
  "title.view_product_changes": "view product changes",
1765
+ "title.volume_summary_report": "volume summary report",
1749
1766
  "title.warehouse_name": "warehouse name",
1750
1767
  "title.warehouse_return": "warehouse return",
1751
1768
  "title.warehouse": "warehouse",
@@ -133,7 +133,7 @@
133
133
  "field.adjusted_unit_price": "[ko] adjusted unit price",
134
134
  "field.adjusted_uom_value": "[ko]adjusted uom value",
135
135
  "field.adjusted_uom": "[ko]adjusted uom",
136
- "field.adjustment_qty": "수량 조정",
136
+ "field.adjusted_qty": "수량 조정",
137
137
  "field.after": "이후",
138
138
  "field.amount": "양",
139
139
  "field.arrival_notice": "입고 통지",
@@ -1948,5 +1948,17 @@
1948
1948
  "text.tote_box_(x)_is_scanned": "[ko] tote box ({x}) is scanned",
1949
1949
  "text.tote_carton_(x)_is_scanned": "[ko] tote carton ({x}) is scanned",
1950
1950
  "text.tote_is_not_scanned": "[ko] tote is not scanned",
1951
+ "field.opening_volume": "[ko] opening volume",
1952
+ "field.inbound_volume": "[ko] inbound volume",
1953
+ "field.adjusted_volume": "[ko] adjusted volume",
1954
+ "field.missing_volume": "[ko] missing volume",
1955
+ "field.outbound_volume": "[ko] outbound volume",
1956
+ "field.closing_qty": "[ko] closing qty",
1957
+ "field.closing_volume": "[ko] closing volume",
1958
+ "field.opening": "[ko] opening",
1959
+ "field.closing": "[ko] closing",
1960
+ "field.adjusted": "[ko] adjusted",
1961
+ "field.missing": "[ko] missing",
1962
+ "title.volume_summary_report": "[ko] volume summary report",
1951
1963
  "text.there_is_release_qty_no_amendment_is_allowed": "[ko] there is release qty, no amendment is allowed"
1952
1964
  }
@@ -128,7 +128,7 @@
128
128
  "field.adjusted_unit_price": "[ms]adjusted unit price",
129
129
  "field.adjusted_uom_value": "[ms]adjusted uom value",
130
130
  "field.adjusted_uom": "[ms]adjusted uom",
131
- "field.adjustment_qty": "adjustment qty",
131
+ "field.adjusted_qty": "adjusted qty",
132
132
  "field.after": "after",
133
133
  "field.amount": "jumlah",
134
134
  "field.arrival_notice": "notis ketibaan",
@@ -1817,5 +1817,17 @@
1817
1817
  "text.tote_box_(x)_is_scanned": "[ms] tote box ({x}) is scanned",
1818
1818
  "text.tote_carton_(x)_is_scanned": "[ms] tote carton ({x}) is scanned",
1819
1819
  "text.tote_is_not_scanned": "[ms] tote is not scanned",
1820
+ "field.opening_volume": "[ms] opening volume",
1821
+ "field.inbound_volume": "[ms] inbound volume",
1822
+ "field.adjusted_volume": "[ms] adjusted volume",
1823
+ "field.missing_volume": "[ms] missing volume",
1824
+ "field.outbound_volume": "[ms] outbound volume",
1825
+ "field.closing_qty": "[ms] closing qty",
1826
+ "field.closing_volume": "[ms] closing volume",
1827
+ "field.opening": "[ms] opening",
1828
+ "field.closing": "[ms] closing",
1829
+ "field.adjusted": "[ms] adjusted",
1830
+ "field.missing": "[ms] missing",
1831
+ "title.volume_summary_report": "[ms] volume summary report",
1820
1832
  "text.there_is_release_qty_no_amendment_is_allowed": "[ms] there is release qty, no amendment is allowed"
1821
1833
  }
@@ -126,7 +126,7 @@
126
126
  "field.adjusted_unit_price": "[zh]adjusted unit price",
127
127
  "field.adjusted_uom_value": "[zh]adjusted uom value",
128
128
  "field.adjusted_uom": "[zh]adjusted uom",
129
- "field.adjustment_qty": "adjustment qty",
129
+ "field.adjusted_qty": "adjusted qty",
130
130
  "field.after": "after",
131
131
  "field.amount": "amount",
132
132
  "field.arrival_notice": "arrival notice",
@@ -1767,5 +1767,17 @@
1767
1767
  "text.tote_box_(x)_is_scanned": "[zh] tote box ({x}) is scanned",
1768
1768
  "text.tote_carton_(x)_is_scanned": "[zh] tote carton ({x}) is scanned",
1769
1769
  "text.tote_is_not_scanned": "[zh] tote is not scanned",
1770
+ "field.opening_volume": "[zh] opening volume",
1771
+ "field.inbound_volume": "[zh] inbound volume",
1772
+ "field.adjusted_volume": "[zh] adjusted volume",
1773
+ "field.missing_volume": "[zh] missing volume",
1774
+ "field.outbound_volume": "[zh] outbound volume",
1775
+ "field.closing_qty": "[zh] closing qty",
1776
+ "field.closing_volume": "[zh] closing volume",
1777
+ "field.opening": "[zh] opening",
1778
+ "field.closing": "[zh] closing",
1779
+ "field.adjusted": "[zh] adjusted",
1780
+ "field.missing": "[zh] missing",
1781
+ "title.volume_summary_report": "[zh] volume summary report",
1770
1782
  "text.there_is_release_qty_no_amendment_is_allowed": "[zh] there is release qty, no amendment is allowed"
1771
1783
  }