@things-factory/operato-wms 5.0.0-alpha.36 → 5.0.0-alpha.39

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 (56) hide show
  1. package/client/pages/inbound/unload-product.js +11 -7
  2. package/client/pages/inventory/inventory-adjustment.js +8 -8
  3. package/client/pages/inventory-check/inspecting-product.js +13 -7
  4. package/client/pages/order/goods-received-note/customer-received-note.js +3 -0
  5. package/client/pages/order/goods-received-note/received-note-detail.js +3 -0
  6. package/client/pages/order/release-order/release-extra-product-popup.js +15 -10
  7. package/client/pages/outbound/merged-outbound-worksheet.js +7 -1
  8. package/client/pages/outbound/picking-product.js +1 -1
  9. package/client/pages/outbound/select-operator-popup.js +86 -14
  10. package/client/pages/outbound/single-outbound-worksheet.js +22 -14
  11. package/client/pages/outbound/worksheet-batch-picking.js +1 -1
  12. package/client/pages/outbound/worksheet-picking.js +1 -1
  13. package/client/pages/report/costing-report.js +453 -0
  14. package/client/pages/report/inbound-order-details-report.js +14 -0
  15. package/client/pages/report/outbound-order-details-report.js +12 -0
  16. package/client/pages/vas/print-product-label.js +15 -6
  17. package/client/route.js +4 -0
  18. package/dist-server/graphql/resolvers/reports/costing-report.js +172 -0
  19. package/dist-server/graphql/resolvers/reports/costing-report.js.map +1 -0
  20. package/dist-server/graphql/resolvers/reports/inbound-order-details-report.js +2 -0
  21. package/dist-server/graphql/resolvers/reports/inbound-order-details-report.js.map +1 -1
  22. package/dist-server/graphql/resolvers/reports/index.js +2 -1
  23. package/dist-server/graphql/resolvers/reports/index.js.map +1 -1
  24. package/dist-server/graphql/resolvers/reports/outbound-order-details-report.js +10 -3
  25. package/dist-server/graphql/resolvers/reports/outbound-order-details-report.js.map +1 -1
  26. package/dist-server/graphql/types/reports/costing-report-list.js +14 -0
  27. package/dist-server/graphql/types/reports/costing-report-list.js.map +1 -0
  28. package/dist-server/graphql/types/reports/costing-report.js +19 -0
  29. package/dist-server/graphql/types/reports/costing-report.js.map +1 -0
  30. package/dist-server/graphql/types/reports/inbound-order-details-report.js +1 -0
  31. package/dist-server/graphql/types/reports/inbound-order-details-report.js.map +1 -1
  32. package/dist-server/graphql/types/reports/index.js +6 -1
  33. package/dist-server/graphql/types/reports/index.js.map +1 -1
  34. package/dist-server/graphql/types/reports/outbound-order-details-report.js +1 -0
  35. package/dist-server/graphql/types/reports/outbound-order-details-report.js.map +1 -1
  36. package/helps/release-note.ko.md +22 -19
  37. package/helps/release-note.md +22 -19
  38. package/helps/release-note.ms.md +22 -19
  39. package/helps/release-note.zh.md +22 -19
  40. package/package.json +65 -65
  41. package/server/graphql/resolvers/reports/costing-report.ts +196 -0
  42. package/server/graphql/resolvers/reports/inbound-order-details-report.ts +2 -0
  43. package/server/graphql/resolvers/reports/index.ts +2 -0
  44. package/server/graphql/resolvers/reports/outbound-order-details-report.ts +10 -3
  45. package/server/graphql/types/reports/costing-report-list.ts +8 -0
  46. package/server/graphql/types/reports/costing-report.ts +13 -0
  47. package/server/graphql/types/reports/inbound-order-details-report.ts +1 -0
  48. package/server/graphql/types/reports/index.ts +7 -1
  49. package/server/graphql/types/reports/outbound-order-details-report.ts +1 -0
  50. package/things-factory.config.js +4 -0
  51. package/translations/en.json +8 -2
  52. package/translations/ko.json +2 -0
  53. package/translations/ms.json +2 -0
  54. package/translations/zh.json +2 -0
  55. package/config.development.js +0 -73
  56. package/config.production.js +0 -113
