@things-factory/operato-wms 4.3.262 → 4.3.264
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.
- package/client/pages/order/release-order/release-order-detail.js +4 -4
- package/client/pages/outbound/vas-list-popup.js +7 -4
- package/client/pages/report/vas-report.js +67 -57
- package/client/pages/vas/worksheet-ref-vas.js +13 -10
- package/dist-server/graphql/resolvers/reports/vas-report.js +3 -2
- package/dist-server/graphql/resolvers/reports/vas-report.js.map +1 -1
- package/package.json +5 -5
- package/server/graphql/resolvers/reports/vas-report.ts +3 -2
- package/translations/en.json +1 -0
- package/translations/ko.json +1 -0
- package/translations/ms.json +1 -0
- package/translations/zh.json +1 -0
|
@@ -17,12 +17,11 @@ import { connect } from 'pwa-helpers/connect-mixin'
|
|
|
17
17
|
|
|
18
18
|
import { getCodeByName } from '@things-factory/code-base'
|
|
19
19
|
import { MultiColumnFormStyles } from '@things-factory/form-ui'
|
|
20
|
-
import { getRenderer } from '@things-factory/grist-ui'
|
|
21
20
|
import { i18next, localize } from '@things-factory/i18n-base'
|
|
22
21
|
import { openPopup } from '@things-factory/layout-base'
|
|
23
22
|
import { client, CustomAlert, navigate, PageView, store } from '@things-factory/shell'
|
|
24
23
|
import { CommonButtonStyles } from '@things-factory/styles'
|
|
25
|
-
import {
|
|
24
|
+
import { isMobileDevice } from '@things-factory/utils'
|
|
26
25
|
|
|
27
26
|
import { fetchSettingRule } from '../../../fetch-setting-value'
|
|
28
27
|
import {
|
|
@@ -1458,6 +1457,7 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1458
1457
|
vas {
|
|
1459
1458
|
id
|
|
1460
1459
|
name
|
|
1460
|
+
description
|
|
1461
1461
|
}
|
|
1462
1462
|
vasQty
|
|
1463
1463
|
}
|
|
@@ -1651,14 +1651,14 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1651
1651
|
...acc[acc.length - 1],
|
|
1652
1652
|
orderVasItemId: itm.id,
|
|
1653
1653
|
group: groupIdx,
|
|
1654
|
-
vas: { id: itm.vas.id, name: itm.vas.name },
|
|
1654
|
+
vas: { id: itm.vas.id, name: `${itm.vas.name}(${itm.vas.description})` },
|
|
1655
1655
|
vasQty: itm.vasQty
|
|
1656
1656
|
}
|
|
1657
1657
|
} else {
|
|
1658
1658
|
acc.push({
|
|
1659
1659
|
orderVasItemId: itm.id,
|
|
1660
1660
|
group: groupIdx,
|
|
1661
|
-
vas: { id: itm.vas.id, name: itm.vas.name },
|
|
1661
|
+
vas: { id: itm.vas.id, name: `${itm.vas.name}(${itm.vas.description})` },
|
|
1662
1662
|
vasQty: itm.vasQty
|
|
1663
1663
|
})
|
|
1664
1664
|
}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import '@things-factory/barcode-ui'
|
|
2
|
-
import { MultiColumnFormStyles, SingleColumnFormStyles } from '@things-factory/form-ui'
|
|
3
2
|
import '@things-factory/grist-ui'
|
|
3
|
+
import '../components/popup-note'
|
|
4
|
+
|
|
5
|
+
import gql from 'graphql-tag'
|
|
6
|
+
import { css, html, LitElement } from 'lit-element'
|
|
7
|
+
|
|
8
|
+
import { MultiColumnFormStyles, SingleColumnFormStyles } from '@things-factory/form-ui'
|
|
4
9
|
import { i18next, localize } from '@things-factory/i18n-base'
|
|
5
10
|
import { client } from '@things-factory/shell'
|
|
6
11
|
import { isMobileDevice } from '@things-factory/utils'
|
|
7
|
-
import gql from 'graphql-tag'
|
|
8
|
-
import { css, html, LitElement } from 'lit-element'
|
|
9
|
-
import '../components/popup-note'
|
|
10
12
|
|
|
11
13
|
export class VasListPopup extends localize(i18next)(LitElement) {
|
|
12
14
|
static get styles() {
|
|
@@ -279,6 +281,7 @@ export class VasListPopup extends localize(i18next)(LitElement) {
|
|
|
279
281
|
vas {
|
|
280
282
|
id
|
|
281
283
|
name
|
|
284
|
+
description
|
|
282
285
|
}
|
|
283
286
|
vasQty
|
|
284
287
|
}
|
|
@@ -94,13 +94,13 @@ class VasReport extends connect(store)(localize(i18next)(PageView)) {
|
|
|
94
94
|
options: [
|
|
95
95
|
{ value: '' },
|
|
96
96
|
...this._partners
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
97
|
+
.map(partner => {
|
|
98
|
+
return {
|
|
99
|
+
name: `${partner.name} ${partner.description ? `(${partner.description})` : ''}`,
|
|
100
|
+
value: partner.id
|
|
101
|
+
}
|
|
102
|
+
})
|
|
103
|
+
.sort(this._compareValues('name', 'asc'))
|
|
104
104
|
],
|
|
105
105
|
props: { searchOper: 'eq' }
|
|
106
106
|
},
|
|
@@ -156,7 +156,7 @@ class VasReport extends connect(store)(localize(i18next)(PageView)) {
|
|
|
156
156
|
{ column: 'packingType' },
|
|
157
157
|
{ column: 'uom' },
|
|
158
158
|
{ column: 'uomValue' },
|
|
159
|
-
{ column: 'releaseQty'}
|
|
159
|
+
{ column: 'releaseQty' }
|
|
160
160
|
],
|
|
161
161
|
totals: []
|
|
162
162
|
},
|
|
@@ -167,7 +167,7 @@ class VasReport extends connect(store)(localize(i18next)(PageView)) {
|
|
|
167
167
|
header: i18next.t('field.company'),
|
|
168
168
|
sortable: false,
|
|
169
169
|
imex: { hearder: i18next.t('field.company'), key: 'bizplaceName', width: 30, type: 'string' },
|
|
170
|
-
width:
|
|
170
|
+
width: 150
|
|
171
171
|
},
|
|
172
172
|
{
|
|
173
173
|
type: 'string',
|
|
@@ -175,7 +175,7 @@ class VasReport extends connect(store)(localize(i18next)(PageView)) {
|
|
|
175
175
|
header: i18next.t('field.order_no'),
|
|
176
176
|
sortable: false,
|
|
177
177
|
imex: { header: i18next.t('field.order_no'), key: 'ro', width: 25, type: 'string' },
|
|
178
|
-
width:
|
|
178
|
+
width: 160
|
|
179
179
|
},
|
|
180
180
|
{
|
|
181
181
|
type: 'string',
|
|
@@ -183,7 +183,7 @@ class VasReport extends connect(store)(localize(i18next)(PageView)) {
|
|
|
183
183
|
header: i18next.t('field.ref_no'),
|
|
184
184
|
sortable: false,
|
|
185
185
|
imex: { header: i18next.t('field.ref_no'), key: 'refNo', width: 25, type: 'string' },
|
|
186
|
-
width:
|
|
186
|
+
width: 150
|
|
187
187
|
},
|
|
188
188
|
{
|
|
189
189
|
type: 'string',
|
|
@@ -199,7 +199,7 @@ class VasReport extends connect(store)(localize(i18next)(PageView)) {
|
|
|
199
199
|
header: i18next.t('field.batch_no'),
|
|
200
200
|
sortable: false,
|
|
201
201
|
imex: { header: i18next.t('field.batch_no'), key: 'batchId', width: 20, type: 'string' },
|
|
202
|
-
width:
|
|
202
|
+
width: 100
|
|
203
203
|
},
|
|
204
204
|
{
|
|
205
205
|
type: 'string',
|
|
@@ -207,14 +207,14 @@ class VasReport extends connect(store)(localize(i18next)(PageView)) {
|
|
|
207
207
|
header: i18next.t('field.packing_type'),
|
|
208
208
|
sortable: false,
|
|
209
209
|
imex: { header: i18next.t('field.packing_type'), key: 'packingType', width: 20, type: 'string' },
|
|
210
|
-
width:
|
|
210
|
+
width: 130
|
|
211
211
|
},
|
|
212
212
|
{
|
|
213
213
|
type: 'string',
|
|
214
214
|
name: 'uom',
|
|
215
215
|
header: i18next.t('field.uom'),
|
|
216
216
|
sortable: false,
|
|
217
|
-
imex: { header: i18next.t('field.uom'), key: 'uom', width: 5, type: 'string'},
|
|
217
|
+
imex: { header: i18next.t('field.uom'), key: 'uom', width: 5, type: 'string' },
|
|
218
218
|
width: 70
|
|
219
219
|
},
|
|
220
220
|
{
|
|
@@ -222,7 +222,7 @@ class VasReport extends connect(store)(localize(i18next)(PageView)) {
|
|
|
222
222
|
name: 'uomValue',
|
|
223
223
|
header: i18next.t('field.unit_uom_value'),
|
|
224
224
|
sortable: false,
|
|
225
|
-
imex: { header: i18next.t('field.unit_uom_value'), key: 'uomValue', width: 10, type: 'string'},
|
|
225
|
+
imex: { header: i18next.t('field.unit_uom_value'), key: 'uomValue', width: 10, type: 'string' },
|
|
226
226
|
width: 80
|
|
227
227
|
},
|
|
228
228
|
{
|
|
@@ -230,7 +230,7 @@ class VasReport extends connect(store)(localize(i18next)(PageView)) {
|
|
|
230
230
|
name: 'releaseQty',
|
|
231
231
|
header: i18next.t('field.release_qty'),
|
|
232
232
|
sortable: false,
|
|
233
|
-
imex: { header: i18next.t('field.release_qty'), key: 'releaseQty', width: 10, type: 'string'},
|
|
233
|
+
imex: { header: i18next.t('field.release_qty'), key: 'releaseQty', width: 10, type: 'string' },
|
|
234
234
|
width: 80
|
|
235
235
|
},
|
|
236
236
|
{
|
|
@@ -238,7 +238,7 @@ class VasReport extends connect(store)(localize(i18next)(PageView)) {
|
|
|
238
238
|
name: 'vas',
|
|
239
239
|
header: i18next.t('field.vas'),
|
|
240
240
|
sortable: false,
|
|
241
|
-
imex: { header: i18next.t('field.vas'), key: 'vas', width: 15, type: 'string'},
|
|
241
|
+
imex: { header: i18next.t('field.vas'), key: 'vas', width: 15, type: 'string' },
|
|
242
242
|
width: 100
|
|
243
243
|
},
|
|
244
244
|
{
|
|
@@ -246,15 +246,15 @@ class VasReport extends connect(store)(localize(i18next)(PageView)) {
|
|
|
246
246
|
name: 'vasQty',
|
|
247
247
|
header: i18next.t('field.vas_qty'),
|
|
248
248
|
sortable: false,
|
|
249
|
-
imex: { header: i18next.t('field.vas_qty'), key: 'vasQty', width: 10, type: 'string'},
|
|
250
|
-
width:
|
|
249
|
+
imex: { header: i18next.t('field.vas_qty'), key: 'vasQty', width: 10, type: 'string' },
|
|
250
|
+
width: 70
|
|
251
251
|
},
|
|
252
252
|
{
|
|
253
253
|
type: 'string',
|
|
254
254
|
name: 'newSku',
|
|
255
255
|
header: i18next.t('field.new_sku'),
|
|
256
256
|
sortable: false,
|
|
257
|
-
imex: { header: i18next.t('field.new_sku'), key: 'newSku', width: 20, type: 'string'},
|
|
257
|
+
imex: { header: i18next.t('field.new_sku'), key: 'newSku', width: 20, type: 'string' },
|
|
258
258
|
width: 150
|
|
259
259
|
},
|
|
260
260
|
{
|
|
@@ -262,7 +262,7 @@ class VasReport extends connect(store)(localize(i18next)(PageView)) {
|
|
|
262
262
|
name: 'newPackingType',
|
|
263
263
|
header: i18next.t('field.packing_type'),
|
|
264
264
|
sortable: false,
|
|
265
|
-
imex: { header: i18next.t('field.packing_type'), key: 'newPackingType', width: 10, type: 'string'},
|
|
265
|
+
imex: { header: i18next.t('field.packing_type'), key: 'newPackingType', width: 10, type: 'string' },
|
|
266
266
|
width: 90
|
|
267
267
|
},
|
|
268
268
|
{
|
|
@@ -270,7 +270,7 @@ class VasReport extends connect(store)(localize(i18next)(PageView)) {
|
|
|
270
270
|
name: 'newUom',
|
|
271
271
|
header: i18next.t('field.uom'),
|
|
272
272
|
sortable: false,
|
|
273
|
-
imex: { header: i18next.t('field.uom'), key: 'newUom', width: 5, type: 'string'},
|
|
273
|
+
imex: { header: i18next.t('field.uom'), key: 'newUom', width: 5, type: 'string' },
|
|
274
274
|
width: 70
|
|
275
275
|
},
|
|
276
276
|
{
|
|
@@ -278,7 +278,7 @@ class VasReport extends connect(store)(localize(i18next)(PageView)) {
|
|
|
278
278
|
name: 'outputQty',
|
|
279
279
|
header: i18next.t('field.output_qty'),
|
|
280
280
|
sortable: false,
|
|
281
|
-
imex: { header: i18next.t('field.output_qty'), key: 'outputQty', width: 10, type: 'string'},
|
|
281
|
+
imex: { header: i18next.t('field.output_qty'), key: 'outputQty', width: 10, type: 'string' },
|
|
282
282
|
width: 80
|
|
283
283
|
},
|
|
284
284
|
{
|
|
@@ -286,7 +286,7 @@ class VasReport extends connect(store)(localize(i18next)(PageView)) {
|
|
|
286
286
|
name: 'newUomValue',
|
|
287
287
|
header: i18next.t('field.uom_value'),
|
|
288
288
|
sortable: false,
|
|
289
|
-
imex: { header: i18next.t('field.uom_value'), key: 'newUomValue', width: 10, type: 'string'},
|
|
289
|
+
imex: { header: i18next.t('field.uom_value'), key: 'newUomValue', width: 10, type: 'string' },
|
|
290
290
|
width: 80
|
|
291
291
|
},
|
|
292
292
|
{
|
|
@@ -294,7 +294,7 @@ class VasReport extends connect(store)(localize(i18next)(PageView)) {
|
|
|
294
294
|
name: 'completionDate',
|
|
295
295
|
header: i18next.t('field.completion_date'),
|
|
296
296
|
sortable: false,
|
|
297
|
-
imex: { header: i18next.t('field.completion_date'), key: 'completionDate', width: 20, type: 'string'},
|
|
297
|
+
imex: { header: i18next.t('field.completion_date'), key: 'completionDate', width: 20, type: 'string' },
|
|
298
298
|
width: 160
|
|
299
299
|
}
|
|
300
300
|
]
|
|
@@ -303,7 +303,7 @@ class VasReport extends connect(store)(localize(i18next)(PageView)) {
|
|
|
303
303
|
|
|
304
304
|
async pageInitialized() {
|
|
305
305
|
this._releaseOrders = []
|
|
306
|
-
this._partners= [...(await this._fetchPartners())]
|
|
306
|
+
this._partners = [...(await this._fetchPartners())]
|
|
307
307
|
this._orderVass = []
|
|
308
308
|
|
|
309
309
|
this._searchFields = this.searchFields
|
|
@@ -351,6 +351,7 @@ class VasReport extends connect(store)(localize(i18next)(PageView)) {
|
|
|
351
351
|
orderVasItem {
|
|
352
352
|
vas {
|
|
353
353
|
name
|
|
354
|
+
description
|
|
354
355
|
}
|
|
355
356
|
vasQty
|
|
356
357
|
}
|
|
@@ -391,29 +392,28 @@ class VasReport extends connect(store)(localize(i18next)(PageView)) {
|
|
|
391
392
|
})
|
|
392
393
|
return {
|
|
393
394
|
total: 0,
|
|
394
|
-
records:
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
})
|
|
395
|
+
records: response.data.vasReport.items.map(item => {
|
|
396
|
+
return {
|
|
397
|
+
...item,
|
|
398
|
+
bizplaceName: item.bizplace.name,
|
|
399
|
+
ro: item.releaseGood.name,
|
|
400
|
+
refNo: item.releaseGood.refNo,
|
|
401
|
+
sku: item.orderVas.product.sku,
|
|
402
|
+
batchId: item.orderVas.batchId,
|
|
403
|
+
packingType: item.orderVas.packingType,
|
|
404
|
+
uom: item.orderVas.uom,
|
|
405
|
+
uomValue: item.orderVas.uomValue,
|
|
406
|
+
releaseQty: item.orderInventory.releaseQty,
|
|
407
|
+
vas: `${item.orderVasItem.vas.name}(${item.orderVasItem.vas.description})`,
|
|
408
|
+
vasQty: item.orderVasItem.vasQty,
|
|
409
|
+
newSku: item.orderVas.newProduct.sku,
|
|
410
|
+
newPackingType: item.orderVas.newPackingType,
|
|
411
|
+
newUom: item.orderVas.newUom,
|
|
412
|
+
outputQty: item.orderVas.outputQty,
|
|
413
|
+
newUomValue: item.orderVas.newUomValue,
|
|
414
|
+
completionDate: item.worksheet.endedAt
|
|
415
|
+
}
|
|
416
|
+
})
|
|
417
417
|
}
|
|
418
418
|
} catch (e) {
|
|
419
419
|
this._showToast(e)
|
|
@@ -454,7 +454,7 @@ class VasReport extends connect(store)(localize(i18next)(PageView)) {
|
|
|
454
454
|
_validate() {
|
|
455
455
|
if (!this.searchForm.shadowRoot.querySelector('form').checkValidity())
|
|
456
456
|
throw new Error(i18next.t('text.invalid_form_value'))
|
|
457
|
-
|
|
457
|
+
if (!this._bizplaceSelector.value) throw new Error(i18next.t('text.no_company_selected'))
|
|
458
458
|
// if (!this._fromDateInput.value) throw new Error(i18next.t('text.from_date_is_empty'))
|
|
459
459
|
// if (!this._toDateInput.value) throw new Error(i18next.t('text.to_date_is_empty'))
|
|
460
460
|
}
|
|
@@ -473,7 +473,7 @@ class VasReport extends connect(store)(localize(i18next)(PageView)) {
|
|
|
473
473
|
this._toDateInput.min = min
|
|
474
474
|
}
|
|
475
475
|
|
|
476
|
-
_compareValues(key, order = 'asc'
|
|
476
|
+
_compareValues(key, order = 'asc') {
|
|
477
477
|
return function innerSort(a, b) {
|
|
478
478
|
if (!a.hasOwnProperty(key) || !b.hasOwnProperty(key)) {
|
|
479
479
|
return 0
|
|
@@ -496,10 +496,10 @@ class VasReport extends connect(store)(localize(i18next)(PageView)) {
|
|
|
496
496
|
try {
|
|
497
497
|
var headerSetting = [
|
|
498
498
|
...this.report._config.columns
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
499
|
+
.filter(column => column.type !== 'gutter' && column.record !== undefined && column.imex !== undefined)
|
|
500
|
+
.map(column => {
|
|
501
|
+
return column.imex
|
|
502
|
+
})
|
|
503
503
|
]
|
|
504
504
|
|
|
505
505
|
return {
|
|
@@ -509,7 +509,17 @@ class VasReport extends connect(store)(localize(i18next)(PageView)) {
|
|
|
509
509
|
return flattenObject({
|
|
510
510
|
...record,
|
|
511
511
|
completionDate:
|
|
512
|
-
record.worksheet.endedAt !== null
|
|
512
|
+
record.worksheet.endedAt !== null
|
|
513
|
+
? date.getDate().toString() +
|
|
514
|
+
'/' +
|
|
515
|
+
(date.getMonth() + 1).toString() +
|
|
516
|
+
'/' +
|
|
517
|
+
date.getFullYear().toString() +
|
|
518
|
+
' ' +
|
|
519
|
+
date.getHours().toString() +
|
|
520
|
+
':' +
|
|
521
|
+
date.getMinutes().toString()
|
|
522
|
+
: ' '
|
|
513
523
|
})
|
|
514
524
|
}),
|
|
515
525
|
groups: this.report._config.rows.groups,
|
|
@@ -532,4 +542,4 @@ class VasReport extends connect(store)(localize(i18next)(PageView)) {
|
|
|
532
542
|
}
|
|
533
543
|
}
|
|
534
544
|
|
|
535
|
-
window.customElements.define('vas-report', VasReport)
|
|
545
|
+
window.customElements.define('vas-report', VasReport)
|
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
import '@things-factory/barcode-ui'
|
|
2
|
-
import { MultiColumnFormStyles } from '@things-factory/form-ui'
|
|
3
2
|
import '@things-factory/grist-ui'
|
|
3
|
+
import '../components/popup-note'
|
|
4
|
+
import '../components/vas-templates'
|
|
5
|
+
import './target-inventory-assignment-popup'
|
|
6
|
+
|
|
7
|
+
import gql from 'graphql-tag'
|
|
8
|
+
import { css, html } from 'lit-element'
|
|
9
|
+
|
|
10
|
+
import { MultiColumnFormStyles } from '@things-factory/form-ui'
|
|
4
11
|
import { i18next, localize } from '@things-factory/i18n-base'
|
|
5
12
|
import { openPopup } from '@things-factory/layout-base'
|
|
6
13
|
import { client, PageView } from '@things-factory/shell'
|
|
7
|
-
import { isMobileDevice } from '@things-factory/utils'
|
|
8
14
|
import { CommonButtonStyles } from '@things-factory/styles'
|
|
9
|
-
import
|
|
10
|
-
|
|
11
|
-
import '../components/popup-note'
|
|
12
|
-
import '../components/vas-templates'
|
|
15
|
+
import { isMobileDevice } from '@things-factory/utils'
|
|
16
|
+
|
|
13
17
|
import { ORDER_TYPES } from '../constants'
|
|
14
|
-
import './target-inventory-assignment-popup'
|
|
15
18
|
|
|
16
19
|
class WorksheetRefVas extends localize(i18next)(PageView) {
|
|
17
20
|
static get properties() {
|
|
@@ -379,7 +382,7 @@ class WorksheetRefVas extends localize(i18next)(PageView) {
|
|
|
379
382
|
return formData
|
|
380
383
|
}
|
|
381
384
|
|
|
382
|
-
formatTaskData() {
|
|
385
|
+
formatTaskData() {
|
|
383
386
|
return {
|
|
384
387
|
records: this.worksheet.worksheetDetails.reduce((acc, wsd) => {
|
|
385
388
|
acc.push({
|
|
@@ -395,12 +398,12 @@ formatTaskData() {
|
|
|
395
398
|
if (idx == 0) {
|
|
396
399
|
acc[acc.length - 1] = {
|
|
397
400
|
...acc[acc.length - 1],
|
|
398
|
-
vas: item.vas.name
|
|
401
|
+
vas: `${item.vas.name}(${item.vas.description})`
|
|
399
402
|
// newSku: item.newProduct?.sku
|
|
400
403
|
}
|
|
401
404
|
} else {
|
|
402
405
|
acc.push({
|
|
403
|
-
vas: item.vas.name
|
|
406
|
+
vas: `${item.vas.name}(${item.vas.description})`
|
|
404
407
|
// newSku: item.newProduct?.sku
|
|
405
408
|
})
|
|
406
409
|
}
|
|
@@ -47,7 +47,7 @@ exports.vasReport = {
|
|
|
47
47
|
create temp table temp_vas_order_report on commit drop as (
|
|
48
48
|
select * from (
|
|
49
49
|
select distinct b.name as "company", rg.name as "order_no", rg.ref_no as "ref_no", p1.sku as "sku", ov.batch_id as "batch_no", ov.packing_type as "packing_type", ov.uom as "uom", ov.uom_value as "uom_value", op.release_qty as "release_qty",
|
|
50
|
-
v.id as "vas_id", v.name as "vas_name", ovi.vas_qty as "vas_qty", p2.sku as "new_sku", ov.new_packing_type as "new_packing_type", ov.new_uom as "new_uom", ov.output_qty as "output_qty", ov.new_uom_value as "new_uom_value", w.ended_at as "completion_date",
|
|
50
|
+
v.id as "vas_id", v.name as "vas_name", v.description as "vas_description", ovi.vas_qty as "vas_qty", p2.sku as "new_sku", ov.new_packing_type as "new_packing_type", ov.new_uom as "new_uom", ov.output_qty as "output_qty", ov.new_uom_value as "new_uom_value", w.ended_at as "completion_date",
|
|
51
51
|
p1.name as "old_product_name", p1.description as "old_p_description", p1.brand as "old_p_brand", p1.brand_sku as "old_p_brand_sku",
|
|
52
52
|
p2.name as "new_product_name", p2.description as "new_p_description", p2.brand as "new_p_brand", p2.brand_sku as "new_p_brand_sku"
|
|
53
53
|
from order_vass ov
|
|
@@ -61,6 +61,7 @@ exports.vasReport = {
|
|
|
61
61
|
inner join worksheets w on ov.release_good_id = w.release_good_id
|
|
62
62
|
where b.id = $1 and w.type = 'VAS'
|
|
63
63
|
and w.status <> 'CANCELLED'
|
|
64
|
+
and rg.status not in ('CANCELLED', 'PENDING_CANCEL')
|
|
64
65
|
) src
|
|
65
66
|
where 1=1
|
|
66
67
|
${extraQueryFilter}
|
|
@@ -95,7 +96,7 @@ exports.vasReport = {
|
|
|
95
96
|
newProduct: { sku: item.new_sku }
|
|
96
97
|
},
|
|
97
98
|
orderVasItem: {
|
|
98
|
-
vas: { id: item.vas_id, name: item.vas_name },
|
|
99
|
+
vas: { id: item.vas_id, name: item.vas_name, description: item.vas_description },
|
|
99
100
|
vasQty: item.vas_qty
|
|
100
101
|
},
|
|
101
102
|
orderInventory: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vas-report.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/reports/vas-report.ts"],"names":[],"mappings":";;;AAEA,uDAAmD;AAGnD,0CAAiD;AAEpC,QAAA,SAAS,GAAG;IACvB,KAAK,CAAC,SAAS,CAAC,CAAM,EAAE,MAAiB,EAAE,OAAY;QACrD,IAAI;YACF,MAAM,EAAE,EAAE,EAAE,GAA0B,OAAO,CAAC,KAAK,CAAA;YACnD,IAAI,cAAc,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,UAAU,CAAC,CAAA;YAC1E,IAAI,WAAW,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,aAAa,CAAC,CAAA;YAC1E,IAAI,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,SAAS,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;YAEhE,IAAI,CAAC,cAAc,EAAE;gBACnB,MAAM,eAAe,CAAA;aACtB;YAED,MAAM,QAAQ,GAAa,MAAM,EAAE,CAAC,aAAa,CAAC,mBAAQ,CAAC,CAAC,OAAO,CAAC;gBAClE,EAAE,EAAE,cAAc,CAAC,KAAK;aACzB,CAAC,CAAA;YAEF,MAAM,IAAA,wB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,GAAG,EAAE,EAAE,EAAE,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,QAAQ,EAAE,WAAW,EAAE,IAAI,CAAC,eAAe,EAAE;wBAChF,MAAM,EAAE,IAAI,CAAC,OAAO;qBACrB;oBACD,cAAc,EAAE;wBACd,UAAU,EAAE,IAAI,CAAC,WAAW;qBAC7B;oBACD,SAAS,EAAE;wBACT,OAAO,EAAE,IAAI,CAAC,eAAe;qBAC9B;iBACF,CAAA;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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/operato-wms",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.264",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
"@things-factory/print-ui": "^4.3.253",
|
|
92
92
|
"@things-factory/product-base": "^4.3.262",
|
|
93
93
|
"@things-factory/resource-ui": "^4.3.253",
|
|
94
|
-
"@things-factory/sales-ui": "^4.3.
|
|
94
|
+
"@things-factory/sales-ui": "^4.3.264",
|
|
95
95
|
"@things-factory/scene-data-transform": "^4.3.253",
|
|
96
96
|
"@things-factory/scene-excel": "^4.3.253",
|
|
97
97
|
"@things-factory/scene-firebase": "^4.3.253",
|
|
@@ -107,8 +107,8 @@
|
|
|
107
107
|
"@things-factory/system-ui": "^4.3.253",
|
|
108
108
|
"@things-factory/transport-base": "^4.3.262",
|
|
109
109
|
"@things-factory/tutorial-ui": "^4.3.253",
|
|
110
|
-
"@things-factory/warehouse-base": "^4.3.
|
|
111
|
-
"@things-factory/worksheet-base": "^4.3.
|
|
110
|
+
"@things-factory/warehouse-base": "^4.3.263",
|
|
111
|
+
"@things-factory/worksheet-base": "^4.3.264"
|
|
112
112
|
},
|
|
113
113
|
"devDependencies": {
|
|
114
114
|
"@things-factory/builder": "^4.3.253",
|
|
@@ -117,5 +117,5 @@
|
|
|
117
117
|
"cypress-localstorage-commands": "^1.6.1",
|
|
118
118
|
"eslint-plugin-cypress": "^2.12.1"
|
|
119
119
|
},
|
|
120
|
-
"gitHead": "
|
|
120
|
+
"gitHead": "3750626bce9dd4dba8339105013e8316899de6fb"
|
|
121
121
|
}
|
|
@@ -58,7 +58,7 @@ export const vasReport = {
|
|
|
58
58
|
create temp table temp_vas_order_report on commit drop as (
|
|
59
59
|
select * from (
|
|
60
60
|
select distinct b.name as "company", rg.name as "order_no", rg.ref_no as "ref_no", p1.sku as "sku", ov.batch_id as "batch_no", ov.packing_type as "packing_type", ov.uom as "uom", ov.uom_value as "uom_value", op.release_qty as "release_qty",
|
|
61
|
-
v.id as "vas_id", v.name as "vas_name", ovi.vas_qty as "vas_qty", p2.sku as "new_sku", ov.new_packing_type as "new_packing_type", ov.new_uom as "new_uom", ov.output_qty as "output_qty", ov.new_uom_value as "new_uom_value", w.ended_at as "completion_date",
|
|
61
|
+
v.id as "vas_id", v.name as "vas_name", v.description as "vas_description", ovi.vas_qty as "vas_qty", p2.sku as "new_sku", ov.new_packing_type as "new_packing_type", ov.new_uom as "new_uom", ov.output_qty as "output_qty", ov.new_uom_value as "new_uom_value", w.ended_at as "completion_date",
|
|
62
62
|
p1.name as "old_product_name", p1.description as "old_p_description", p1.brand as "old_p_brand", p1.brand_sku as "old_p_brand_sku",
|
|
63
63
|
p2.name as "new_product_name", p2.description as "new_p_description", p2.brand as "new_p_brand", p2.brand_sku as "new_p_brand_sku"
|
|
64
64
|
from order_vass ov
|
|
@@ -72,6 +72,7 @@ export const vasReport = {
|
|
|
72
72
|
inner join worksheets w on ov.release_good_id = w.release_good_id
|
|
73
73
|
where b.id = $1 and w.type = 'VAS'
|
|
74
74
|
and w.status <> 'CANCELLED'
|
|
75
|
+
and rg.status not in ('CANCELLED', 'PENDING_CANCEL')
|
|
75
76
|
) src
|
|
76
77
|
where 1=1
|
|
77
78
|
${extraQueryFilter}
|
|
@@ -113,7 +114,7 @@ export const vasReport = {
|
|
|
113
114
|
newProduct: { sku: item.new_sku }
|
|
114
115
|
},
|
|
115
116
|
orderVasItem: {
|
|
116
|
-
vas: { id: item.vas_id, name: item.vas_name },
|
|
117
|
+
vas: { id: item.vas_id, name: item.vas_name, description: item.vas_description },
|
|
117
118
|
vasQty: item.vas_qty
|
|
118
119
|
},
|
|
119
120
|
orderInventory: {
|
package/translations/en.json
CHANGED
|
@@ -915,6 +915,7 @@
|
|
|
915
915
|
"label.order_status_received": "received",
|
|
916
916
|
"label.order_status_rejected": "rejected",
|
|
917
917
|
"label.order_status_sorting": "sorting",
|
|
918
|
+
"label.order_status_vas": "vas",
|
|
918
919
|
"label.order_type": "order type",
|
|
919
920
|
"label.order": "order",
|
|
920
921
|
"label.other_destination": "other destination",
|
package/translations/ko.json
CHANGED
|
@@ -928,6 +928,7 @@
|
|
|
928
928
|
"label.order_status_received": "수령",
|
|
929
929
|
"label.order_status_rejected": "취소",
|
|
930
930
|
"label.order_status_sorting": "[ko]sorting",
|
|
931
|
+
"label.order_status_vas": "[ko]vas",
|
|
931
932
|
"label.order_type": "지시 종류",
|
|
932
933
|
"label.other_destination": "다른 목적지",
|
|
933
934
|
"label.other": "별도",
|
package/translations/ms.json
CHANGED
|
@@ -903,6 +903,7 @@
|
|
|
903
903
|
"label.order_status_received": "received",
|
|
904
904
|
"label.order_status_rejected": "status pesanan ditolak ",
|
|
905
905
|
"label.order_status_sorting": "[ms]sorting",
|
|
906
|
+
"label.order_status_vas": "[ms]vas",
|
|
906
907
|
"label.order_type": "jenis pesanan",
|
|
907
908
|
"label.other_destination": "lain-lain tempat",
|
|
908
909
|
"label.other": "lain-lain",
|
package/translations/zh.json
CHANGED
|
@@ -873,6 +873,7 @@
|
|
|
873
873
|
"label.order_status_received": "received",
|
|
874
874
|
"label.order_status_rejected": "rejected",
|
|
875
875
|
"label.order_status_sorting": "[zh]sorting",
|
|
876
|
+
"label.order_status_vas": "[zh]vas",
|
|
876
877
|
"label.order_type": "order type",
|
|
877
878
|
"label.other_destination": "other destination",
|
|
878
879
|
"label.other": "other",
|