@things-factory/sales-base 4.0.12 → 4.0.17

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 (40) hide show
  1. package/dist-server/service/arrival-notice/arrival-notice-query.js +0 -1
  2. package/dist-server/service/arrival-notice/arrival-notice-query.js.map +1 -1
  3. package/dist-server/service/manifest/manifest-mutation.js +63 -72
  4. package/dist-server/service/manifest/manifest-mutation.js.map +1 -1
  5. package/dist-server/service/manifest/manifest-query.js +49 -8
  6. package/dist-server/service/manifest/manifest-query.js.map +1 -1
  7. package/dist-server/service/manifest/manifest-type.js +67 -27
  8. package/dist-server/service/manifest/manifest-type.js.map +1 -1
  9. package/dist-server/service/manifest/manifest.js +5 -0
  10. package/dist-server/service/manifest/manifest.js.map +1 -1
  11. package/dist-server/service/others/other-types.js +4 -0
  12. package/dist-server/service/others/other-types.js.map +1 -1
  13. package/dist-server/service/release-good/release-good-mutation.js +360 -1
  14. package/dist-server/service/release-good/release-good-mutation.js.map +1 -1
  15. package/dist-server/service/release-good/release-good-query.js +160 -0
  16. package/dist-server/service/release-good/release-good-query.js.map +1 -1
  17. package/dist-server/service/release-good/release-good-types.js +34 -2
  18. package/dist-server/service/release-good/release-good-types.js.map +1 -1
  19. package/dist-server/service/reverse-kitting-order/reverse-kitting-order-mutation.js +66 -19
  20. package/dist-server/service/reverse-kitting-order/reverse-kitting-order-mutation.js.map +1 -1
  21. package/dist-server/service/reverse-kitting-order/reverse-kitting-order-query.js +84 -72
  22. package/dist-server/service/reverse-kitting-order/reverse-kitting-order-query.js.map +1 -1
  23. package/dist-server/service/reverse-kitting-order/reverse-kitting-order-type.js +144 -1
  24. package/dist-server/service/reverse-kitting-order/reverse-kitting-order-type.js.map +1 -1
  25. package/dist-server/service/reverse-kitting-order-inventory/reverse-kitting-order-inventory-mutation.js +17 -7
  26. package/dist-server/service/reverse-kitting-order-inventory/reverse-kitting-order-inventory-mutation.js.map +1 -1
  27. package/package.json +12 -12
  28. package/server/service/arrival-notice/arrival-notice-query.ts +0 -2
  29. package/server/service/manifest/manifest-mutation.ts +78 -88
  30. package/server/service/manifest/manifest-query.ts +64 -8
  31. package/server/service/manifest/manifest-type.ts +47 -20
  32. package/server/service/manifest/manifest.ts +5 -0
  33. package/server/service/others/other-types.ts +3 -0
  34. package/server/service/release-good/release-good-mutation.ts +512 -0
  35. package/server/service/release-good/release-good-query.ts +197 -2
  36. package/server/service/release-good/release-good-types.ts +31 -7
  37. package/server/service/reverse-kitting-order/reverse-kitting-order-mutation.ts +82 -21
  38. package/server/service/reverse-kitting-order/reverse-kitting-order-query.ts +95 -79
  39. package/server/service/reverse-kitting-order/reverse-kitting-order-type.ts +106 -1
  40. package/server/service/reverse-kitting-order-inventory/reverse-kitting-order-inventory-mutation.ts +31 -14
@@ -18,6 +18,8 @@ const type_graphql_1 = require("type-graphql");
18
18
  const typeorm_1 = require("typeorm");
19
19
  const auth_base_1 = require("@things-factory/auth-base");
20
20
  const biz_base_1 = require("@things-factory/biz-base");
21
+ const id_rule_base_1 = require("@things-factory/id-rule-base");
22
+ const product_base_1 = require("@things-factory/product-base");
21
23
  const shell_1 = require("@things-factory/shell");
22
24
  const warehouse_base_1 = require("@things-factory/warehouse-base");
23
25
  const constants_1 = require("../../constants");
@@ -48,30 +50,89 @@ let ReverseKittingOrderQuery = class ReverseKittingOrderQuery {
48
50
  ]
49
51
  });
50
52
  }