@@ -0,0 +1,172 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.costingReport = void 0;
4
+ const auth_base_1 = require("@things-factory/auth-base");
5
+ const biz_base_1 = require("@things-factory/biz-base");
6
+ const utils_1 = require("../../../utils");
7
+ exports.costingReport = {
8
+ async costingReport(_, params, context) {
9
+ try {
10
+ const { tx } = context.state;
11
+ let bizplaceFilter = { name: '', operator: '', value: '' };
12
+ let userFilter = params.filters.find(data => data.name === 'user');
13
+ let fromDate = params.filters.find(data => data.name === 'fromDate');
14
+ let toDate = params.filters.find(data => data.name === 'toDate');
15
+ if (userFilter) {
16
+ const user = await tx.getRepository(auth_base_1.User).findOne({
17
+ where: { id: userFilter.value },
18
+ relations: ['bizplaces']
19
+ });
20
+ const bizplace = user.bizplaces[0];
21
+ if (!bizplace)
22
+ throw 'Invalid input';
23
+ bizplaceFilter = { name: 'bizplace', operator: 'eq', value: bizplace.id };
24
+ }
25
+ else {
26
+ bizplaceFilter = params.filters.find(data => data.name === 'bizplace');
27
+ }
28
+ if (!bizplaceFilter || !fromDate || !toDate)
29
+ throw 'Invalid input';
30
+ const bizplace = await tx.getRepository(biz_base_1.Bizplace).findOne({
31
+ id: bizplaceFilter.value
32
+ });
33
+ await (0, utils_1.rawProductsQuery)(tx, params, bizplace);
34
+ await tx.query(`
35
+ create temp table tmp_outbound_ord on commit drop as (
36
+ select p.sku, rih.domain_id, rih.bizplace_id, rih.product_id, rih.packing_type, rih.packing_size, coalesce(rih.uom, pd.uom, pd2.uom) as uom,
37
+ sum(rih.qty) as total_picked_qty, sum(rih.uom_value) as total_picked_uom_value
38
+ from reduced_inventory_histories rih
39
+ inner join inventories inv on inv.domain_id = rih.domain_id and inv.pallet_id = rih.pallet_id
40
+ left join product_details pd on pd.product_id = rih.product_id and pd.packing_type = rih.packing_type and pd.packing_size = rih.packing_size
41
+ left join product_details pd2 on pd2.product_id = rih.product_id and pd2.is_default = true
42
+ left join products p on p.id = rih.product_id
43
+ where rih.domain_id = $1
44
+ and inv.bizplace_id = $2
45
+ and rih.created_at >= $3 and rih.created_at <= $4
46
+ and rih.transaction_type = 'PICKING'
47
+ group by p.sku, rih.domain_id, rih.bizplace_id, rih.product_id, rih.packing_type, rih.packing_size, coalesce(rih.uom, pd.uom, pd2.uom)
48
+ );
49
+ `, [context.state.domain.id, bizplace.id, fromDate.value, toDate.value]);
50
+ await tx.query(`
51
+ create temp table tmp_stored_inv on commit drop as (
52
+ select src2.sku, src2.domain_id, src2.bizplace_id, src2.pallet_id, src2.product_id, src2.packing_type, src2.packing_size, src2.uom,
53
+ to_char(src2.created_at, 'YYYY-MM') as created_year_month, sum(closing_qty) as closing_qty from (
54
+ select distinct on (rih.pallet_id) p.sku, rih.domain_id, rih.bizplace_id, rih.pallet_id, rih.product_id, rih.packing_type, rih.packing_size,
55
+ coalesce(rih.uom, pd.uom, pd2.uom) as uom,
56
+ rih.created_at, rih.transaction_type, rih.status, rih.opening_qty + rih.qty as closing_qty
57
+ from reduced_inventory_histories rih
58
+ inner join inventories i on i.domain_id = rih.domain_id and i.pallet_id = rih.pallet_id
59
+ left join product_details pd on pd.product_id = rih.product_id and pd.packing_type = rih.packing_type and pd.packing_size = rih.packing_size
60
+ left join product_details pd2 on pd2.product_id = rih.product_id and pd2.is_default = true
61
+ left join products p on p.id = rih.product_id
62
+ where rih.domain_id = $1
63
+ and i.bizplace_id = $2
64
+ and rih.created_at <= $3
65
+ order by rih.pallet_id, rih.seq desc
66
+ ) src2 where src2.status <> 'TERMINATED'
67
+ and exists (
68
+ select * from tmp_outbound_ord outboundOrd
69
+ where outboundOrd.domain_id = src2.domain_id
70
+ and outboundOrd.bizplace_id = src2.bizplace_id
71
+ and outboundOrd.product_id = src2.product_id
72
+ and outboundOrd.packing_type = src2.packing_type
73
+ and outboundOrd.packing_size = src2.packing_size
74
+ and outboundOrd.uom = src2.uom
75
+ )
76
+ group by src2.sku, src2.domain_id, src2.bizplace_id, src2.pallet_id, src2.product_id, src2.packing_type, src2.packing_size, src2.uom, to_char(src2.created_at, 'YYYY-MM')
77
+ );
78
+ `, [context.state.domain.id, bizplace.id, toDate.value]);
79
+ await tx.query(`
80
+ create temp table temp_costing_report on commit drop as (
81
+ WITH RECURSIVE cte_forwarded_cost as (
82
+ select src.domain_id, src.bizplace_id, src.product_id, src.packing_type, src.packing_size, src.uom, TO_DATE(src.created_year_month,'YYYY-MM')::timestamp as running_year_month,
83
+ sum(src.qty) as qty, sum(src.total_cost)/ sum(src.qty) as monthly_avg_cost,
84
+ coalesce((select sum(closing_qty) from tmp_stored_inv st where st.domain_id = src.domain_id and st.bizplace_id = src.bizplace_id and st.product_id = src.product_id and st.packing_type = src.packing_type and st.packing_size = src.packing_size and st.uom = src.uom and st.created_year_month = src.created_year_month),sum(src.qty)) as closing_qty from (
85
+ select distinct on (pallet_id)
86
+ ih.domain_id, ih.bizplace_id, ih.pallet_id, ih.unit_cost, (ih.unit_cost * (ih.opening_qty + ih.qty)) as total_cost, ih.status, ih.transaction_type, ih.product_id, ih.packing_type, ih.packing_size, coalesce(ih.uom, pd.uom) as uom,
87
+ ih.created_at, to_char(ih.created_at, 'YYYY-MM') as created_year_month,
88
+ ih.opening_qty,
89
+ ih.qty as transaction_qty,
90
+ ih.opening_qty + ih.qty as qty,
91
+ ih.opening_uom_value,
92
+ ih.uom_value as transaction_uom_value,
93
+ ih.opening_uom_value + ih.uom_value as uom_value
94
+ from reduced_inventory_histories ih
95
+ inner join inventories i on i.domain_id = ih.domain_id and i.pallet_id = ih.pallet_id
96
+ left join product_details pd on pd.product_id = ih.product_id and pd.packing_type = ih.packing_type and pd.packing_size = ih.packing_size
97
+ where ih.domain_id = $1
98
+ and i.bizplace_id = $2
99
+ and ih.created_at <= $3 and ih.unit_cost is not null
100
+ and exists (
101
+ select * from tmp_outbound_ord outboundOrd
102
+ where outboundOrd.domain_id = ih.domain_id
103
+ and outboundOrd.bizplace_id = ih.bizplace_id
104
+ and outboundOrd.product_id = ih.product_id
105
+ and outboundOrd.packing_type = ih.packing_type
106
+ and outboundOrd.packing_size = ih.packing_size
107
+ and outboundOrd.uom = ih.uom
108
+ )
109
+ order by ih.pallet_id, ih.seq
110
+ ) src
111
+ group by src.domain_id, src.bizplace_id, src.product_id, src.packing_type, src.packing_size, src.uom, src.created_year_month
112
+ union all
113
+ select dt1.domain_id, dt1.bizplace_id, dt1.product_id, dt1.packing_type, dt1.packing_size, dt1.uom,
114
+ dt1.running_year_month + interval '1 month' as running_year_month, dt1.qty, dt1.monthly_avg_cost, dt1.closing_qty
115
+ from cte_forwarded_cost dt1
116
+ where dt1.running_year_month + interval '1 month' < $3
117
+ ) select fc.*, -outboundord.total_picked_qty as "qty", -outboundord.total_picked_uom_value as "uom_value", (-outboundord.total_picked_qty * fc.weighted_avg_unit_cost) as "total_cost" from (
118
+ select p.sku as "product_sku", p."name" as "product_name", p.description as "product_description", p."type" as "product_type",
119
+ fc.domain_id, fc.bizplace_id, fc.product_id, fc.packing_type, fc.packing_size, fc.uom, fc.running_year_month,
120
+ ROUND(cast(sum(fc.monthly_avg_cost * fc.closing_qty) / sum(fc.qty) as numeric),2) as "weighted_avg_unit_cost"
121
+ from cte_forwarded_cost fc
122
+ left join products p on p.id = fc.product_id
123
+ where running_year_month = to_date(to_char($3::date, 'YYYY-MM'),'YYYY-MM')::timestamp
124
+ group by p.sku, p."name", p.description, p."type", fc.domain_id, fc.bizplace_id, fc.product_id, fc.packing_type, fc.packing_size, fc.uom, fc.running_year_month
125
+ ) fc
126
+ left join tmp_outbound_ord outboundord on outboundord.domain_id = fc.domain_id
127
+ and outboundord.bizplace_id = fc.bizplace_id
128
+ and outboundord.product_id = fc.product_id
129
+ and outboundord.packing_type = fc.packing_type
130
+ and outboundord.packing_size = fc.packing_size
131
+ and outboundord.uom = fc.uom
132
+ );
133
+ `, [context.state.domain.id, bizplace.id, toDate.value]);
134
+ const total = await tx.query(`
135
+ select count(*) from temp_costing_report
136
+ `);
137
+ const result = await tx.query(`
138
+ select * from temp_costing_report
139
+ offset $1 limit $2
140
+ `, [(params.pagination.page - 1) * params.pagination.limit, params.pagination.limit]);
141
+ let items = result.map(itm => {
142
+ let data = {
143
+ bizplace: {
144
+ description: bizplace.description,
145
+ name: bizplace.name
146
+ },
147
+ product: {
148
+ id: itm.product_id,
149
+ sku: itm.product_sku,
150
+ name: itm.product_name,
151
+ description: itm.product_description,
152
+ type: itm.product_type
153
+ },
154
+ qty: itm.qty,
155
+ uom: itm.uom,
156
+ uomValue: itm.uom_value,
157
+ weightedAvgUnitCost: itm.weighted_avg_unit_cost,
158
+ totalCost: itm.total_cost
159
+ };
160
+ return data;
161
+ });
162
+ return {
163
+ items,
164
+ total: total[0].count
165
+ };
166
+ }
167
+ catch (error) {
168
+ throw error;
169
+ }
170
+ }
171
+ };
172
+ //# sourceMappingURL=costing-report.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"costing-report.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/reports/costing-report.ts"],"names":[],"mappings":";;;AAEA,yDAAgD;AAChD,uDAAmD;AAGnD,0CAAiD;AAEpC,QAAA,aAAa,GAAG;IAC3B,KAAK,CAAC,aAAa,CAAC,CAAM,EAAE,MAAiB,EAAE,OAAY;QACzD,IAAI;YACF,MAAM,EAAE,EAAE,EAAE,GAA0B,OAAO,CAAC,KAAK,CAAA;YACnD,IAAI,cAAc,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,CAAA;YAC1D,IAAI,UAAU,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,MAAM,CAAC,CAAA;YAClE,IAAI,QAAQ,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,UAAU,CAAC,CAAA;YACpE,IAAI,MAAM,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,QAAQ,CAAC,CAAA;YAEhE,IAAI,UAAU,EAAE;gBACd,MAAM,IAAI,GAAS,MAAM,EAAE,CAAC,aAAa,CAAC,gBAAI,CAAC,CAAC,OAAO,CAAC;oBACtD,KAAK,EAAE,EAAE,EAAE,EAAE,UAAU,CAAC,KAAK,EAAE;oBAC/B,SAAS,EAAE,CAAC,WAAW,CAAC;iBACzB,CAAC,CAAA;gBAEF,MAAM,QAAQ,GAAa,IAAI,CAAC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", op.packing_size as "pack_size",
70
70
  ih.qty, ih.uom_value, ih.uom, ih.pallet_id, ih.carton_id, ih.batch_id, ih.batch_id_ref,
