@things-factory/operato-wms 4.3.465 → 4.3.467

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/client/pages/outbound/picking-product.js +25 -6
  2. package/client/pages/outbound/route-label-popup.js +97 -27
  3. package/client/pages/report/manifest-report.js +448 -0
  4. package/client/route.js +4 -0
  5. package/dist-server/graphql/resolvers/dashboard/inventory-expiry-monitor.js +5 -4
  6. package/dist-server/graphql/resolvers/dashboard/inventory-expiry-monitor.js.map +1 -1
  7. package/dist-server/graphql/resolvers/reports/index.js +3 -2
  8. package/dist-server/graphql/resolvers/reports/index.js.map +1 -1
  9. package/dist-server/graphql/resolvers/reports/manifest-report.js +96 -0
  10. package/dist-server/graphql/resolvers/reports/manifest-report.js.map +1 -0
  11. package/dist-server/graphql/types/dashboard/inventory-expiry-counter.js +1 -0
  12. package/dist-server/graphql/types/dashboard/inventory-expiry-counter.js.map +1 -1
  13. package/dist-server/graphql/types/reports/index.js +8 -3
  14. package/dist-server/graphql/types/reports/index.js.map +1 -1
  15. package/dist-server/graphql/types/reports/manifest-report-list.js +14 -0
  16. package/dist-server/graphql/types/reports/manifest-report-list.js.map +1 -0
  17. package/dist-server/graphql/types/reports/manifest-report-type.js +22 -0
  18. package/dist-server/graphql/types/reports/manifest-report-type.js.map +1 -0
  19. package/package.json +4 -4
  20. package/server/graphql/resolvers/dashboard/inventory-expiry-monitor.ts +9 -5
  21. package/server/graphql/resolvers/reports/index.ts +8 -3
  22. package/server/graphql/resolvers/reports/manifest-report.ts +109 -0
  23. package/server/graphql/types/dashboard/inventory-expiry-counter.ts +1 -0
  24. package/server/graphql/types/reports/index.ts +16 -5
  25. package/server/graphql/types/reports/manifest-report-list.ts +8 -0
  26. package/server/graphql/types/reports/manifest-report-type.ts +16 -0
  27. package/things-factory.config.js +4 -0
  28. package/translations/en.json +1 -0
  29. package/translations/ko.json +1 -0
  30. package/translations/ms.json +1 -0
  31. package/translations/zh.json +1 -0
