@things-factory/operato-wms 4.0.9 → 4.0.13
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/adjustment/transfer-inventory.js +368 -165
- package/client/pages/billing/claim-chit/claim-chit-list.js +7 -6
- package/client/pages/bulk-operation/bulk-operation.js +316 -0
- package/client/pages/bulk-operation/validate-ro-popup.js +445 -0
- package/client/pages/components/select-product-popup.js +15 -2
- package/client/pages/constants/inventory.js +1 -0
- package/client/pages/constants/location.js +33 -6
- package/client/pages/constants/order.js +10 -0
- package/client/pages/constants/worksheet.js +2 -2
- package/client/pages/inbound/inbound-worksheet.js +78 -9
- package/client/pages/inbound/putaway-product.js +214 -139
- package/client/pages/inbound/putaway-worksheet-generate-popup.js +24 -2
- package/client/pages/inbound/unload-product.js +149 -76
- package/client/pages/inbound/worksheet-putaway-return.js +22 -5
- package/client/pages/inbound/worksheet-putaway.js +21 -8
- package/client/pages/inbound/worksheet-unloading-return.js +22 -5
- package/client/pages/inbound/worksheet-unloading.js +8 -0
- package/client/pages/inventory/inventory-adjustment-approval.js +11 -19
- package/client/pages/inventory/inventory-adjustment.js +136 -101
- package/client/pages/inventory/inventory-by-product-detail.js +3 -5
- package/client/pages/inventory/inventory-by-product.js +8 -0
- package/client/pages/inventory/inventory-history-by-pallet.js +12 -5
- package/client/pages/inventory/inventory-history.js +14 -5
- package/client/pages/inventory/onhand-inventory.js +11 -2
- package/client/pages/inventory-check/create-cycle-count.js +12 -6
- package/client/pages/inventory-check/cycle-count-report.js +8 -0
- package/client/pages/inventory-check/inspecting-product.js +146 -80
- package/client/pages/inventory-check/worksheet-cycle-count.js +14 -0
- package/client/pages/manifest/create-loading-manifest.js +314 -0
- package/client/pages/manifest/dispatcher-verification-popup.js +86 -0
- package/client/pages/manifest/loading-manifest-detail.js +345 -0
- package/client/pages/manifest/loading-manifest-list.js +305 -0
- package/client/pages/master/location-list.js +58 -17
- package/client/pages/master/product/product-detail-bizplace-setting-popup.js +2 -2
- package/client/pages/master/product/product-details-popup.js +2 -2
- package/client/pages/master/product/product-list.js +5 -5
- package/client/pages/order/arrival-notice/arrival-notice-detail.js +134 -115
- package/client/pages/order/arrival-notice/arrival-notice-list.js +87 -6
- package/client/pages/order/arrival-notice/arrival-notice-requests.js +83 -6
- package/client/pages/order/arrival-notice/assign-buffer-location.js +8 -1
- package/client/pages/order/arrival-notice/check-arrived-notice.js +9 -1
- package/client/pages/order/arrival-notice/create-arrival-notice.js +38 -3
- package/client/pages/order/arrival-notice/duplicate-arrival-notice.js +290 -25
- package/client/pages/order/arrival-notice/edit-product-popup.js +36 -5
- package/client/pages/order/arrival-notice/receive-arrival-notice.js +8 -1
- package/client/pages/order/goods-received-note/received-note-list.js +138 -6
- package/client/pages/order/release-order/b2b/b2b-order-list.js +45 -5
- package/client/pages/order/release-order/b2b/b2b-order-requests.js +52 -12
- package/client/pages/order/release-order/b2c/b2c-order-requests.js +244 -24
- package/client/pages/order/release-order/bulk-print-packing-list.js +23 -0
- package/client/pages/order/release-order/create-release-order.js +55 -8
- package/client/pages/order/release-order/receive-release-order-request.js +35 -24
- package/client/pages/order/release-order/release-extra-product-popup.js +204 -63
- package/client/pages/order/release-order/release-order-detail.js +301 -74
- package/client/pages/order/return-order/check-return-order.js +9 -1
- package/client/pages/order/return-order/create-return-order.js +14 -2
- package/client/pages/order/return-order/receive-return-order-requests.js +9 -1
- package/client/pages/order/return-order/return-order-detail.js +15 -6
- package/client/pages/order/return-order/return-order-inventory-popup.js +7 -0
- package/client/pages/order/reverse-kitting-order/reverse-kitting-order-detail.js +124 -59
- package/client/pages/order/reverse-kitting-order/reverse-kitting-order-list.js +1 -6
- package/client/pages/order/reverse-kitting-order/reverse-kitting-pallet-label-popup.js +239 -0
- package/client/pages/order/transport-order/delivery-order-list.js +102 -59
- package/client/pages/outbound/inventory-assign-popup.js +23 -6
- package/client/pages/outbound/inventory-auto-assign-popup.js +22 -6
- package/client/pages/outbound/loading-product.js +4 -1
- package/client/pages/outbound/merged-outbound-worksheet.js +43 -1
- package/client/pages/outbound/packing-product.js +4 -1
- package/client/pages/outbound/packing-worksheet-list.js +39 -1
- package/client/pages/outbound/picking-product.js +803 -431
- package/client/pages/outbound/picking-replacement-popup.js +1 -1
- package/client/pages/outbound/serial-number-popup.js +280 -0
- package/client/pages/outbound/single-outbound-worksheet.js +47 -1
- package/client/pages/outbound/worksheet-batch-picking.js +22 -8
- package/client/pages/outbound/worksheet-loading.js +22 -5
- package/client/pages/outbound/worksheet-packing.js +8 -0
- package/client/pages/outbound/worksheet-picking.js +62 -8
- package/client/pages/outbound/worksheet-return.js +9 -1
- package/client/pages/outbound/worksheet-sorting.js +9 -1
- package/client/pages/report/custom-elccl/elccl-inventory-report.js +31 -30
- package/client/pages/report/custom-elccl/elccl-inventory-summary-report.js +23 -26
- package/client/pages/report/inventory-pallet-storage-report.js +11 -10
- package/client/pages/report/inventory-report.js +41 -43
- package/client/pages/report/inventory-summary-report.js +25 -28
- package/client/pages/report/product-label-report.js +401 -0
- package/client/pages/support/inventory-comparison.js +296 -0
- package/client/pages/vas/print-product-label.js +298 -132
- package/client/pages/vas/reverse-kitting/execute-reverse-kitting.js +38 -23
- package/client/pages/vas/reverse-kitting/popup-combination-sets.js +98 -15
- package/client/pages/vas/reverse-kitting/popup-reverse-kitting-template.js +129 -21
- package/client/pages/vas/vas-pallet-label-popup.js +5 -8
- package/client/route.js +28 -0
- package/dist-server/graphql/resolvers/custom/elccl/elccl-inventory-history-report.js +1 -1
- package/dist-server/graphql/resolvers/custom/elccl/elccl-inventory-history-report.js.map +1 -1
- package/dist-server/graphql/resolvers/custom/elccl/elccl-inventory-history-summary-report.js +64 -54
- package/dist-server/graphql/resolvers/custom/elccl/elccl-inventory-history-summary-report.js.map +1 -1
- package/dist-server/graphql/resolvers/extra/add-release-good-products.js +34 -9
- package/dist-server/graphql/resolvers/extra/add-release-good-products.js.map +1 -1
- package/dist-server/graphql/resolvers/index.js +5 -1
- package/dist-server/graphql/resolvers/index.js.map +1 -1
- package/dist-server/graphql/resolvers/inventory-comparison/index.js +6 -0
- package/dist-server/graphql/resolvers/inventory-comparison/index.js.map +1 -0
- package/dist-server/graphql/resolvers/inventory-comparison/inventory-comparison-list.js +78 -0
- package/dist-server/graphql/resolvers/inventory-comparison/inventory-comparison-list.js.map +1 -0
- package/dist-server/graphql/resolvers/reports/index.js +2 -1
- package/dist-server/graphql/resolvers/reports/index.js.map +1 -1
- package/dist-server/graphql/resolvers/reports/product-label-report.js +56 -0
- package/dist-server/graphql/resolvers/reports/product-label-report.js.map +1 -0
- package/dist-server/graphql/resolvers/shipping-provider/index.js +6 -0
- package/dist-server/graphql/resolvers/shipping-provider/index.js.map +1 -0
- package/dist-server/graphql/resolvers/shipping-provider/shipping-providers.js +20 -0
- package/dist-server/graphql/resolvers/shipping-provider/shipping-providers.js.map +1 -0
- package/dist-server/graphql/types/custom/elccl/elccl-inventory-report.js +1 -1
- package/dist-server/graphql/types/index.js +8 -2
- package/dist-server/graphql/types/index.js.map +1 -1
- package/dist-server/graphql/types/inventory-comparison/index.js +13 -0
- package/dist-server/graphql/types/inventory-comparison/index.js.map +1 -0
- package/dist-server/graphql/types/inventory-comparison/inventory-comparison-list.js +14 -0
- package/dist-server/graphql/types/inventory-comparison/inventory-comparison-list.js.map +1 -0
- package/dist-server/graphql/types/inventory-comparison/inventory-comparison.js +18 -0
- package/dist-server/graphql/types/inventory-comparison/inventory-comparison.js.map +1 -0
- package/dist-server/graphql/types/reports/index.js +6 -1
- package/dist-server/graphql/types/reports/index.js.map +1 -1
- package/dist-server/graphql/types/reports/product-label-report-list.js +14 -0
- package/dist-server/graphql/types/reports/product-label-report-list.js.map +1 -0
- package/dist-server/graphql/types/reports/product-label-report.js +16 -0
- package/dist-server/graphql/types/reports/product-label-report.js.map +1 -0
- package/dist-server/graphql/types/shipping-provider/index.js +10 -0
- package/dist-server/graphql/types/shipping-provider/index.js.map +1 -0
- package/dist-server/graphql/types/shipping-provider/shipping-provider-list.js +13 -0
- package/dist-server/graphql/types/shipping-provider/shipping-provider-list.js.map +1 -0
- package/dist-server/graphql/types/shipping-provider/shipping-provider.js +13 -0
- package/dist-server/graphql/types/shipping-provider/shipping-provider.js.map +1 -0
- package/package.json +65 -65
- package/server/graphql/resolvers/custom/elccl/elccl-inventory-history-report.ts +4 -2
- package/server/graphql/resolvers/custom/elccl/elccl-inventory-history-summary-report.ts +75 -65
- package/server/graphql/resolvers/extra/add-release-good-products.ts +57 -15
- package/server/graphql/resolvers/index.ts +5 -1
- package/server/graphql/resolvers/inventory-comparison/index.ts +5 -0
- package/server/graphql/resolvers/inventory-comparison/inventory-comparison-list.ts +99 -0
- package/server/graphql/resolvers/reports/index.ts +3 -1
- package/server/graphql/resolvers/reports/product-label-report.ts +56 -0
- package/server/graphql/resolvers/shipping-provider/index.ts +5 -0
- package/server/graphql/resolvers/shipping-provider/shipping-providers.ts +20 -0
- package/server/graphql/types/custom/elccl/elccl-inventory-report.ts +1 -1
- package/server/graphql/types/index.ts +8 -2
- package/server/graphql/types/inventory-comparison/index.ts +11 -0
- package/server/graphql/types/inventory-comparison/inventory-comparison-list.ts +8 -0
- package/server/graphql/types/inventory-comparison/inventory-comparison.ts +12 -0
- package/server/graphql/types/reports/index.ts +6 -1
- package/server/graphql/types/reports/product-label-report-list.ts +8 -0
- package/server/graphql/types/reports/product-label-report.ts +10 -0
- package/server/graphql/types/shipping-provider/index.ts +8 -0
- package/server/graphql/types/shipping-provider/shipping-provider-list.ts +7 -0
- package/server/graphql/types/shipping-provider/shipping-provider.ts +7 -0
- package/things-factory.config.js +30 -0
- package/translations/en.json +91 -11
- package/translations/ko.json +109 -11
- package/translations/ms.json +111 -12
- package/translations/zh.json +123 -26
|
@@ -5,6 +5,8 @@ import * as Dashboard from './dashboard'
|
|
|
5
5
|
import * as Extra from './extra'
|
|
6
6
|
import * as OpaMenu from './opa-menu'
|
|
7
7
|
import * as Reports from './reports'
|
|
8
|
+
import * as InventoryComparison from './inventory-comparison'
|
|
9
|
+
import * as ShippingProviders from './shipping-provider'
|
|
8
10
|
|
|
9
11
|
export const queries = [
|
|
10
12
|
BoardSetting.Query,
|
|
@@ -12,7 +14,9 @@ export const queries = [
|
|
|
12
14
|
CustomKimeda.Query,
|
|
13
15
|
Dashboard.Query,
|
|
14
16
|
OpaMenu.Query,
|
|
15
|
-
Reports.Query
|
|
17
|
+
Reports.Query,
|
|
18
|
+
InventoryComparison.Query,
|
|
19
|
+
ShippingProviders.Query
|
|
16
20
|
]
|
|
17
21
|
|
|
18
22
|
export const mutations = [Extra.Mutation]
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { onhandInventories } from '@things-factory/warehouse-base'
|
|
2
|
+
import { ListParam } from '@things-factory/shell'
|
|
3
|
+
import { EntityManager } from 'typeorm'
|
|
4
|
+
import { inventoryHistorySummaryReportQuery } from '../custom/elccl/elccl-inventory-history-summary-report'
|
|
5
|
+
|
|
6
|
+
export const inventoryComparisonList = {
|
|
7
|
+
async inventoryComparisonList(_: any, params: ListParam, context: any) {
|
|
8
|
+
try {
|
|
9
|
+
const { tx }: { tx: EntityManager } = context.state
|
|
10
|
+
|
|
11
|
+
let bizplaceFilter = params.filters.find(data => data.name === 'bizplace')
|
|
12
|
+
|
|
13
|
+
if (!bizplaceFilter) {
|
|
14
|
+
return
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
let toDateFilter = params.filters.find(data => data.name === 'toDate')
|
|
18
|
+
let toDateDate = new Date(toDateFilter.value)
|
|
19
|
+
let fromDate = toDateDate.setDate(toDateDate.getDate() - 1)
|
|
20
|
+
let fromDateISO = new Date(fromDate).toISOString()
|
|
21
|
+
let nonTallyFilter = params.filters.find(data => data.name === 'nonTally').value
|
|
22
|
+
let productFilter = params.filters.find(data => data.name === 'product')
|
|
23
|
+
|
|
24
|
+
params.filters.push({
|
|
25
|
+
name: 'fromDate',
|
|
26
|
+
operator: 'eq',
|
|
27
|
+
value: fromDateISO
|
|
28
|
+
})
|
|
29
|
+
|
|
30
|
+
params.filters.push(
|
|
31
|
+
{ name: 'status', operator: 'notin', value: ['INTRANSIT', 'TERMINATED', 'DELETED'] },
|
|
32
|
+
{ name: 'remainOnly', operator: 'eq', value: true },
|
|
33
|
+
{ name: 'unlockOnly', operator: 'eq', value: true },
|
|
34
|
+
{ name: 'created_at', operator: 'eq', value: toDateFilter.value },
|
|
35
|
+
{ name: 'timezoneOffset', operator: 'eq', value: new Date().getTimezoneOffset() },
|
|
36
|
+
{ name: 'expiration', operator: 'eq', value: false }
|
|
37
|
+
)
|
|
38
|
+
|
|
39
|
+
let productQueryFilter = ``
|
|
40
|
+
|
|
41
|
+
if (productFilter) {
|
|
42
|
+
let products = productFilter.value
|
|
43
|
+
.toLowerCase()
|
|
44
|
+
.split(',')
|
|
45
|
+
.map(prod => {
|
|
46
|
+
return "'%" + prod.trim().replace(/'/g, "''") + "%'"
|
|
47
|
+
})
|
|
48
|
+
.join(',')
|
|
49
|
+
|
|
50
|
+
productQueryFilter =
|
|
51
|
+
productQueryFilter +
|
|
52
|
+
`
|
|
53
|
+
${nonTallyFilter ? 'and' : 'where'} (lower(summ.product_name) like any(array[${products}])
|
|
54
|
+
or lower(summ.product_sku) like any(array[${products}]))`
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
await Promise.all([
|
|
58
|
+
inventoryHistorySummaryReportQuery(_, params, context),
|
|
59
|
+
onhandInventories(params.filters, params.pagination, params.sortings, [], context, false)
|
|
60
|
+
])
|
|
61
|
+
|
|
62
|
+
await tx.query(`
|
|
63
|
+
create temp table tmp_inv_comp on commit drop as (
|
|
64
|
+
select summ."batch_id", summ.product_id, summ.product_name, summ.product_sku, summ.packing_type, summ.closing_qty, coalesce(oh.qty, 0) as "onhand_qty" from temp_inventory_summary summ
|
|
65
|
+
left join (
|
|
66
|
+
select "batch_id" as "batch_id", product_id, sum("qty") as qty from tmp_data group by "batch_id", product_id
|
|
67
|
+
) oh on oh.batch_id = summ.batch_id and oh.product_id = summ.product_id
|
|
68
|
+
${nonTallyFilter ? 'where coalesce(oh.qty, 0) <> summ.closing_qty' : ''}
|
|
69
|
+
${productQueryFilter}
|
|
70
|
+
);
|
|
71
|
+
`)
|
|
72
|
+
|
|
73
|
+
let sumData = await tx.query(`
|
|
74
|
+
select * from tmp_inv_comp
|
|
75
|
+
offset $1 limit $2
|
|
76
|
+
`, [(params.pagination.page - 1) * params.pagination.limit, params.pagination.limit])
|
|
77
|
+
|
|
78
|
+
const totalQuery: number = await tx.query(`select count(*) from tmp_inv_comp `)
|
|
79
|
+
|
|
80
|
+
const total = parseInt(totalQuery[0].count)
|
|
81
|
+
|
|
82
|
+
const items: any[] = sumData.map(item => {
|
|
83
|
+
return {
|
|
84
|
+
productName: item.product_name,
|
|
85
|
+
productSku: item.product_sku,
|
|
86
|
+
packingType: item.packing_type,
|
|
87
|
+
closingQty: item.closing_qty,
|
|
88
|
+
remainQty: item.onhand_qty,
|
|
89
|
+
batchId: item.batch_id
|
|
90
|
+
}
|
|
91
|
+
})
|
|
92
|
+
|
|
93
|
+
return { items, total }
|
|
94
|
+
|
|
95
|
+
} catch (error) {
|
|
96
|
+
throw error
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { inboundOrderDetailsReport } from './inbound-order-details-report'
|
|
2
2
|
import { outboundOrderDetailsReport } from './outbound-order-details-report'
|
|
3
|
+
import { productLabelReport } from './product-label-report'
|
|
3
4
|
|
|
4
5
|
export const Query = {
|
|
5
6
|
...inboundOrderDetailsReport,
|
|
6
|
-
...outboundOrderDetailsReport
|
|
7
|
+
...outboundOrderDetailsReport,
|
|
8
|
+
...productLabelReport
|
|
7
9
|
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { getRepository } from 'typeorm'
|
|
2
|
+
|
|
3
|
+
import { Sequence, SEQUENCE_TYPE } from '@things-factory/id-rule-base'
|
|
4
|
+
import { Domain, ListParam } from '@things-factory/shell'
|
|
5
|
+
|
|
6
|
+
export const productLabelReport = {
|
|
7
|
+
async productLabelReport(_: any, params: ListParam, context: any) {
|
|
8
|
+
try {
|
|
9
|
+
const { domain }: { domain: Domain } = context.state
|
|
10
|
+
// const { domain }: { domain: Domain } = context.state
|
|
11
|
+
const bizplaceId = params.filters.find(data => data.name === 'bizplace').value
|
|
12
|
+
const type = params.filters.find(data => data.name === 'type')?.value
|
|
13
|
+
const fromDate = params.filters.find(data => data.name === 'fromDate').value
|
|
14
|
+
const toDate = params.filters.find(data => data.name === 'toDate').value
|
|
15
|
+
|
|
16
|
+
if (!bizplaceId || !fromDate || !toDate) throw new Error('Invalid input')
|
|
17
|
+
|
|
18
|
+
const items = await getRepository(Sequence).query(`
|
|
19
|
+
SELECT "date", "type", "count", "bizplace_id" FROM (
|
|
20
|
+
SELECT
|
|
21
|
+
"sq"."pattern"::JSONB ->> 'type' AS "type",
|
|
22
|
+
"sq"."pattern"::JSONB ->> 'date' AS "date",
|
|
23
|
+
"sq"."pattern"::JSONB ->> 'bizplaceId' AS "bizplace_id",
|
|
24
|
+
"sq"."seq" AS "count"
|
|
25
|
+
FROM "sequences" "sq" WHERE "sq"."type" = '${SEQUENCE_TYPE.PRODUCT_LABEL_COUNTER}'
|
|
26
|
+
AND "sq"."domain_id" = '${domain.id}'
|
|
27
|
+
) AS foo
|
|
28
|
+
WHERE "bizplace_id" = '${bizplaceId}'
|
|
29
|
+
${type ? `AND "type" ilike '%${type}%'` : ''}
|
|
30
|
+
AND "date"::date BETWEEN '${fromDate}' AND '${toDate}'
|
|
31
|
+
`)
|
|
32
|
+
|
|
33
|
+
// @farishelmi any usage for this function? If no please remove.
|
|
34
|
+
/*
|
|
35
|
+
need to transform into queryBuilder form
|
|
36
|
+
const qb: SelectQueryBuilder<Sequence> = tx
|
|
37
|
+
.getRepository(Sequence)
|
|
38
|
+
.createQueryBuilder('sq')
|
|
39
|
+
.select(`"sq"."pattern"::JSONB ->> 'type'`, 'type')
|
|
40
|
+
.addSelect(`"sq"."pattern"::JSONB ->> 'date'`, 'date')
|
|
41
|
+
.addSelect(`"sq"."pattern"::JSONB ->> 'bizplaceId'`, 'bizplace_id')
|
|
42
|
+
.addSelect(`"sq"."seq"`, 'count')
|
|
43
|
+
.where('"sq"."type" = :sequenceType', { sequenceType: SEQUENCE_TYPE.PRODUCT_LABEL_COUNTER })
|
|
44
|
+
.andWhere(`"sq"."pattern"::JSONB ->> 'bizplaceId' = :bizplaceId`, { bizplaceId })
|
|
45
|
+
.andWhere(`"sq"."domain_id" = :domainId`, { domainId: domain.id })
|
|
46
|
+
*/
|
|
47
|
+
|
|
48
|
+
return {
|
|
49
|
+
items,
|
|
50
|
+
total: 0
|
|
51
|
+
}
|
|
52
|
+
} catch (error) {
|
|
53
|
+
throw error
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { getRepository } from 'typeorm'
|
|
2
|
+
import { ReleaseGood } from '@things-factory/sales-base'
|
|
3
|
+
|
|
4
|
+
import { Domain, ListParam } from '@things-factory/shell'
|
|
5
|
+
|
|
6
|
+
export const shippingProviders = {
|
|
7
|
+
async shippingProviders(_: any, params: ListParam, context: any) {
|
|
8
|
+
try {
|
|
9
|
+
const { domain }: { domain: Domain } = context.state
|
|
10
|
+
|
|
11
|
+
const items: any[] = await getRepository(ReleaseGood).query(`
|
|
12
|
+
SELECT DISTINCT transporter FROM release_goods WHERE domain_id = '${domain.id}' AND transporter IS NOT null AND transporter != '' AND type = 'b2c'
|
|
13
|
+
`)
|
|
14
|
+
|
|
15
|
+
return { items: items }
|
|
16
|
+
} catch (error) {
|
|
17
|
+
throw error
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -5,6 +5,8 @@ import * as Dashboard from './dashboard'
|
|
|
5
5
|
import * as Extra from './extra'
|
|
6
6
|
import * as OpaMenu from './opa-menu'
|
|
7
7
|
import * as Reports from './reports'
|
|
8
|
+
import * as InventoryComparison from './inventory-comparison'
|
|
9
|
+
import * as ShippingProvider from './shipping-provider'
|
|
8
10
|
|
|
9
11
|
export const queries = [
|
|
10
12
|
BoardSetting.Query,
|
|
@@ -12,7 +14,9 @@ export const queries = [
|
|
|
12
14
|
CustomKimeda.Query,
|
|
13
15
|
Dashboard.Query,
|
|
14
16
|
OpaMenu.Query,
|
|
15
|
-
Reports.Query
|
|
17
|
+
Reports.Query,
|
|
18
|
+
InventoryComparison.Query,
|
|
19
|
+
ShippingProvider.Query
|
|
16
20
|
]
|
|
17
21
|
|
|
18
22
|
export const mutations = [Extra.Mutation]
|
|
@@ -22,5 +26,7 @@ export const types = [
|
|
|
22
26
|
...CustomElccl.Types,
|
|
23
27
|
...Dashboard.Types,
|
|
24
28
|
...OpaMenu.Types,
|
|
25
|
-
...Reports.Types
|
|
29
|
+
...Reports.Types,
|
|
30
|
+
...InventoryComparison.Types,
|
|
31
|
+
...ShippingProvider.Types
|
|
26
32
|
]
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { InventoryComparison } from "./inventory-comparison";
|
|
2
|
+
import { InventoryComparisonList } from "./inventory-comparison-list";
|
|
3
|
+
|
|
4
|
+
export const Query = `
|
|
5
|
+
inventoryComparisonList(filters: [Filter], pagination: Pagination, sortings: [Sorting]): InventoryComparisonList @privilege(category: "inventory_comparison", privilege: "query") @transaction
|
|
6
|
+
`
|
|
7
|
+
|
|
8
|
+
export const Types = [
|
|
9
|
+
InventoryComparison,
|
|
10
|
+
InventoryComparisonList
|
|
11
|
+
]
|
|
@@ -2,15 +2,20 @@ import { InboundOrderDetailsReport } from './inbound-order-details-report'
|
|
|
2
2
|
import { InboundOrderDetailsReportList } from './inbound-order-details-report-list'
|
|
3
3
|
import { OutboundOrderDetailsReport } from './outbound-order-details-report'
|
|
4
4
|
import { OutboundOrderDetailsReportList } from './outbound-order-details-report-list'
|
|
5
|
+
import { ProductLabelReport } from './product-label-report'
|
|
6
|
+
import { ProductLabelReportList } from './product-label-report-list'
|
|
5
7
|
|
|
6
8
|
export const Query = `
|
|
7
9
|
inboundOrderDetailsReport(filters: [Filter!], pagination: Pagination, sortings: [Sorting!]): InboundOrderDetailsReportList @transaction
|
|
8
10
|
outboundOrderDetailsReport(filters: [Filter!], pagination: Pagination, sortings: [Sorting!]): OutboundOrderDetailsReportList @transaction
|
|
11
|
+
productLabelReport(filters: [Filter!], pagination: Pagination, sortings: [Sorting!]): ProductLabelReportList @transaction
|
|
9
12
|
`
|
|
10
13
|
|
|
11
14
|
export const Types = [
|
|
12
15
|
InboundOrderDetailsReport,
|
|
13
16
|
InboundOrderDetailsReportList,
|
|
14
17
|
OutboundOrderDetailsReport,
|
|
15
|
-
OutboundOrderDetailsReportList
|
|
18
|
+
OutboundOrderDetailsReportList,
|
|
19
|
+
ProductLabelReport,
|
|
20
|
+
ProductLabelReportList
|
|
16
21
|
]
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ShippingProviderList } from './shipping-provider-list'
|
|
2
|
+
import { ShippingProvider } from './shipping-provider'
|
|
3
|
+
|
|
4
|
+
export const Query = `
|
|
5
|
+
shippingProviders: ShippingProviderList @transaction
|
|
6
|
+
`
|
|
7
|
+
|
|
8
|
+
export const Types = [ShippingProviderList, ShippingProvider]
|
package/things-factory.config.js
CHANGED
|
@@ -211,6 +211,18 @@ export default {
|
|
|
211
211
|
tagname: 'bulk-print-packing-list',
|
|
212
212
|
page: 'bulk_print_packing_list'
|
|
213
213
|
},
|
|
214
|
+
{
|
|
215
|
+
tagname: 'create-loading-manifest',
|
|
216
|
+
page: 'create_loading_manifest'
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
tagname: 'loading-manifest-list',
|
|
220
|
+
page: 'loading_manifest_list'
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
tagname: 'loading-manifest-detail',
|
|
224
|
+
page: 'loading_manifest_detail'
|
|
225
|
+
},
|
|
214
226
|
/**
|
|
215
227
|
* Billing Menus Section
|
|
216
228
|
*/
|
|
@@ -465,6 +477,10 @@ export default {
|
|
|
465
477
|
tagname: 'outbound-order-details-report',
|
|
466
478
|
page: 'outbound_order_details_report'
|
|
467
479
|
},
|
|
480
|
+
{
|
|
481
|
+
tagname: 'product-label-report',
|
|
482
|
+
page: 'product_label_report'
|
|
483
|
+
},
|
|
468
484
|
|
|
469
485
|
/**
|
|
470
486
|
* Custom ELCCL Menus Section
|
|
@@ -494,6 +510,14 @@ export default {
|
|
|
494
510
|
page: 'elccl_delivery_order_summary'
|
|
495
511
|
},
|
|
496
512
|
|
|
513
|
+
/**
|
|
514
|
+
* Support
|
|
515
|
+
*/
|
|
516
|
+
{
|
|
517
|
+
tagname: 'inventory-comparison',
|
|
518
|
+
page: 'inventory_comparison'
|
|
519
|
+
},
|
|
520
|
+
|
|
497
521
|
/** Custom VAS */
|
|
498
522
|
{
|
|
499
523
|
tagname: 'reverse-kitting-order-list',
|
|
@@ -506,6 +530,12 @@ export default {
|
|
|
506
530
|
{
|
|
507
531
|
tagname: 'execute-reverse-kitting',
|
|
508
532
|
page: 'execute_reverse_kitting'
|
|
533
|
+
},
|
|
534
|
+
|
|
535
|
+
/* Bulk Operation */
|
|
536
|
+
{
|
|
537
|
+
tagname: 'bulk-operation',
|
|
538
|
+
page: 'bulk_operation'
|
|
509
539
|
}
|
|
510
540
|
],
|
|
511
541
|
bootstrap
|