71
71
  i.expiration_date, i.manufacture_date,
72
+ ih.unit_cost,
72
73
  ih.created_at as "unloaded_at",u2.name as "unloaded_by",
73
74
  ih2.created_at as "putaway_at", u3.name as "putaway_by",
74
75
  coalesce((select volume from product_details pd where pd.product_id = i.product_id and pd.packing_type = i.packing_type and pd.packing_size = i.packing_size
@@ -160,6 +161,7 @@ exports.inboundOrderDetailsReport = {
160
161
  uomValue: itm.uom_value,
161
162
  uom: itm.uom,
162
163
  unitVolume: itm.unit_volume,
164
+ unitCost: itm.unit_cost,
163
165
  totalVolume: itm.total_volume,
164
166
  unitNettWeight: itm.unit_nett_weight,
165
167
  totalUnitNettWeight: itm.total_unit_nett_weight,
@@ -1 +1 @@
1
- {"version":3,"file":"inbound-order-details-report.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/reports/inbound-order-details-report.ts"],"names":[],"mappings":";;;AAEA,yDAAgD;AAChD,uDAAmD;AAGnD,0CAAiD;AAEpC,QAAA,yBAAyB,GAAG;IACvC,KAAK,CAAC,yBAAyB,CAAC,CAAM,EAAE,MAAiB,EAAE,OAAY;QACrE,IAAI;YACF,MAAM,EAAE,EAAE,EAAE,GAA0B,OAAO,CAAC,KAAK,CAAA;YACnD,IAAI,cAAc,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,CAAA;YAC1D,IAAI,UAAU,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,MAAM,CAAC,CAAA;YAClE,IAAI,QAAQ,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,UAAU,CAAC,CAAA;YACpE,IAAI,MAAM,GAAG,MAAM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CAAA;SACF;QAAC,OAAO,KAAK,EAAE;YACd,MAAM,KAAK,CAAA;SACZ;IACH,CAAC;CACF,CAAA"}
1
+ {"version":3,"file":"inbound-order-details-report.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/reports/inbound-order-details-report.ts"],"names":[],"mappings":";;;AAEA,yDAAgD;AAChD,uDAAmD;AAGnD,0CAAiD;AAEpC,QAAA,yBAAyB,GAAG;IACvC,KAAK,CAAC,yBAAyB,CAAC,CAAM,EAAE,MAAiB,EAAE,OAAY;QACrE,IAAI;YACF,MAAM,EAAE,EAAE,EAAE,GAA0B,OAAO,CAAC,KAAK,CAAA;YACnD,IAAI,cAAc,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,CAAA;YAC1D,IAAI,UAAU,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,MAAM,CAAC,CAAA;YAClE,IAAI,QAAQ,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,UAAU,CAAC,CAAA;YACpE,IAAI,MAAM,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,QAAQ,CAAC,CAAA;YAChE,IAAI,KAAK,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,OAAO,CAAC,CAAA;YAC9D,IAAI,KAAK,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,OAAO,CAAC,CAAA;YAC9D,IAAI,IAAI,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAA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AAC,sBAAsB;oBAC/C,eAAe,EAAE,GAAG,CAAC,iBAAiB;oBACtC,oBAAoB,EAAE,GAAG,CAAC,uBAAuB;oBACjD,UAAU,EAAE,GAAG,CAAC,WAAW;oBAC3B,QAAQ,EAAE,GAAG,CAAC,SAAS;oBACvB,QAAQ,EAAE,GAAG,CAAC,SAAS;oBACvB,OAAO,EAAE,GAAG,CAAC,QAAQ;oBACrB,UAAU,EAAE,GAAG,CAAC,YAAY;oBAC5B,cAAc,EAAE,GAAG,CAAC,eAAe;oBACnC,eAAe,EAAE,GAAG,CAAC,gBAAgB;oBACrC,UAAU,EAAE,GAAG,CAAC,WAAW;oBAC3B,UAAU,EAAE,GAAG,CAAC,WAAW;oBAC3B,SAAS,EAAE,GAAG,CAAC,UAAU;oBACzB,SAAS,EAAE,GAAG,CAAC,UAAU;iBAC1B,CAAA;gBAED,IAAI,GAAG,CAAC,WAAW,EAAE;oBACnB,IAAI,CAAC,UAAU,CAAC,GAAG;wBACjB,EAAE,EAAE,GAAG,CAAC,WAAW;wBACnB,IAAI,EAAE,GAAG,CAAC,aAAa;qBACxB,CAAA;iBACF;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"}
@@ -3,8 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Query = void 0;
4
4
  const inbound_serial_number_report_1 = require("./inbound-serial-number-report");
5
5
  const outbound_serial_number_report_1 = require("./outbound-serial-number-report");
6
+ const costing_report_1 = require("./costing-report");
6
7
  const inbound_order_details_report_1 = require("./inbound-order-details-report");
7
8
  const outbound_order_details_report_1 = require("./outbound-order-details-report");
8
9
  const product_label_report_1 = require("./product-label-report");
9
- exports.Query = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, inbound_serial_number_report_1.inboundSerialNumberReport), outbound_serial_number_report_1.outboundSerialNumberReport), inbound_order_details_report_1.inboundOrderDetailsReport), outbound_order_details_report_1.outboundOrderDetailsReport), product_label_report_1.productLabelReport);
10
+ exports.Query = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, inbound_serial_number_report_1.inboundSerialNumberReport), outbound_serial_number_report_1.outboundSerialNumberReport), costing_report_1.costingReport), inbound_order_details_report_1.inboundOrderDetailsReport), outbound_order_details_report_1.outboundOrderDetailsReport), product_label_report_1.productLabelReport);
10
11
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/reports/index.ts"],"names":[],"mappings":";;;AAAA,iFAA0E;AAC1E,mFAA4E;AAE5E,iFAA0E;AAC1E,mFAA4E;AAC5E,iEAA2D;AAE9C,QAAA,KAAK,6EACb,wDAAyB,GACzB,0DAA0B,GAC1B,wDAAyB,GACzB,0DAA0B,GAC1B,yCAAkB,EACtB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/reports/index.ts"],"names":[],"mappings":";;;AAAA,iFAA0E;AAC1E,mFAA4E;AAE5E,qDAAgD;AAChD,iFAA0E;AAC1E,mFAA4E;AAC5E,iEAA2D;AAE9C,QAAA,KAAK,2FACb,wDAAyB,GACzB,0DAA0B,GAC1B,8BAAa,GACb,wDAAyB,GACzB,0DAA0B,GAC1B,yCAAkB,EACtB"}
@@ -53,9 +53,9 @@ exports.outboundOrderDetailsReport = {
53
53
  p.id as "product_id", p.sku as "product_sku", p.name AS "product_name", p.description AS "product_description", p.type as "product_type",
54
54
  i.packing_type as "pack_type", i.packing_size as "pack_size", oi.release_qty AS "release_qty",
55
55
  oi.picked_at, oi.picked_by, oi.packed_at, oi.packed_by, oi.loaded_at, oi.loaded_by, oi.shipped_at,
56
- oi.release_qty as "qty", oi.release_uom_value as "uom_value", i.uom,
56
+ oi.release_qty as "qty", oi.release_uom_value as "uom_value", i.uom, i.unit_cost,
57
57
  oi.return_to_location_qty, oi.return_to_location_uom_value,
58
- i.pallet_id, i.carton_id, i.batch_id, i.batch_id_ref, i.expiration_date, i.manufacture_date
58
+ i.id as inventory_id, i.pallet_id, i.carton_id, i.batch_id, i.batch_id_ref, i.expiration_date, i.manufacture_date
59
59
  from order_inventories oi
60
60
  inner join release_goods rg on rg.id = oi.release_good_id
61
61
  left join users u4 on u4.id = rg.accepted_by_id
@@ -100,7 +100,13 @@ exports.outboundOrderDetailsReport = {
100
100
  fetch first 1 rows only),0) as unit_gross_weight,