51
- async reverseKittingInventories(orderReverseKittingName, context) {
53
+ async reverseKittingInventories(reverseKittingOIName, productDetailId, context) {
52
54
  const { domain } = context.state;
53
- const reverseKittingOI = await (0, typeorm_1.getRepository)(reverse_kitting_order_inventory_1.ReverseKittingOrderInventory).findOne({
55
+ const productDetail = await (0, typeorm_1.getRepository)(product_base_1.ProductDetail).findOne({
56
+ where: { id: productDetailId },
57
+ relations: ['product']
58
+ });
59
+ const product = productDetail.product;
60
+ const foundReverseKittingOI = await (0, typeorm_1.getRepository)(reverse_kitting_order_inventory_1.ReverseKittingOrderInventory).findOne({
54
61
  where: {
55
62
  domain,
56
- name: orderReverseKittingName,
63
+ name: reverseKittingOIName,
57
64
  status: constants_1.ORDER_VAS_STATUS.PROCESSING
58
65
  },
59
66
  relations: ['bizplace', 'reverseKittingOrder', 'inventory']
60
67
  });
61
- if (!reverseKittingOI)
68
+ if (!foundReverseKittingOI)
62
69
  return;
63
- const reverseKittingOrder = reverseKittingOI.reverseKittingOrder;
64
- const customerBizplace = reverseKittingOI.bizplace;
70
+ const reverseKittingOrder = foundReverseKittingOI.reverseKittingOrder;
71
+ const customerBizplace = foundReverseKittingOI.bizplace;
65
72
  return await (0, typeorm_1.getRepository)(warehouse_base_1.Inventory).find({
66
73
  where: {
67
74
  domain,
68
75
  bizplace: customerBizplace,
69
76
  refOrderId: reverseKittingOrder.id,
70
- orderVasId: reverseKittingOI.id,
77
+ orderVasId: foundReverseKittingOI.id,
78
+ product: product,
71
79
  status: warehouse_base_1.INVENTORY_STATUS.STORED
72
80
  },
73
- relations: ['product', 'bizplace']
81
+ relations: ['product', 'bizplace', 'location']
82
+ });
83
+ }
84
+ async generateReverseKittingLotId(targets, type, context) {
85
+ const { tx, domain } = context.state;
86
+ // 1. get and set the date
87
+ const today = new Date();
88
+ const year = today.getFullYear();
89
+ const month = today.getMonth();
90
+ const day = today.getDate();
91
+ const yy = String(year).substr(String(year).length - 2);
92
+ const mm = String(month + 1).padStart(2, '0');
93
+ const dd = String(day).padStart(2, '0');
94
+ const date = yy + mm + dd;
95
+ let results = [];
96
+ // 2. get worksheet detail
97
+ let ids = targets.map(target => target.id);
98
+ // - getRepository using In(array) to pass the value to defined variable
99
+ const foundOrderReverseKittings = await tx
100
+ .getRepository(reverse_kitting_order_inventory_1.ReverseKittingOrderInventory)
101
+ .find({
102
+ where: {
103
+ domain,
104
+ id: (0, typeorm_1.In)(ids)
105
+ },
106
+ relations: ['domain', 'bizplace']
74
107
  });
108
+ // 3. from worksheet detail get product name, product type, batchid, packing type, bizplace
109
+ if (foundOrderReverseKittings.length <= 0)
110
+ throw new Error('Unable to find order reverse kittings');
111
+ else {
112
+ for (let i = 0; i < foundOrderReverseKittings.length; i++) {
113
+ let foundORK = foundOrderReverseKittings[i];
114
+ for (let idx = 0; idx < targets.length; idx++) {
115
+ if (foundORK.id === targets[idx].id) {
116
+ // 4. generate pallet id based on print qty > call generateId resolver
117
+ for (let i = 0; i < targets[idx].printQty; i++) {
118
+ const generatedPalletId = await (0, id_rule_base_1.generateId)({
119
+ domain,
120
+ type,
121
+ seed: {
122
+ batchId: foundORK.inventory.batchId,
123
+ date: date
124
+ }
125
+ });
126
+ // 5. map all data to be returned
127
+ if (foundORK != null) {
128
+ results.push(Object.assign(Object.assign({}, foundORK), { palletId: generatedPalletId, bizplace: foundORK.bizplace }));
129
+ }
130
+ }
131
+ }
132
+ }
133
+ }
134
+ }
135
+ return results;
75
136
  }
76
137
  async reverseKittingOrders(params, context) {
77
138
  const { domain, user } = context.state;
@@ -88,67 +149,6 @@ let ReverseKittingOrderQuery = class ReverseKittingOrderQuery {
88
149
  ] }));
89
150
  return { items, total };
90
151
  }
91
- // @Query(returns => [InventoryDetail], { description: 'To generate reverse kitting order lot id' })
92
- // async generateReverseKittingPalletId(
93
- // @Arg('targets') targets: [PalletInfo],
94
- // @Arg('type') type: string,
95
- // @Ctx() context: any
96
- // ): Promise<InventoryDetail[]> {
97
- // const { tx, domain } = context.state
98
- // // 1. get and set the date
99
- // const today = new Date()
100
- // const year = today.getFullYear()
101
- // const month = today.getMonth()
102
- // const day = today.getDate()
103
- // const yy = String(year).substr(String(year).length - 2)
104
- // const mm = String(month + 1).padStart(2, '0')
105
- // const dd = String(day).padStart(2, '0')
106
- // const date = yy + mm + dd
107
- // let results = []
108
- // // 2. get worksheet detail
109
- // let ids = targets.map(target => target.id)
110
- // // - getRepository using In(array) to pass the value to defined variable
111
- // const reverseKittingOIs: ReverseKittingOrderInventory[] = await tx
112
- // .getRepository(ReverseKittingOrderInventory)
113
- // .find({
114
- // where: {
115
- // domain,
116
- // id: In(ids)
117
- // },
118
- // relations: ['domain', 'bizplace']
119
- // })
120
- // // 3. from worksheet detail get product name, product type, batchid, packing type, bizplace
121
- // if (reverseKittingOIs.length <= 0) throw new Error('Unable to find order reverse kittings')
122
- // else {
123
- // for (let i = 0; i < reverseKittingOIs.length; i++) {
124
- // let reverseKittingOI = reverseKittingOIs[i]
125
- // for (let idx = 0; idx < targets.length; idx++) {
126
- // if (reverseKittingOI.id === targets[idx].id) {
127
- // // 4. generate pallet id based on print qty > call generateId resolver
128
- // for (let i = 0; i < targets[idx].printQty; i++) {
129
- // const generatedPalletId = await generateId({
130
- // domain,
131
- // type,
132
- // seed: {
133
- // batchId: reverseKittingOI.inventory.batchId,
134
- // date: date
135
- // }
136
- // })
137
- // // 5. map all data to be returned
138
- // if (reverseKittingOI != null) {
139
- // results.push({
140
- // ...reverseKittingOI,
141
- // palletId: generatedPalletId,
142
- // bizplace: reverseKittingOI.bizplace
143
- // })
144
- // }
145
- // }
146
- // }
147
- // }
148
- // }
149
- // }
150
- // return results
151
- // }
152
152
  async domain(reverseKittingOrder) {
153
153
  return await (0, typeorm_1.getRepository)(shell_1.Domain).findOne(reverseKittingOrder.domainId);
154
154
  }