@@ -5,12 +5,16 @@ const analysis_picking_packing_report_1 = require("./analysis-picking-packing-re
5
5
  const analysis_picking_packing_report_list_1 = require("./analysis-picking-packing-report-list");
6
6
  const costing_report_1 = require("./costing-report");
7
7
  const costing_report_list_1 = require("./costing-report-list");
8
+ const cycle_count_report_1 = require("./cycle-count-report");
9
+ const cycle_count_report_list_1 = require("./cycle-count-report-list");
8
10
  const inbound_order_details_report_1 = require("./inbound-order-details-report");
9
11
  const inbound_order_details_report_list_1 = require("./inbound-order-details-report-list");
10
12
  const inbound_serial_number_report_1 = require("./inbound-serial-number-report");
11
13
  const inbound_serial_number_report_list_1 = require("./inbound-serial-number-report-list");
12
14
  const loading_qc_report_1 = require("./loading-qc-report");
13
15
  const loading_qc_report_list_1 = require("./loading-qc-report-list");
16
+ const manifest_report_list_1 = require("./manifest-report-list");
17
+ const manifest_report_type_1 = require("./manifest-report-type");
14
18
  const non_loaded_inventory_report_1 = require("./non-loaded-inventory-report");
15
19
  const non_loaded_inventory_report_list_1 = require("./non-loaded-inventory-report-list");
16
20
  const outbound_order_details_report_1 = require("./outbound-order-details-report");
@@ -25,8 +29,6 @@ const shortage_report_list_1 = require("./shortage-report-list");
25
29
  const shortage_report_type_1 = require("./shortage-report-type");
26
30
  const vas_report_1 = require("./vas-report");
27
31
  const vas_report_list_1 = require("./vas-report-list");
28
- const cycle_count_report_1 = require("./cycle-count-report");
29
- const cycle_count_report_list_1 = require("./cycle-count-report-list");
30
32
  exports.Query = `
31
33
  inboundSerialNumberReport(filters: [Filter!], pagination: Pagination, sortings: [Sorting!]): InboundSerialNumberReportList @transaction
32
34
  outboundSerialNumberReport(filters: [Filter!], pagination: Pagination, sortings: [Sorting!]): OutboundSerialNumberReportList @transaction
@@ -42,6 +44,7 @@ exports.Query = `
42
44
  analysisPickingPackingReport(filters: [Filter!], pagination: Pagination, sortings: [Sorting!]): AnalysisPickingPackingReportList @transaction
43
45
  cycleCountReport(name: String!): CycleCountReportList @transaction
44
46
  nonLoadedOrderInventories(filters: [Filter!], pagination: Pagination, sortings: [Sorting!]): NonLoadedOrderInventoryReportList @transaction
47
+ manifestReport(filters: [Filter!], pagination: Pagination, sortings: [Sorting!]): ManifestReportList @transaction
45
48
  `;
46
49
  exports.Types = [
47
50
  inbound_serial_number_report_1.InboundSerialNumberReport,
@@ -71,6 +74,8 @@ exports.Types = [
71
74
  cycle_count_report_1.CycleCountReport,
72
75
  cycle_count_report_list_1.CycleCountReportList,
73
76
  non_loaded_inventory_report_1.NonLoadedOrderInventoryReport,
74
- non_loaded_inventory_report_list_1.NonLoadedOrderInventoryReportList
77
+ non_loaded_inventory_report_list_1.NonLoadedOrderInventoryReportList,
78
+ manifest_report_type_1.ManifestReport,
79
+ manifest_report_list_1.ManifestReportList
75
80
  ];
76
81
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../server/graphql/types/reports/index.ts"],"names":[],"mappings":";;;AAAA,uFAAgF;AAChF,iGAAyF;AACzF,qDAAgD;AAChD,+DAAyD;AACzD,iFAA0E;AAC1E,2FAAmF;AACnF,iFAA0E;AAC1E,2FAAmF;AACnF,2DAAqD;AACrD,qEAA8D;AAC9D,+EAA6E;AAC7E,yFAAsF;AACtF,mFAA4E;AAC5E,6FAAqF;AACrF,mFAA4E;AAC5E,6FAAqF;AACrF,iEAA2D;AAC3D,2EAAoE;AACpE,yEAAmE;AACnE,mFAA4E;AAC5E,iEAA2D;AAC3D,iEAAuD;AACvD,6CAAwD;AACxD,uDAAqE;AACrE,6DAAuD;AACvD,uEAAgE;AAEnD,QAAA,KAAK,GAAG;;;;;;;;;;;;;;;CAepB,CAAA;AAEY,QAAA,KAAK,GAAG;IACnB,wDAAyB;IACzB,iEAA6B;IAC7B,0DAA0B;IAC1B,mEAA8B;IAC9B,wDAAyB;IACzB,iEAA6B;IAC7B,0DAA0B;IAC1B,mEAA8B;IAC9B,yCAAkB;IAClB,kDAAsB;IACtB,8BAAa;IACb,uCAAiB;IACjB,iDAAsB;IACtB,0DAA0B;IAC1B,qCAAc;IACd,yCAAkB;IAClB,mCAAe;IACf,4CAAmB;IACnB,2BAAc;IACd,oCAAkB;IAClB,sBAAS;IACT,+BAAa;IACb,8DAA4B;IAC5B,uEAAgC;IAChC,qCAAgB;IAChB,8CAAoB;IACpB,2DAA6B;IAC7B,oEAAiC;CAClC,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../server/graphql/types/reports/index.ts"],"names":[],"mappings":";;;AAAA,uFAAgF;AAChF,iGAAyF;AACzF,qDAAgD;AAChD,+DAAyD;AACzD,6DAAuD;AACvD,uEAAgE;AAChE,iFAA0E;AAC1E,2FAAmF;AACnF,iFAA0E;AAC1E,2FAAmF;AACnF,2DAAqD;AACrD,qEAA8D;AAC9D,iEAA2D;AAC3D,iEAAuD;AACvD,+EAA6E;AAC7E,yFAAsF;AACtF,mFAA4E;AAC5E,6FAAqF;AACrF,mFAA4E;AAC5E,6FAAqF;AACrF,iEAA2D;AAC3D,2EAAoE;AACpE,yEAAmE;AACnE,mFAA4E;AAC5E,iEAA2D;AAC3D,iEAAuD;AACvD,6CAGqB;AACrB,uDAG0B;AAEb,QAAA,KAAK,GAAG;;;;;;;;;;;;;;;;CAgBpB,CAAA;AAEY,QAAA,KAAK,GAAG;IACnB,wDAAyB;IACzB,iEAA6B;IAC7B,0DAA0B;IAC1B,mEAA8B;IAC9B,wDAAyB;IACzB,iEAA6B;IAC7B,0DAA0B;IAC1B,mEAA8B;IAC9B,yCAAkB;IAClB,kDAAsB;IACtB,8BAAa;IACb,uCAAiB;IACjB,iDAAsB;IACtB,0DAA0B;IAC1B,qCAAc;IACd,yCAAkB;IAClB,mCAAe;IACf,4CAAmB;IACnB,2BAAc;IACd,oCAAkB;IAClB,sBAAS;IACT,+BAAa;IACb,8DAA4B;IAC5B,uEAAgC;IAChC,qCAAgB;IAChB,8CAAoB;IACpB,2DAA6B;IAC7B,oEAAiC;IACjC,qCAAc;IACd,yCAAkB;CACnB,CAAA"}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.ManifestReportList = void 0;
7
+ const graphql_tag_1 = __importDefault(require("graphql-tag"));
8
+ exports.ManifestReportList = (0, graphql_tag_1.default) `
9
+ type ManifestReportList {
10
+ items: [ManifestReport]
11
+ total: Int
12
+ }
13
+ `;
14
+ //# sourceMappingURL=manifest-report-list.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"manifest-report-list.js","sourceRoot":"","sources":["../../../../server/graphql/types/reports/manifest-report-list.ts"],"names":[],"mappings":";;;;;;AAAA,8DAA6B;AAEhB,QAAA,kBAAkB,GAAG,IAAA,qBAAG,EAAA;;;;;CAKpC,CAAA"}
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.ManifestReport = void 0;
7
+ const graphql_tag_1 = __importDefault(require("graphql-tag"));
8
+ exports.ManifestReport = (0, graphql_tag_1.default) `
9
+ type ManifestReport {
10
+ bizplace: String
11
+ refNo: String
12
+ roNo: String
13
+ status: String
14
+ trackingNo: String
15
+ manifestNo: String
16
+ manifestedAt: Date
17
+ manifestedBy: String
18
+ orderedAt: String
19
+ transporter: String
20
+ }
21
+ `;
22
+ //# sourceMappingURL=manifest-report-type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"manifest-report-type.js","sourceRoot":"","sources":["../../../../server/graphql/types/reports/manifest-report-type.ts"],"names":[],"mappings":";;;;;;AAAA,8DAA6B;AAEhB,QAAA,cAAc,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;;CAahC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/operato-wms",
3
- "version": "4.3.465",
3
+ "version": "4.3.467",
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.434",
92
92
  "@things-factory/product-base": "^4.3.452",
93
93
  "@things-factory/resource-ui": "^4.3.452",
94
- "@things-factory/sales-ui": "^4.3.464",
94
+ "@things-factory/sales-ui": "^4.3.467",
95
95
  "@things-factory/scene-data-transform": "^4.3.381",
96
96
  "@things-factory/scene-excel": "^4.3.381",
97
97
  "@things-factory/scene-firebase": "^4.3.381",
@@ -108,7 +108,7 @@
108
108
  "@things-factory/transport-base": "^4.3.452",
109
109
  "@things-factory/tutorial-ui": "^4.3.452",
110
110
  "@things-factory/warehouse-base": "^4.3.464",
111
- "@things-factory/worksheet-base": "^4.3.464"
111
+ "@things-factory/worksheet-base": "^4.3.467"
112
112
  },
113
113
  "devDependencies": {
114
114
  "@things-factory/builder": "^4.3.381",
@@ -117,5 +117,5 @@
117
117
  "cypress-localstorage-commands": "^1.6.1",
118
118
  "eslint-plugin-cypress": "^2.12.1"
119
119
  },
120
- "gitHead": "8aaa13591defd6c8cee9cf68f1e4bdd82a216d68"
120
+ "gitHead": "67d3750c4815bfe86d33121c2d3d34e9329e180a"
121
121
  }
@@ -1,8 +1,11 @@
1
1
  import { EntityManager } from 'typeorm'
2
2
 
3
3
  import { User } from '@things-factory/auth-base'
4
- import { Domain, ListParam } from '@things-factory/shell'
5
4
  import { getPermittedBizplaceIds } from '@things-factory/biz-base'
5
+ import {
6
+ Domain,
7
+ ListParam
8
+ } from '@things-factory/shell'
6
9
 
7
10
  export const inventoryExpiryMonitorResolver = {
8
11
  async inventoryExpiryMonitor(_: any, params: ListParam, context: any) {
@@ -26,11 +29,12 @@ export const inventoryExpiryMonitorResolver = {
26
29
  sixtyDays: number
27
30
  }[] = await tx.query(
28
31
  `
29
- SELECT "location", sum("expired") AS "expired", sum("sixMonths") AS "sixMonths", sum("nineMonths") AS "nineMonths" FROM (
32
+ SELECT "location", sum("expired") AS "expired", SUM("threeMonths") AS "threeMonths", sum("sixMonths") AS "sixMonths", sum("nineMonths") AS "nineMonths" FROM (
30
33
  SELECT
31
34
  CASE WHEN l.TYPE IN ('QUARANTINE','RESERVE') THEN 'QUARANTINED' ELSE 'IN SHELF' END AS "location",
32
35
  CASE WHEN i.expiration_date - now()::date <= 0 THEN 1 ELSE 0 END AS "expired",
33
- CASE WHEN i.expiration_date - now()::date > 0 AND i.expiration_date - now()::date <= 180 THEN 1 ELSE 0 END AS "sixMonths",
36
+ CASE WHEN i.expiration_date - now()::date > 0 AND i.expiration_date - now()::date <= 90 THEN 1 ELSE 0 END AS "threeMonths",
37
+ CASE WHEN i.expiration_date - now()::date > 90 AND i.expiration_date - now()::date <= 180 THEN 1 ELSE 0 END AS "sixMonths",
34
38
  CASE WHEN i.expiration_date - now()::date > 180 AND i.expiration_date - now()::date <= 270 THEN 1 ELSE 0 END AS "nineMonths"
35
39
  FROM inventories i
36
40
  INNER JOIN locations l ON i.location_id = l.id
@@ -38,7 +42,7 @@ export const inventoryExpiryMonitorResolver = {
38
42
  AND i.expiration_date NOTNULL
39
43
  AND i.status = 'STORED'
40
44
  AND i.domain_id = $1
41
- AND i.bizplace_id IN (${bizplaceIds})
45
+ AND i.bizplace_id in (${bizplaceIds})
42
46
  ) AS foo
43
47
  GROUP BY "location"
44
48
  `,
@@ -56,5 +60,5 @@ function getExpiryCountByStatus(expInventories, location) {
56
60
  let matchedInv: any = expInventories.find(inv => inv.location == location)
57
61
 
58
62
  if (matchedInv) return (({ location, ...inv }) => inv)(matchedInv)
59
- else return { expired: 0, sixMonths: 0, nineMonths: 0 }
63
+ else return { expired: 0, threeMonths: 0, sixMonths: 0, nineMonths: 0 }
60
64
  }
@@ -1,7 +1,9 @@
1
1
  import { analysisPickingPackingReport } from './analysis-picking-packing-report'
2
2
  import { costingReport } from './costing-report'
3
+ import { cycleCountReport } from './cycle-count-report'
3
4
  import { inboundOrderDetailsReport } from './inbound-order-details-report'
4
5
  import { inboundSerialNumberReport } from './inbound-serial-number-report'
6
+ import { manifestReport } from './manifest-report'
5
7
  import { nonLoadedOrderInventoriesReport } from './non-loaded-inventory-report'
6
8
  import { outboundOrderDetailsReport } from './outbound-order-details-report'
7
9
  import { outboundSerialNumberReport } from './outbound-serial-number-report'
@@ -9,8 +11,10 @@ import { productLabelReport } from './product-label-report'
9
11
  import { releaseInventoryReport } from './release-inventory-report'
10
12
  import { shortageReport } from './shortage-report'
11
13
  import { loadingQcReport } from './tote-loading-qc-report'
12
- import { orderVasReport, vasReport } from './vas-report'
13
- import { cycleCountReport } from './cycle-count-report'
14
+ import {
15
+ orderVasReport,
16
+ vasReport
17
+ } from './vas-report'
14
18
 
15
19
  export const Query = {
16
20
  ...inboundSerialNumberReport,
@@ -26,5 +30,6 @@ export const Query = {
26
30
  ...vasReport,
27
31
  ...analysisPickingPackingReport,
28
32
  ...cycleCountReport,
29
- ...nonLoadedOrderInventoriesReport
33
+ ...nonLoadedOrderInventoriesReport,
34
+ ...manifestReport
30
35
  }
@@ -0,0 +1,109 @@
1
+ import { EntityManager } from 'typeorm'
2
+
3
+ import { ListParam } from '@things-factory/shell'
4
+
5
+ export const manifestReport = {
6
+ async manifestReport(_: any, params: ListParam, context: any) {
7
+ try {
8
+ const { tx }: { tx: EntityManager } = context.state
9
+ let bizplace = params.filters.find(items => items.name === 'bizplace')
10
+ let trackingNo = params.filters.findIndex(items => items.name === 'trackingNo')
11
+ let releaseGoodNo = params.filters.find(items => items.name === 'releaseGoodNo')
12
+ let fromDate = params.filters.find(items => items.name === 'fromDate')
13
+ let toDate = params.filters.find(items => items.name === 'toDate')
14
+ let hasTrackingNo = params.filters.find(items => items.name === 'hasTrackingNo')
15
+
16
+ if (!bizplace) throw 'Invalid input'
17
+
18
+ let hasTrackingNoFilter = ''
19
+ if (hasTrackingNo?.value == true) {
20
+ hasTrackingNoFilter += `AND op.tracking_no NOTNULL`
21
+ } else if (hasTrackingNo?.value == false) {
22
+ hasTrackingNoFilter += `AND op.tracking_no ISNULL`
23
+ }
24
+
25
+ let releaseGoodFilter = ''
26
+ if (releaseGoodNo) {
27
+ releaseGoodFilter += `AND rg.name = '${releaseGoodNo.value}'`
28
+ }
29
+
30
+ let trackingNoFilterValue
31
+ let trackingNoFilter = ''
32
+ if (trackingNo >= 0) {
33
+ trackingNoFilterValue = params.filters[trackingNo].value
34
+ .split(',')
35
+ .map(value => `'${value.trim().toUpperCase()}'`)
36
+
37
+ params.filters.splice(trackingNo, 1)
38
+
39
+ trackingNoFilter += `AND op.tracking_no in (${trackingNoFilterValue})`
40
+ }
41
+
42
+ await tx.query(
43
+ `
44
+ CREATE TEMP TABLE manifest_report ON COMMIT DROP AS (
45
+ SELECT
46
+ rg.created_at AS "ordered_at",
47
+ rg.status,
48
+ op.tracking_no,
49
+ m.name AS "manifest_no",
50
+ m.created_at AS "manifested_at",
51
+ op.transporter AS "transporter",
52
+ u.name AS "manifested_by",
53
+ b.name AS "company",
54
+ rg.ref_no AS "ref_no",
55
+ rg.name AS "ro_no"
56
+ FROM order_packages op
57
+ LEFT JOIN
58
+ manifests m on m.id = op.manifest_id
59
+ LEFT JOIN
60
+ users u on u.id = op.manifested_by_id
61
+ INNER JOIN
62
+ bizplaces b on op.bizplace_id = b.id
63
+ INNER JOIN
64
+ release_goods rg on op.release_good_id = rg.id
65
+ WHERE
66
+ op.domain_id = $1
67
+ AND op.bizplace_id = '${bizplace.value}'
68
+ AND op.created_at >= $2
69
+ AND op.created_at <= $3
70
+ ${releaseGoodFilter}
71
+ ${trackingNoFilter}
72
+ ${hasTrackingNoFilter}
73
+ )
74
+ `,
75
+ [context.state.domain.id, fromDate.value, toDate.value]
76
+ )
77
+
78
+ const total: any = await tx.query(`
79
+ SELECT count(*) FROM manifest_report
80
+ `)
81
+
82
+ const result: any = await tx.query(`
83
+ SELECT * FROM manifest_report
84
+ offset $1 limit $2
85
+ `,
86
+ [(params.pagination.page - 1) * params.pagination.limit, params.pagination.limit]
87
+ )
88
+
89
+ let items = result.map(itm => {
90
+ return {
91
+ bizplace: itm.company,
92
+ refNo: itm.ref_no,
93
+ roNo: itm.ro_no,
94
+ status: itm.status,
95
+ trackingNo: itm.tracking_no,
96
+ manifestNo: itm.manifest_no,
97
+ manifestedAt: itm.manifested_at,
98
+ manifestedBy: itm.manifested_by,
99
+ orderedAt: itm.ordered_at,
100
+ transporter: itm.transporter
101
+ }
102
+ })
103
+
104
+ return { items, total: total[0].count }
105
+ } catch (e) {
106
+ throw e
107
+ }
108
+ }
109
+ }
@@ -3,6 +3,7 @@ import gql from 'graphql-tag'
3
3
  export const InventoryExpiryCounter = gql`
4
4
  type InventoryExpiryCounter {
5
5
  expired: Int
6
+ threeMonths: Int
6
7
  sixMonths: Int
7
8
  nineMonths: Int
8
9
  }
@@ -2,12 +2,16 @@ import { AnalysisPickingPackingReport } from './analysis-picking-packing-report'
2
2
  import { AnalysisPickingPackingReportList } from './analysis-picking-packing-report-list'
3
3
  import { CostingReport } from './costing-report'
4
4
  import { CostingReportList } from './costing-report-list'
5
+ import { CycleCountReport } from './cycle-count-report'
6
+ import { CycleCountReportList } from './cycle-count-report-list'
5
7
  import { InboundOrderDetailsReport } from './inbound-order-details-report'
6
8
  import { InboundOrderDetailsReportList } from './inbound-order-details-report-list'
7
9
  import { InboundSerialNumberReport } from './inbound-serial-number-report'
8
10
  import { InboundSerialNumberReportList } from './inbound-serial-number-report-list'
9
11
  import { LoadingQcReport } from './loading-qc-report'
10
12
  import { LoadingQcReportList } from './loading-qc-report-list'
13
+ import { ManifestReportList } from './manifest-report-list'
14
+ import { ManifestReport } from './manifest-report-type'
11
15
  import { NonLoadedOrderInventoryReport } from './non-loaded-inventory-report'
12
16
  import { NonLoadedOrderInventoryReportList } from './non-loaded-inventory-report-list'
13
17
  import { OutboundOrderDetailsReport } from './outbound-order-details-report'
@@ -20,10 +24,14 @@ import { ReleaseInventoryReport } from './release-inventory-report'
20
24
  import { ReleaseInventoryReportList } from './release-inventory-report-list'
21
25
  import { ShortageReportList } from './shortage-report-list'
22
26
  import { ShortageReport } from './shortage-report-type'
23
- import { OrderVasReport, VasReport } from './vas-report'
24
- import { OrderVasReportList, VasReportList } from './vas-report-list'
25
- import { CycleCountReport } from './cycle-count-report'
26
- import { CycleCountReportList } from './cycle-count-report-list'
27
+ import {
28
+ OrderVasReport,
29
+ VasReport
30
+ } from './vas-report'
31
+ import {
32
+ OrderVasReportList,
33
+ VasReportList
34
+ } from './vas-report-list'
27
35
 
28
36
  export const Query = `
29
37
  inboundSerialNumberReport(filters: [Filter!], pagination: Pagination, sortings: [Sorting!]): InboundSerialNumberReportList @transaction
@@ -40,6 +48,7 @@ export const Query = `
40
48
  analysisPickingPackingReport(filters: [Filter!], pagination: Pagination, sortings: [Sorting!]): AnalysisPickingPackingReportList @transaction
41
49
  cycleCountReport(name: String!): CycleCountReportList @transaction
42
50
  nonLoadedOrderInventories(filters: [Filter!], pagination: Pagination, sortings: [Sorting!]): NonLoadedOrderInventoryReportList @transaction
51
+ manifestReport(filters: [Filter!], pagination: Pagination, sortings: [Sorting!]): ManifestReportList @transaction
43
52
  `
44
53
 
45
54
  export const Types = [
@@ -70,5 +79,7 @@ export const Types = [
70
79
  CycleCountReport,
71
80
  CycleCountReportList,
72
81
  NonLoadedOrderInventoryReport,
73
- NonLoadedOrderInventoryReportList
82
+ NonLoadedOrderInventoryReportList,
83
+ ManifestReport,
84
+ ManifestReportList
74
85
  ]
@@ -0,0 +1,8 @@
1
+ import gql from 'graphql-tag'
2
+
3
+ export const ManifestReportList = gql`
4
+ type ManifestReportList {
5
+ items: [ManifestReport]
6
+ total: Int
7
+ }
8
+ `
@@ -0,0 +1,16 @@
1
+ import gql from 'graphql-tag'
2
+
3
+ export const ManifestReport = gql`
4
+ type ManifestReport {
5
+ bizplace: String
6
+ refNo: String
7
+ roNo: String
8
+ status: String
9
+ trackingNo: String
10
+ manifestNo: String
11
+ manifestedAt: Date
12
+ manifestedBy: String
13
+ orderedAt: String
14
+ transporter: String
15
+ }
16
+ `
@@ -544,6 +544,10 @@ export default {
544
544
  tagname: 'replenishment-report',
545
545
  page: 'replenishment_report'
546
546
  },
547
+ {
548
+ tagname: 'manifest-report',
549
+ page: 'manifest_report'
550
+ },
547
551
 
548
552
  /**
549
553
  * Custom ELCCL Menus Section
@@ -1982,6 +1982,7 @@
1982
1982
  "title.manifest_items": "manifest items",
1983
1983
  "title.manifest_list": "manifest list",
1984
1984
  "title.manifest_no": "manifest no",
1985
+ "title.manifest_report": "manifest report",
1985
1986
  "title.manifest": "manifest",
1986
1987
  "title.existing_manifest": "existing manifest",
1987
1988
  "title.menu_management": "menu management",
@@ -2035,6 +2035,7 @@
2035
2035
  "title.manifest_items": "[ko] manifest items",
2036
2036
  "title.manifest_list": "[ko] manifest list",
2037
2037
  "title.manifest_no": "[ko] manifest no",
2038
+ "title.manifest_report": "[ko]] manifest report",
2038
2039
  "title.manifest": "[ko] manifest",
2039
2040
  "title.existing_manifest": "[ko] existing manifest",
2040
2041
  "title.menu_management": "메뉴 관리",
@@ -1934,6 +1934,7 @@
1934
1934
  "title.manifest_items": "[ms] manifest items",
1935
1935
  "title.manifest_list": "[ms] manifest list",
1936
1936
  "title.manifest_no": "[ms] manifest no",
1937
+ "title.manifest_report": "[ms] manifest report",
1937
1938
  "title.manifest": "[ms] manifest",
1938
1939
  "title.existing_manifest": "[ms]existing manifest",
1939
1940
  "title.menu_management": "pengurusan menu",
@@ -1891,6 +1891,7 @@
1891
1891
  "title.manifest_items": "[zh] manifest items",
1892
1892
  "title.manifest_list": "[zh] manifest list",
1893
1893
  "title.manifest_no": "[zh] manifest no",
1894
+ "title.manifest_report": "[zh] manifest report",
1894
1895
  "title.manifest": "[zh] manifest",
1895
1896
  "title.existing_manifest": "[zh]existing manifest",
1896
1897
  "title.menu_management": "menu management",