101
101
  coalesce((select weight_unit from product_details pd where pd.product_id = oi.product_id and pd.packing_type = oi.pack_type and pd.packing_size = oi.pack_size
102
102
  order by created_at desc
103
- fetch first 1 rows only),'') as weight_unit
103
+ fetch first 1 rows only),'') as weight_unit,
104
+ coalesce((select unit_cost from reduced_inventory_histories rih where
105
+ rih.ref_order_id::uuid = oi.id and
106
+ rih.inventory_id::uuid = oi.inventory_id and
107
+ rih.transaction_type = 'PICKING'
108
+ order by created_at desc
109
+ fetch first 1 rows only), oi.unit_cost, 0) as unit_cost
104
110
  from temp_outbound_order_report oi
105
111
  left join worksheet_details wd on wd.target_inventory_id = oi.id
106
112
  left join worksheets w on w.id = wd.worksheet_id
@@ -144,6 +150,7 @@ exports.outboundOrderDetailsReport = {
144
150
  qty: Math.abs(itm.qty),
145
151
  uomValue: Math.abs(itm.uom_value),
146
152
  uom: itm.uom,
153
+ unitCost: itm.unit_cost,
147
154
  returnToLocationQty: itm.return_to_location_qty,
148
155
  returnToLocationUomValue: itm.return_to_location_uom_value,
149
156
  unitVolume: itm.unit_volume,
@@ -1 +1 @@
1
- {"version":3,"file":"outbound-order-details-report.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/reports/outbound-order-details-report.ts"],"names":[],"mappings":";;;AAEA,yDAAgD;AAChD,uDAAmD;AAGnD,0CAAiD;AA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E,GAAG,CAAC,gBAAgB;oBACrC,QAAQ,EAAE,GAAG,CAAC,SAAS;oBACvB,QAAQ,EAAE,GAAG,CAAC,SAAS;oBACvB,QAAQ,EAAE,GAAG,CAAC,SAAS;oBACvB,QAAQ,EAAE,GAAG,CAAC,SAAS;oBACvB,QAAQ,EAAE,GAAG,CAAC,SAAS;oBACvB,QAAQ,EAAE,GAAG,CAAC,SAAS;oBACvB,SAAS,EAAE,GAAG,CAAC,UAAU;iBAC1B,CAAA;YACH,CAAC,CAAC,CAAA;YAEF,OAAO;gBACL,KAAK;gBACL,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK;aACtB,CAAA;SACF;QAAC,OAAO,KAAK,EAAE;YACd,MAAM,KAAK,CAAA;SACZ;IACH,CAAC;CACF,CAAA"}
1
+ {"version":3,"file":"outbound-order-details-report.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/reports/outbound-order-details-report.ts"],"names":[],"mappings":";;;AAEA,yDAAgD;AAChD,uDAAmD;AAGnD,0CAAiD;AAEpC,QAAA,0BAA0B,GAAG;IACxC,KAAK,CAAC,0BAA0B,CAAC,CAAM,EAAE,MAAiB,EAAE,OAAY;QACtE,IAAI;YACF,MAAM,EAAE,EAAE,EAAE,GAA0B,OAAO,CAAC,KAAK,CAAA;YACnD,IAAI,cAAc,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,CAAA;YAC1D,IAAI,UAAU,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,MAAM,CAAC,CAAA;YAClE,IAAI,QAAQ,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,UAAU,CAAC,CAAA;YACpE,IAAI,MAAM,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAA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__importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.CostingReportList = void 0;
7
+ const graphql_tag_1 = __importDefault(require("graphql-tag"));
8
+ exports.CostingReportList = (0, graphql_tag_1.default) `
9
+ type CostingReportList {
10
+ items: [CostingReport]
11
+ total: Int
12
+ }
13
+ `;
14
+ //# sourceMappingURL=costing-report-list.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"costing-report-list.js","sourceRoot":"","sources":["../../../../server/graphql/types/reports/costing-report-list.ts"],"names":[],"mappings":";;;;;;AAAA,8DAA6B;AAEhB,QAAA,iBAAiB,GAAG,IAAA,qBAAG,EAAA;;;;;CAKnC,CAAA"}
@@ -0,0 +1,19 @@
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.CostingReport = void 0;
7
+ const graphql_tag_1 = __importDefault(require("graphql-tag"));
8
+ exports.CostingReport = (0, graphql_tag_1.default) `
9
+ type CostingReport {
10
+ bizplace: Bizplace
11
+ product: Product
12
+ qty: Int
13
+ uom: String
14
+ uomValue: Float
15
+ weightedAvgUnitCost: Float
16
+ totalCost: Float
17
+ }
18
+ `;
19
+ //# sourceMappingURL=costing-report.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"costing-report.js","sourceRoot":"","sources":["../../../../server/graphql/types/reports/costing-report.ts"],"names":[],"mappings":";;;;;;AAAA,8DAA6B;AAEhB,QAAA,aAAa,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;CAU/B,CAAA"}
@@ -36,6 +36,7 @@ exports.InboundOrderDetailsReport = (0, graphql_tag_1.default) `
36
36
  qty: Int
37
37
  uomValue: Float
38
38
  uom: String
39
+ unitCost: Float
39
40
  unitVolume: Float
40
41
  totalVolume: Float
41
42
  unitNettWeight: Float
@@ -1 +1 @@
1
- {"version":3,"file":"inbound-order-details-report.js","sourceRoot":"","sources":["../../../../server/graphql/types/reports/inbound-order-details-report.ts"],"names":[],"mappings":";;;;;;AAAA,8DAA6B;AAEhB,QAAA,yBAAyB,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiD3C,CAAA"}
1
+ {"version":3,"file":"inbound-order-details-report.js","sourceRoot":"","sources":["../../../../server/graphql/types/reports/inbound-order-details-report.ts"],"names":[],"mappings":";;;;;;AAAA,8DAA6B;AAEhB,QAAA,yBAAyB,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkD3C,CAAA"}
@@ -11,12 +11,15 @@ const outbound_order_details_report_1 = require("./outbound-order-details-report
11
11
  const outbound_order_details_report_list_1 = require("./outbound-order-details-report-list");
12
12
  const product_label_report_1 = require("./product-label-report");
13
13
  const product_label_report_list_1 = require("./product-label-report-list");
14
+ const costing_report_1 = require("./costing-report");
15
+ const costing_report_list_1 = require("./costing-report-list");
14
16
  exports.Query = `