@@ -169,12 +169,24 @@ __decorate([
169
169
  ], ReverseKittingOrderQuery.prototype, "reverseKittingOrder", null);
170
170
  __decorate([
171
171
  (0, type_graphql_1.Query)(returns => reverse_kitting_order_1.ReverseKittingOrder, { description: 'To fetch a ReverseKittingOrder' }),
172
- __param(0, (0, type_graphql_1.Arg)('orderReverseKittingName')),
173
- __param(1, (0, type_graphql_1.Ctx)()),
172
+ __param(0, (0, type_graphql_1.Arg)('reverseKittingOIName')),
173
+ __param(1, (0, type_graphql_1.Arg)('productDetailId')),
174
+ __param(2, (0, type_graphql_1.Ctx)()),
174
175
  __metadata("design:type", Function),
175
- __metadata("design:paramtypes", [String, Object]),
176
+ __metadata("design:paramtypes", [String, String, Object]),
176
177
  __metadata("design:returntype", Promise)
177
178
  ], ReverseKittingOrderQuery.prototype, "reverseKittingInventories", null);
179
+ __decorate([
180
+ (0, type_graphql_1.Query)(returns => [reverse_kitting_order_type_1.ReverseKittingInventoryDetail], {
181
+ description: 'To generate lot id and label for reverse kitting'
182
+ }),
183
+ __param(0, (0, type_graphql_1.Arg)('targets', type => [reverse_kitting_order_type_1.LotInfo])),
184
+ __param(1, (0, type_graphql_1.Arg)('type')),
185
+ __param(2, (0, type_graphql_1.Ctx)()),
186
+ __metadata("design:type", Function),
187
+ __metadata("design:paramtypes", [Array, String, Object]),
188
+ __metadata("design:returntype", Promise)
189
+ ], ReverseKittingOrderQuery.prototype, "generateReverseKittingLotId", null);
178
190
  __decorate([
179
191
  (0, type_graphql_1.Query)(returns => reverse_kitting_order_type_1.ReverseKittingOrderList, { description: 'To fetch multiple ReverseKittingOrders' }),
180
192
  __param(0, (0, type_graphql_1.Args)()),
@@ -1 +1 @@
1
- {"version":3,"file":"reverse-kitting-order-query.js","sourceRoot":"","sources":["../../../server/service/reverse-kitting-order/reverse-kitting-order-query.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAAmF;AACnF,qCAA2C;AAE3C,yDAAgD;AAChD,uDAA4E;AAC5E,iDAA4E;AAC5E,mEAA4E;AAE5E,+CAAkD;AAClD,wHAAiH;AACjH,mEAA6D;AAC7D,6EAAsE;AAGtE,IAAa,wBAAwB,GAArC,MAAa,wBAAwB;IAEnC,KAAK,CAAC,mBAAmB,CAAc,IAAY,EAAS,OAAY;QACtE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,GAAmC,OAAO,CAAC,KAAK,CAAA;QAEtE,OAAO,MAAM,IAAA,uBAAa,EAAC,2CAAmB,CAAC,CAAC,OAAO,CAAC;YACtD,KAAK,EAAE;gBACL,MAAM;gBACN,IAAI;gBACJ,QAAQ,EAAE,IAAA,YAAE,EAAC,MAAM,IAAA,kCAAuB,EAAC,MAAM,EAAE,IAAI,CAAC,CAAC;aAC1D;YACD,SAAS,EA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a,EAAC,IAAI,CAAC,EAAE,CAAC,cAAM,CAAC;IAChB,WAAA,IAAA,mBAAI,GAAE,CAAA;;qCAAsB,2CAAmB;;sDAE5D;AAGD;IADC,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,CAAC;IACb,WAAA,IAAA,mBAAI,GAAE,CAAA;;qCAAsB,2CAAmB;;uDAE7D;AAGD;IADC,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,CAAC;IACb,WAAA,IAAA,mBAAI,GAAE,CAAA;;qCAAsB,2CAAmB;;uDAE7D;AAnKU,wBAAwB;IADpC,IAAA,uBAAQ,EAAC,2CAAmB,CAAC;GACjB,wBAAwB,CAoKpC;AApKY,4DAAwB"}
1
+ {"version":3,"file":"reverse-kitting-order-query.js","sourceRoot":"","sources":["../../../server/service/reverse-kitting-order/reverse-kitting-order-query.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAAmF;AACnF,qCAA2C;AAE3C,yDAAgD;AAChD,uDAA4E;AAC5E,+DAAyD;AACzD,+DAAqE;AACrE,iDAA4E;AAC5E,mEAA4E;AAE5E,+CAAkD;AAClD,wHAAiH;AACjH,mEAA6D;AAC7D,6EAA8G;AAG9G,IAAa,wBAAwB,GAArC,MAAa,wBAAwB;IAEnC,KAAK,CAAC,mBAAmB,CAAc,IAAY,EAAS,OAAY;QACtE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,GAAmC,OAAO,CAAC,KAAK,CAAA;QAEtE,OAAO,MAAM,IAAA,uBAAa,EAAC,2CAAmB,CAAC,CAAC,OAAO,CAAC;YACtD,KAAK,EAAE;gBACL,MAAM;gBACN,IAAI;gBACJ,QAAQ,EAAE,IAAA,YAAE,EAAC,MAAM,IAAA,kCAAuB,EAAC,MAAM,EAAE,IAAI,CAAC,CAAC;aAC1D;YACD,SAAS,EAAE;gBACT,QAAQ;gBACR,UAAU;gBACV,gCAAgC;gBAChC,oCAAoC;gBACpC,0C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sB,CAAC,CAAA;IAC3B,WAAA,IAAA,kBAAG,EAAC,iBAAiB,CAAC,CAAA;IACtB,WAAA,IAAA,kBAAG,GAAE,CAAA;;;;yEAqCP;AAKD;IAHC,IAAA,oBAAK,EAAC,OAAO,CAAC,EAAE,CAAC,CAAC,0DAA6B,CAAC,EAAE;QACjD,WAAW,EAAE,kDAAkD;KAChE,CAAC;IAEC,WAAA,IAAA,kBAAG,EAAC,SAAS,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,oCAAO,CAAC,CAAC,CAAA;IACjC,WAAA,IAAA,kBAAG,EAAC,MAAM,CAAC,CAAA;IACX,WAAA,IAAA,kBAAG,GAAE,CAAA;;;;2EAgEP;AAGD;IADC,IAAA,oBAAK,EAAC,OAAO,CAAC,EAAE,CAAC,oDAAuB,EAAE,EAAE,WAAW,EAAE,wCAAwC,EAAE,CAAC;IACzE,WAAA,IAAA,mBAAI,GAAE,CAAA;IAAqB,WAAA,IAAA,kBAAG,GAAE,CAAA;;yDAAjB,iBAAS,oBAAT,iBAAS;;oEAmBnD;AAGD;IADC,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,cAAM,CAAC;IAChB,WAAA,IAAA,mBAAI,GAAE,CAAA;;qCAAsB,2CAAmB;;sDAE5D;AAGD;IADC,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,CAAC;IACb,WAAA,IAAA,mBAAI,GAAE,CAAA;;qCAAsB,2CAAmB;;uDAE7D;AAGD;IADC,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,CAAC;IACb,WAAA,IAAA,mBAAI,GAAE,CAAA;;qCAAsB,2CAAmB;;uDAE7D;AAjLU,wBAAwB;IADpC,IAAA,uBAAQ,EAAC,2CAAmB,CAAC;GACjB,wBAAwB,CAkLpC;AAlLY,4DAAwB"}
@@ -8,10 +8,17 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
8
8
  var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
+ var _a, _b, _c, _d, _e, _f, _g, _h;
11
12
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.ReverseKittingOrderList = exports.ReverseKittingOrderPatch = exports.NewReverseKittingOrder = void 0;
13
+ exports.ReverseKittingInventoryDetail = exports.ReverseKittingOrderList = exports.ReverseKittingOrderPatch = exports.LotInfo = exports.NewReverseKittingOrder = void 0;
13
14
  const type_graphql_1 = require("type-graphql");
14
15
  const shell_1 = require("@things-factory/shell");
16
+ const product_base_1 = require("@things-factory/product-base");
17
+ const warehouse_base_1 = require("@things-factory/warehouse-base");
18
+ const shell_2 = require("@things-factory/shell");
19
+ const biz_base_1 = require("@things-factory/biz-base");
20
+ const warehouse_base_2 = require("@things-factory/warehouse-base");
21
+ const auth_base_1 = require("@things-factory/auth-base");
15
22
  const reverse_kitting_order_inventory_type_1 = require("../reverse-kitting-order-inventory/reverse-kitting-order-inventory-type");
16
23
  const reverse_kitting_order_1 = require("./reverse-kitting-order");
17
24
  let NewReverseKittingOrder = class NewReverseKittingOrder {
@@ -40,6 +47,20 @@ NewReverseKittingOrder = __decorate([
40
47
  (0, type_graphql_1.InputType)()
41
48
  ], NewReverseKittingOrder);
42
49
  exports.NewReverseKittingOrder = NewReverseKittingOrder;
50
+ let LotInfo = class LotInfo {
51
+ };
52
+ __decorate([
53
+ (0, type_graphql_1.Field)(),
54
+ __metadata("design:type", String)
55
+ ], LotInfo.prototype, "id", void 0);
56
+ __decorate([
57
+ (0, type_graphql_1.Field)(),
58
+ __metadata("design:type", Number)
59
+ ], LotInfo.prototype, "printQty", void 0);
60
+ LotInfo = __decorate([
61
+ (0, type_graphql_1.InputType)()
62
+ ], LotInfo);
63
+ exports.LotInfo = LotInfo;
43
64
  let ReverseKittingOrderPatch = class ReverseKittingOrderPatch {
44
65
  };
45
66
  __decorate([
@@ -84,4 +105,126 @@ ReverseKittingOrderList = __decorate([
84
105
  (0, type_graphql_1.ObjectType)()
85
106
  ], ReverseKittingOrderList);
86
107
  exports.ReverseKittingOrderList = ReverseKittingOrderList;
108
+ let ReverseKittingInventoryDetail = class ReverseKittingInventoryDetail {
109
+ };
110
+ __decorate([
111
+ (0, type_graphql_1.Field)(type => type_graphql_1.ID),
112
+ __metadata("design:type", String)
113
+ ], ReverseKittingInventoryDetail.prototype, "id", void 0);
114
+ __decorate([
115
+ (0, type_graphql_1.Field)(type => shell_2.Domain, { nullable: true }),
116
+ __metadata("design:type", typeof (_a = typeof shell_2.Domain !== "undefined" && shell_2.Domain) === "function" ? _a : Object)
117
+ ], ReverseKittingInventoryDetail.prototype, "domain", void 0);
118
+ __decorate([
119
+ (0, type_graphql_1.Field)(type => biz_base_1.Bizplace, { nullable: true }),
120
+ __metadata("design:type", typeof (_b = typeof biz_base_1.Bizplace !== "undefined" && biz_base_1.Bizplace) === "function" ? _b : Object)
121
+ ], ReverseKittingInventoryDetail.prototype, "bizplace", void 0);
122
+ __decorate([
123
+ (0, type_graphql_1.Field)(type => warehouse_base_2.Inventory, { nullable: true }),
124
+ __metadata("design:type", typeof (_c = typeof warehouse_base_2.Inventory !== "undefined" && warehouse_base_2.Inventory) === "function" ? _c : Object)
125
+ ], ReverseKittingInventoryDetail.prototype, "refInventory", void 0);
126
+ __decorate([
127
+ (0, type_graphql_1.Field)({ nullable: true }),
128
+ __metadata("design:type", String)
129
+ ], ReverseKittingInventoryDetail.prototype, "name", void 0);
130
+ __decorate([
131
+ (0, type_graphql_1.Field)({ nullable: true }),
132
+ __metadata("design:type", String)
133
+ ], ReverseKittingInventoryDetail.prototype, "palletId", void 0);
134
+ __decorate([
135
+ (0, type_graphql_1.Field)({ nullable: true }),
136
+ __metadata("design:type", String)
137
+ ], ReverseKittingInventoryDetail.prototype, "cartonId", void 0);
138
+ __decorate([
139
+ (0, type_graphql_1.Field)({ nullable: true }),
140
+ __metadata("design:type", String)
141
+ ], ReverseKittingInventoryDetail.prototype, "batchId", void 0);
142
+ __decorate([
143
+ (0, type_graphql_1.Field)(type => product_base_1.Product, { nullable: true }),
144
+ __metadata("design:type", typeof (_d = typeof product_base_1.Product !== "undefined" && product_base_1.Product) === "function" ? _d : Object)
145
+ ], ReverseKittingInventoryDetail.prototype, "product", void 0);
146
+ __decorate([
147
+ (0, type_graphql_1.Field)(type => warehouse_base_1.Location, { nullable: true }),
148
+ __metadata("design:type", typeof (_e = typeof warehouse_base_1.Location !== "undefined" && warehouse_base_1.Location) === "function" ? _e : Object)
149
+ ], ReverseKittingInventoryDetail.prototype, "location", void 0);
150
+ __decorate([
151
+ (0, type_graphql_1.Field)(type => warehouse_base_2.Warehouse, { nullable: true }),
152
+ __metadata("design:type", typeof (_f = typeof warehouse_base_2.Warehouse !== "undefined" && warehouse_base_2.Warehouse) === "function" ? _f : Object)
153
+ ], ReverseKittingInventoryDetail.prototype, "warehouse", void 0);
154
+ __decorate([
155
+ (0, type_graphql_1.Field)({ nullable: true }),
156
+ __metadata("design:type", String)
157
+ ], ReverseKittingInventoryDetail.prototype, "zone", void 0);
158
+ __decorate([
159
+ (0, type_graphql_1.Field)({ nullable: true }),
160
+ __metadata("design:type", String)
161
+ ], ReverseKittingInventoryDetail.prototype, "packingType", void 0);
162
+ __decorate([
163
+ (0, type_graphql_1.Field)(type => type_graphql_1.Float, { nullable: true }),
164
+ __metadata("design:type", Number)
165
+ ], ReverseKittingInventoryDetail.prototype, "packingSize", void 0);
166
+ __decorate([
167
+ (0, type_graphql_1.Field)(type => type_graphql_1.Int, { nullable: true }),
168
+ __metadata("design:type", Number)
169
+ ], ReverseKittingInventoryDetail.prototype, "qty", void 0);
170
+ __decorate([
171
+ (0, type_graphql_1.Field)(type => type_graphql_1.Int, { nullable: true }),
172
+ __metadata("design:type", Number)
173
+ ], ReverseKittingInventoryDetail.prototype, "remainQty", void 0);
174
+ __decorate([
175
+ (0, type_graphql_1.Field)({ nullable: true }),
176
+ __metadata("design:type", String)
177
+ ], ReverseKittingInventoryDetail.prototype, "otherRef", void 0);
178
+ __decorate([
179
+ (0, type_graphql_1.Field)(type => type_graphql_1.Int, { nullable: true }),
180
+ __metadata("design:type", Number)
181
+ ], ReverseKittingInventoryDetail.prototype, "lastSeq", void 0);
182
+ __decorate([
183
+ (0, type_graphql_1.Field)(type => type_graphql_1.Float, { nullable: true }),
184
+ __metadata("design:type", Number)
185
+ ], ReverseKittingInventoryDetail.prototype, "uomValue", void 0);
186
+ __decorate([
187
+ (0, type_graphql_1.Field)(type => type_graphql_1.Float, { nullable: true }),
188
+ __metadata("design:type", Number)
189
+ ], ReverseKittingInventoryDetail.prototype, "remainUomValue", void 0);
190
+ __decorate([
191
+ (0, type_graphql_1.Field)({ nullable: true }),
192
+ __metadata("design:type", String)
193
+ ], ReverseKittingInventoryDetail.prototype, "uom", void 0);
194
+ __decorate([
195
+ (0, type_graphql_1.Field)({ nullable: true }),
196
+ __metadata("design:type", String)
197
+ ], ReverseKittingInventoryDetail.prototype, "status", void 0);
198
+ __decorate([
199
+ (0, type_graphql_1.Field)({ nullable: true }),
200
+ __metadata("design:type", String)
201
+ ], ReverseKittingInventoryDetail.prototype, "description", void 0);
202
+ __decorate([
203
+ (0, type_graphql_1.Field)({ nullable: true }),
204
+ __metadata("design:type", String)
205
+ ], ReverseKittingInventoryDetail.prototype, "remark", void 0);
206
+ __decorate([
207
+ (0, type_graphql_1.Field)({ nullable: true }),
208
+ __metadata("design:type", String)
209
+ ], ReverseKittingInventoryDetail.prototype, "batchIdRef", void 0);
210
+ __decorate([
211
+ (0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true }),
212
+ __metadata("design:type", typeof (_g = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _g : Object)
213
+ ], ReverseKittingInventoryDetail.prototype, "creator", void 0);
214
+ __decorate([
215
+ (0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true }),
216
+ __metadata("design:type", typeof (_h = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _h : Object)
217
+ ], ReverseKittingInventoryDetail.prototype, "updater", void 0);
218
+ __decorate([
219
+ (0, type_graphql_1.Field)({ nullable: true }),
220
+ __metadata("design:type", String)
221
+ ], ReverseKittingInventoryDetail.prototype, "createdAt", void 0);
222
+ __decorate([
223
+ (0, type_graphql_1.Field)({ nullable: true }),
224
+ __metadata("design:type", String)
225
+ ], ReverseKittingInventoryDetail.prototype, "updatedAt", void 0);
226
+ ReverseKittingInventoryDetail = __decorate([
227
+ (0, type_graphql_1.ObjectType)()
228
+ ], ReverseKittingInventoryDetail);
229
+ exports.ReverseKittingInventoryDetail = ReverseKittingInventoryDetail;
87
230
  //# sourceMappingURL=reverse-kitting-order-type.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"reverse-kitting-order-type.js","sourceRoot":"","sources":["../../../server/service/reverse-kitting-order/reverse-kitting-order-type.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAAoE;AAEpE,iDAAiD;AAEjD,kIAAyH;AACzH,mEAA6D;AAG7D,IAAa,sBAAsB,GAAnC,MAAa,sBAAsB;CAelC,CAAA;AAbC;IADC,IAAA,oBAAK,GAAE;;oDACI;AAGZ;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kEACC;AAG3B;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sDACX;AAGf;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,sEAA+B,CAAC,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8EACH;AAGlE;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sDACX;AAdJ,sBAAsB;IADlC,IAAA,wBAAS,GAAE;GACC,sBAAsB,CAelC;AAfY,wDAAsB;AAkBnC,IAAa,wBAAwB,GAArC,MAAa,wBAAwB;CAkBpC,CAAA;AAhBC;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDAC3B;AAGX;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sDACb;AAGb;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,iBAAS,CAAC,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gFACJ;AAG3C;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wDACX;AAGf;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wDACX;AAGf;IADC,IAAA,oBAAK,GAAE;;wDACM;AAjBH,wBAAwB;IADpC,IAAA,wBAAS,GAAE;GACC,wBAAwB,CAkBpC;AAlBY,4DAAwB;AAqBrC,IAAa,uBAAuB,GAApC,MAAa,uBAAuB;CAMnC,CAAA;AAJC;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,2CAAmB,CAAC,CAAC;;sDACT;AAG5B;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,CAAC;;sDACN;AALF,uBAAuB;IADnC,IAAA,yBAAU,GAAE;GACA,uBAAuB,CAMnC;AANY,0DAAuB"}
1
+ {"version":3,"file":"reverse-kitting-order-type.js","sourceRoot":"","sources":["../../../server/service/reverse-kitting-order/reverse-kitting-order-type.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,+CAA2E;AAE3E,iDAAiD;AACjD,+DAAsD;AACtD,mEAAyD;AACzD,iDAA8C;AAC9C,uDAAmD;AACnD,mEAAqE;AACrE,yDAAgD;AAEhD,kIAAyH;AACzH,mEAA6D;AAG7D,IAAa,sBAAsB,GAAnC,MAAa,sBAAsB;CAelC,CAAA;AAbC;IADC,IAAA,oBAAK,GAAE;;oDACI;AAGZ;IADC,IAAA,oBA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EAAE,IAAI,EAAE,CAAC;;qEACnB;AAGtB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0DACf;AAGX;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6DACZ;AAGd;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kEACP;AAGnB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6DACZ;AAGd;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iEACR;AAGlB;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;kDAC/B,gBAAI,oBAAJ,gBAAI;8DAAA;AAGb;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;kDAC/B,gBAAI,oBAAJ,gBAAI;8DAAA;AAGb;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gEACT;AAGjB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gEACT;AAtFN,6BAA6B;IADzC,IAAA,yBAAU,GAAE;GACA,6BAA6B,CAuFzC;AAvFY,sEAA6B"}
@@ -15,6 +15,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.ReverseKittingOrderInventoryMutation = void 0;
16
16
  const type_graphql_1 = require("type-graphql");
17
17
  const typeorm_1 = require("typeorm");
18
+ const biz_base_1 = require("@things-factory/biz-base");
18
19
  const reverse_kitting_order_inventory_1 = require("./reverse-kitting-order-inventory");
19
20
  const reverse_kitting_order_inventory_type_1 = require("./reverse-kitting-order-inventory-type");
20
21
  let ReverseKittingOrderInventoryMutation = class ReverseKittingOrderInventoryMutation {
@@ -23,12 +24,17 @@ let ReverseKittingOrderInventoryMutation = class ReverseKittingOrderInventoryMut
23
24
  return await tx.getRepository(reverse_kitting_order_inventory_1.ReverseKittingOrderInventory).save(Object.assign(Object.assign({}, reverseKittingOrderInventory), { domain, creator: user, updater: user }));
24
25
  }
25
26
  async updateReverseKittingOrderInventory(id, patch, context) {
26
- const { domain, user, tx } = context.state;
27
- const repository = tx.getRepository(reverse_kitting_order_inventory_1.ReverseKittingOrderInventory);
28
- const reverseKittingOrderInventory = await repository.findOne({
29
- where: { domain, id }
27
+ const { tx, user, domain } = context.state;
28
+ const reverseKittingOI = await tx
29
+ .getRepository(reverse_kitting_order_inventory_1.ReverseKittingOrderInventory)
30
+ .findOne({
31
+ where: {
32
+ domain,
33
+ bizplace: (0, typeorm_1.In)(await (0, biz_base_1.getPermittedBizplaceIds)(domain, user)),
34
+ id
35
+ }
30
36
  });
31
- return await repository.save(Object.assign(Object.assign(Object.assign({}, reverseKittingOrderInventory), patch), { updater: user }));
37
+ return await tx.getRepository(reverse_kitting_order_inventory_1.ReverseKittingOrderInventory).save(Object.assign(Object.assign(Object.assign({}, reverseKittingOI), patch), { updater: user }));
32
38
  }
33
39
  async updateMultipleReverseKittingOrderInventory(patches, context) {
34
40
  const { domain, user, tx } = context.state;
@@ -78,7 +84,9 @@ __decorate([
78
84
  ], ReverseKittingOrderInventoryMutation.prototype, "createReverseKittingOrderInventory", null);
79
85
  __decorate([
80
86
  (0, type_graphql_1.Directive)('@transaction'),
81
- (0, type_graphql_1.Mutation)(returns => reverse_kitting_order_inventory_1.ReverseKittingOrderInventory, { description: 'To modify ReverseKittingOrderInventory information' }),
87
+ (0, type_graphql_1.Mutation)(returns => reverse_kitting_order_inventory_1.ReverseKittingOrderInventory, {
88
+ description: 'To modify ReverseKittingOrderInventory information'
89
+ }),
82
90
  __param(0, (0, type_graphql_1.Arg)('id')),
83
91
  __param(1, (0, type_graphql_1.Arg)('patch')),
84
92
  __param(2, (0, type_graphql_1.Ctx)()),
@@ -88,7 +96,9 @@ __decorate([
88
96
  ], ReverseKittingOrderInventoryMutation.prototype, "updateReverseKittingOrderInventory", null);
89
97
  __decorate([
90
98
  (0, type_graphql_1.Directive)('@transaction'),
91
- (0, type_graphql_1.Mutation)(returns => [reverse_kitting_order_inventory_1.ReverseKittingOrderInventory], { description: "To modify multiple ReverseKittingOrderInventories' information" }),
99
+ (0, type_graphql_1.Mutation)(returns => [reverse_kitting_order_inventory_1.ReverseKittingOrderInventory], {
100
+ description: "To modify multiple ReverseKittingOrderInventories' information"
101
+ }),
92
102
  __param(0, (0, type_graphql_1.Arg)('patches', type => [reverse_kitting_order_inventory_type_1.ReverseKittingOrderInventoryPatch])),
93
103
  __param(1, (0, type_graphql_1.Ctx)()),
94
104
  __metadata("design:type", Function),
@@ -1 +1 @@
1
- {"version":3,"file":"reverse-kitting-order-inventory-mutation.js","sourceRoot":"","sources":["../../../server/service/reverse-kitting-order-inventory/reverse-kitting-order-inventory-mutation.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+CAAsE;AACtE,qCAA2C;AAC3C,uFAAgF;AAChF,iGAA2H;AAG3H,IAAa,oCAAoC,GAAjD,MAAa,oCAAoC;IAG/C,KAAK,CAAC,kCAAkC,CAAsC,4BAA6D,EAAS,OAAY;QAC9J,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAE1C,OAAO,MAAM,EAAE,CAAC,aAAa,CAAC,8DAA4B,CAAC,CAAC,IAAI,iCAC3D,4BAA4B,KAC/B,MAAM,EACN,OAAO,EAAE,IAAI,EACb,OAAO,EAAE,IAAI,IACb,CAAA;IACJ,CAAC;IAID,KAAK,CAAC,kCAAkC,CAC3B,EAAU,EACP,KAAwC,EAC/C,OAAY;QAEnB,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAE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C,MAAM,CAAC,CAAC,CAAA;IAC5B,WAAA,IAAA,kBAAG,GAAE,CAAA;;;;gGAUP;AAxGU,oCAAoC;IADhD,IAAA,uBAAQ,EAAC,8DAA4B,CAAC;GAC1B,oCAAoC,CAyGhD;AAzGY,oFAAoC"}
1
+ {"version":3,"file":"reverse-kitting-order-inventory-mutation.js","sourceRoot":"","sources":["../../../server/service/reverse-kitting-order-inventory/reverse-kitting-order-inventory-mutation.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+CAAsE;AACtE,qCAA4B;AAE5B,uDAAkE;AAElE,uFAAgF;AAChF,iGAG+C;AAG/C,IAAa,oCAAoC,GAAjD,MAAa,oCAAoC;IAG/C,KAAK,CAAC,kCAAkC,CACD,4BAA6D,EAC3F,OAAY;QAEnB,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAE1C,OAAO,MAAM,EAAE,CAAC,aAAa,CAAC,8DAA4B,CAAC,CAAC,IAAI,iCAC3D,4BAA4B,KAC/B,MAAM,EACN,OAAO,EAAE,IAAI,EACb,OAAO,EAAE,IAAI,IACb,CAAA;IACJ,CAAC;IAMD,KAAK,CAAC,kCAAkC,CAC3B,EAAU,EACP,KAAwC,EAC/C,OAAY;QAEnB,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAC1C,MAAM,gBAAgB,GAAiC,MAAM,EAAE;aAC5D,aAAa,CAAC,8DAA4B,CAAC;aAC3C,OAAO,CAAC;YACP,KAAK,EAAE;gBACL,MAAM;gBACN,QAAQ,EAAE,IAAA,YAAE,EAAC,MAAM,IAAA,kCAAuB,EAAC,MAAM,EAAE,IAAI,CAAC,CAAC;gBACzD,EAAE;aACH;SACF,CAAC,CAAA;QAEJ,OAAO,MAAM,EAAE,CAAC,aAAa,CAAC,8DAA4B,CAAC,CAAC,IAAI,+CAC3D,gBAAgB,GAChB,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version": "4.0.12",
3
+ "version": "4.0.17",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -24,16 +24,16 @@
24
24
  "migration:create": "node ../../node_modules/typeorm/cli.js migration:create -d ./server/migrations"
25
25
  },
26
26
  "dependencies": {
27
- "@things-factory/attachment-base": "^4.0.12",
28
- "@things-factory/auth-base": "^4.0.12",
29
- "@things-factory/biz-base": "^4.0.12",
30
- "@things-factory/code-base": "^4.0.12",
31
- "@things-factory/notification": "^4.0.12",
32
- "@things-factory/product-base": "^4.0.12",
33
- "@things-factory/setting-base": "^4.0.12",
34
- "@things-factory/shell": "^4.0.12",
35
- "@things-factory/transport-base": "^4.0.12",
36
- "@things-factory/warehouse-base": "^4.0.12"
27
+ "@things-factory/attachment-base": "^4.0.17",
28
+ "@things-factory/auth-base": "^4.0.17",
29
+ "@things-factory/biz-base": "^4.0.17",
30
+ "@things-factory/code-base": "^4.0.17",
31
+ "@things-factory/notification": "^4.0.17",
32
+ "@things-factory/product-base": "^4.0.17",
33
+ "@things-factory/setting-base": "^4.0.17",
34
+ "@things-factory/shell": "^4.0.17",
35
+ "@things-factory/transport-base": "^4.0.17",
36
+ "@things-factory/warehouse-base": "^4.0.17"
37
37
  },
38
- "gitHead": "29d59ff95fcb473cb43c6f798cd04f3ec3a779a0"
38
+ "gitHead": "a82db9fc895f18855244c3d09383758608e03e19"
39
39
  }
@@ -282,8 +282,6 @@ export class ArrivalNoticeQuery {
282
282
  const [items, total] = await qb.getManyAndCount()
283
283
 
284
284
  return { items, total }
285
-
286
- return { items, total }
287
285
  } catch (error) {
288
286
  throw error
289
287
  }