15
17
  inboundSerialNumberReport(filters: [Filter!], pagination: Pagination, sortings: [Sorting!]): InboundSerialNumberReportList @transaction
16
18
  outboundSerialNumberReport(filters: [Filter!], pagination: Pagination, sortings: [Sorting!]): OutboundSerialNumberReportList @transaction
17
19
  inboundOrderDetailsReport(filters: [Filter!], pagination: Pagination, sortings: [Sorting!]): InboundOrderDetailsReportList @transaction
18
20
  outboundOrderDetailsReport(filters: [Filter!], pagination: Pagination, sortings: [Sorting!]): OutboundOrderDetailsReportList @transaction
19
21
  productLabelReport(filters: [Filter!], pagination: Pagination, sortings: [Sorting!]): ProductLabelReportList @transaction
22
+ costingReport(filters: [Filter!], pagination: Pagination, sortings: [Sorting!]): CostingReportList @transaction
20
23
  `;
21
24
  exports.Types = [
22
25
  inbound_serial_number_report_1.InboundSerialNumberReport,
@@ -28,6 +31,8 @@ exports.Types = [
28
31
  outbound_order_details_report_1.OutboundOrderDetailsReport,
29
32
  outbound_order_details_report_list_1.OutboundOrderDetailsReportList,
30
33
  product_label_report_1.ProductLabelReport,
31
- product_label_report_list_1.ProductLabelReportList
34
+ product_label_report_list_1.ProductLabelReportList,
35
+ costing_report_1.CostingReport,
36
+ costing_report_list_1.CostingReportList
32
37
  ];
33
38
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../server/graphql/types/reports/index.ts"],"names":[],"mappings":";;;AAAA,iFAA0E;AAC1E,2FAAmF;AACnF,mFAA4E;AAC5E,6FAAqF;AAErF,iFAA0E;AAC1E,2FAAmF;AACnF,mFAA4E;AAC5E,6FAAqF;AACrF,iEAA2D;AAC3D,2EAAoE;AAEvD,QAAA,KAAK,GAAG;;;;;;CAMpB,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;CACvB,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../server/graphql/types/reports/index.ts"],"names":[],"mappings":";;;AAAA,iFAA0E;AAC1E,2FAAmF;AACnF,mFAA4E;AAC5E,6FAAqF;AAErF,iFAA0E;AAC1E,2FAAmF;AACnF,mFAA4E;AAC5E,6FAAqF;AACrF,iEAA2D;AAC3D,2EAAoE;AAEpE,qDAAgD;AAChD,+DAAyD;AAE5C,QAAA,KAAK,GAAG;;;;;;;CAOpB,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;CAClB,CAAA"}
@@ -31,6 +31,7 @@ exports.OutboundOrderDetailsReport = (0, graphql_tag_1.default) `
31
31
  returnToLocationQty: Int
32
32
  returnToLocationUomValue: Float
33
33
  uom: String
34
+ unitCost: Float
34
35
  unitVolume: Float
35
36
  totalVolume: Float
36
37
  unitNettWeight: Float
@@ -1 +1 @@
1
- {"version":3,"file":"outbound-order-details-report.js","sourceRoot":"","sources":["../../../../server/graphql/types/reports/outbound-order-details-report.ts"],"names":[],"mappings":";;;;;;AAAA,8DAA6B;AAEhB,QAAA,0BAA0B,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+C5C,CAAA"}
1
+ {"version":3,"file":"outbound-order-details-report.js","sourceRoot":"","sources":["../../../../server/graphql/types/reports/outbound-order-details-report.ts"],"names":[],"mappings":";;;;;;AAAA,8DAA6B;AAEhB,QAAA,0BAA0B,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgD5C,CAAA"}
@@ -2,31 +2,34 @@
2
2
 
3
3
  <div align="center">
4
4
 
5
- ## 23rd March Updates
5
+ ## 5 April Update
6
6
 
7
- Hope you are all doing well and are positively negative.
7
+ #### Get a head start in April 2022 with our new features and fixes in the past month!
8
8
 
9
- We are launching a new feature on **31 March 2022** (Thursday).
9
+ #### This time, we bring to you
10
10
 
11
+ <div>
12
+ 1. Product Level Picking Strategy
13
+ </div>
14
+ <div>
15
+ 2. Serial Number Scanning for Inbound and Outbound
16
+ </div>
17
+ <div>
18
+ 3. Bin Application in Batch Picking
19
+ </div>
20
+ <div>
21
+ 4. Bulk Assign Pickers
22
+ </div>
23
+ <div>
24
+ 5. Bug fixes and API updates!
25
+ </div>
11
26
  <br>
12
-
13
- ## Product Level Picking Strategy
14
-
15
- This feature will help you to
16
-
17
- **Set picking strategy (FIFO, FEFO, FMFO, LIFO, Location) per product;** <br>
18
- **Automate the inventory assignment - no more hassle in assigning the inventory during the release of inventories;**<br>
19
- **One-time setting to relieve your load from selecting inventory during worksheet processing.**
20
-
27
+ https://bit.ly/220407_Hatio_Release
21
28
  <br>
22
29
 
23
- You are encouraged to update Product Master in https://operatohub.com/ **from 24 to 30 March 2022.**
24
-
25
- Otherwise, the default picking strategy (FIFO) will be set to all products.
26
-
27
- For more details on the update, please refer to this release document (https://bit.ly/220323_Hatio_Release).
28
-
29
- Please get in touch with support@hatio.asia if you need assistance.
30
+ Should you have any inquiry, feel free to contact support@hatio.asia!
31
+ <br>
32
+ Stay safe and positively negative!
30
33
 
31
34
  <br>
32
35
 
@@ -2,31 +2,34 @@
2
2
 
3
3
  <div align="center">
4
4
 
5
- ## 23rd March Updates
5
+ ## 5 April Update
6
6
 
7
- Hope you are all doing well and are positively negative.
7
+ #### Get a head start in April 2022 with our new features and fixes in the past month!
8
8
 
9
- We are launching a new feature on **31 March 2022** (Thursday).
9
+ #### This time, we bring to you
10
10
 
11
+ <div>
12
+ 1. Product Level Picking Strategy
13
+ </div>
14
+ <div>
15
+ 2. Serial Number Scanning for Inbound and Outbound
16
+ </div>
17
+ <div>
18
+ 3. Bin Application in Batch Picking
19
+ </div>
20
+ <div>
21
+ 4. Bulk Assign Pickers
22
+ </div>
23
+ <div>
24
+ 5. Bug fixes and API updates!
25
+ </div>
11
26
  <br>
12
-
13
- ## Product Level Picking Strategy
14
-
15
- This feature will help you to
16
-
17
- **Set picking strategy (FIFO, FEFO, FMFO, LIFO, Location) per product;** <br>
18
- **Automate the inventory assignment - no more hassle in assigning the inventory during the release of inventories;**<br>
19
- **One-time setting to relieve your load from selecting inventory during worksheet processing.**
20
-
27
+ https://bit.ly/220407_Hatio_Release
21
28
  <br>
22
29
 
23
- You are encouraged to update Product Master in https://operatohub.com/ **from 24 to 30 March 2022.**
24
-
25
- Otherwise, the default picking strategy (FIFO) will be set to all products.
26
-
27
- For more details on the update, please refer to this release document (https://bit.ly/220323_Hatio_Release).
28
-
29
- Please get in touch with support@hatio.asia if you need assistance.
30
+ Should you have any inquiry, feel free to contact support@hatio.asia!
31
+ <br>
32
+ Stay safe and positively negative!
30
33
 
31
34
  <br>
32
35
 
@@ -2,31 +2,34 @@
2
2
 
3
3
  <div align="center">
4
4
 
5
- ## 23rd March Updates
5
+ ## 5 April Update
6
6
 
7
- Hope you are all doing well and are positively negative.
7
+ #### Get a head start in April 2022 with our new features and fixes in the past month!
8
8
 
9
- We are launching a new feature on **31 March 2022** (Thursday).
9
+ #### This time, we bring to you
10
10
 
11
+ <div>
12
+ 1. Product Level Picking Strategy
13
+ </div>
14
+ <div>
15
+ 2. Serial Number Scanning for Inbound and Outbound
16
+ </div>
17
+ <div>
18
+ 3. Bin Application in Batch Picking
19
+ </div>
20
+ <div>
21
+ 4. Bulk Assign Pickers
22
+ </div>
23
+ <div>
24
+ 5. Bug fixes and API updates!
25
+ </div>
11
26
  <br>
12
-
13
- ## Product Level Picking Strategy
14
-
15
- This feature will help you to
16
-
17
- **Set picking strategy (FIFO, FEFO, FMFO, LIFO, Location) per product;** <br>
18
- **Automate the inventory assignment - no more hassle in assigning the inventory during the release of inventories;**<br>
19
- **One-time setting to relieve your load from selecting inventory during worksheet processing.**
20
-
27
+ https://bit.ly/220407_Hatio_Release
21
28
  <br>
22
29
 
23
- You are encouraged to update Product Master in https://operatohub.com/ **from 24 to 30 March 2022.**
24
-
25
- Otherwise, the default picking strategy (FIFO) will be set to all products.
26
-
27
- For more details on the update, please refer to this release document (https://bit.ly/220323_Hatio_Release).
28
-
29
- Please get in touch with support@hatio.asia if you need assistance.
30
+ Should you have any inquiry, feel free to contact support@hatio.asia!
31
+ <br>
32
+ Stay safe and positively negative!
30
33
 
31
34
  <br>
32
35
 
@@ -2,31 +2,34 @@
2
2
 
3
3
  <div align="center">
4
4
 
5
- ## 23rd March Updates
5
+ ## 5 April Update
6
6
 
7
- Hope you are all doing well and are positively negative.
7
+ #### Get a head start in April 2022 with our new features and fixes in the past month!
8
8
 
9
- We are launching a new feature on **31 March 2022** (Thursday).
9
+ #### This time, we bring to you
10
10
 
11
+ <div>
12
+ 1. Product Level Picking Strategy
13
+ </div>
14
+ <div>
15
+ 2. Serial Number Scanning for Inbound and Outbound
16
+ </div>
17
+ <div>
18
+ 3. Bin Application in Batch Picking
19
+ </div>
20
+ <div>
21
+ 4. Bulk Assign Pickers
22
+ </div>
23
+ <div>
24
+ 5. Bug fixes and API updates!
25
+ </div>
11
26
  <br>
12
-
13
- ## Product Level Picking Strategy
14
-
15
- This feature will help you to
16
-
17
- **Set picking strategy (FIFO, FEFO, FMFO, LIFO, Location) per product;** <br>
18
- **Automate the inventory assignment - no more hassle in assigning the inventory during the release of inventories;**<br>
19
- **One-time setting to relieve your load from selecting inventory during worksheet processing.**
20
-
27
+ https://bit.ly/220407_Hatio_Release
21
28
  <br>
22
29
 
23
- You are encouraged to update Product Master in https://operatohub.com/ **from 24 to 30 March 2022.**
24
-
25
- Otherwise, the default picking strategy (FIFO) will be set to all products.
26
-
27
- For more details on the update, please refer to this release document (https://bit.ly/220323_Hatio_Release).
28
-
29
- Please get in touch with support@hatio.asia if you need assistance.
30
+ Should you have any inquiry, feel free to contact support@hatio.asia!
31
+ <br>
32
+ Stay safe and positively negative!
30
33
 
31
34
  <br>
32
35