@things-factory/warehouse-base 4.3.671 → 4.3.673
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-server/constants/adjustment-code.js +13 -0
- package/dist-server/constants/adjustment-code.js.map +1 -0
- package/dist-server/constants/index.js +23 -0
- package/dist-server/constants/index.js.map +1 -0
- package/dist-server/constants/inventory.js +74 -0
- package/dist-server/constants/inventory.js.map +1 -0
- package/dist-server/constants/location.js +19 -0
- package/dist-server/constants/location.js.map +1 -0
- package/dist-server/constants/pallet.js +13 -0
- package/dist-server/constants/pallet.js.map +1 -0
- package/dist-server/constants/rule-type.js +8 -0
- package/dist-server/constants/rule-type.js.map +1 -0
- package/dist-server/constants/tote.js +9 -0
- package/dist-server/constants/tote.js.map +1 -0
- package/dist-server/controllers/ecommerce/ecommerce-controller.js +125 -0
- package/dist-server/controllers/ecommerce/ecommerce-controller.js.map +1 -0
- package/dist-server/controllers/ecommerce/index.js +22 -0
- package/dist-server/controllers/ecommerce/index.js.map +1 -0
- package/dist-server/controllers/ecommerce/pos-controller.js +65 -0
- package/dist-server/controllers/ecommerce/pos-controller.js.map +1 -0
- package/dist-server/controllers/ecommerce/powrup-controller.js +87 -0
- package/dist-server/controllers/ecommerce/powrup-controller.js.map +1 -0
- package/dist-server/controllers/ecommerce/sellercraft-controller.js +85 -0
- package/dist-server/controllers/ecommerce/sellercraft-controller.js.map +1 -0
- package/dist-server/controllers/ecommerce/webspert-controller.js +131 -0
- package/dist-server/controllers/ecommerce/webspert-controller.js.map +1 -0
- package/dist-server/controllers/index.js +19 -0
- package/dist-server/controllers/index.js.map +1 -0
- package/dist-server/controllers/warehouse-controller.js +143 -0
- package/dist-server/controllers/warehouse-controller.js.map +1 -0
- package/dist-server/index.js +35 -0
- package/dist-server/index.js.map +1 -0
- package/dist-server/middlewares/index.js +1 -0
- package/dist-server/middlewares/index.js.map +1 -0
- package/dist-server/migrations/index.js +12 -0
- package/dist-server/migrations/index.js.map +1 -0
- package/dist-server/service/index.js +96 -0
- package/dist-server/service/index.js.map +1 -0
- package/dist-server/service/inventory/index.js +9 -0
- package/dist-server/service/inventory/index.js.map +1 -0
- package/dist-server/service/inventory/inventory-mutation.js +414 -0
- package/dist-server/service/inventory/inventory-mutation.js.map +1 -0
- package/dist-server/service/inventory/inventory-query.js +1211 -0
- package/dist-server/service/inventory/inventory-query.js.map +1 -0
- package/dist-server/service/inventory/inventory-types.js +478 -0
- package/dist-server/service/inventory/inventory-types.js.map +1 -0
- package/dist-server/service/inventory/inventory.js +569 -0
- package/dist-server/service/inventory/inventory.js.map +1 -0
- package/dist-server/service/inventory-change/index.js +9 -0
- package/dist-server/service/inventory-change/index.js.map +1 -0
- package/dist-server/service/inventory-change/inventory-change-mutation.js +1188 -0
- package/dist-server/service/inventory-change/inventory-change-mutation.js.map +1 -0
- package/dist-server/service/inventory-change/inventory-change-query.js +150 -0
- package/dist-server/service/inventory-change/inventory-change-query.js.map +1 -0
- package/dist-server/service/inventory-change/inventory-change-types.js +73 -0
- package/dist-server/service/inventory-change/inventory-change-types.js.map +1 -0
- package/dist-server/service/inventory-change/inventory-change.js +225 -0
- package/dist-server/service/inventory-change/inventory-change.js.map +1 -0
- package/dist-server/service/inventory-history/index.js +9 -0
- package/dist-server/service/inventory-history/index.js.map +1 -0
- package/dist-server/service/inventory-history/inventory-history-mutation.js +121 -0
- package/dist-server/service/inventory-history/inventory-history-mutation.js.map +1 -0
- package/dist-server/service/inventory-history/inventory-history-query.js +1694 -0
- package/dist-server/service/inventory-history/inventory-history-query.js.map +1 -0
- package/dist-server/service/inventory-history/inventory-history-types.js +626 -0
- package/dist-server/service/inventory-history/inventory-history-types.js.map +1 -0
- package/dist-server/service/inventory-history/inventory-history.js +238 -0
- package/dist-server/service/inventory-history/inventory-history.js.map +1 -0
- package/dist-server/service/inventory-item/index.js +9 -0
- package/dist-server/service/inventory-item/index.js.map +1 -0
- package/dist-server/service/inventory-item/inventory-item-mutation.js +274 -0
- package/dist-server/service/inventory-item/inventory-item-mutation.js.map +1 -0
- package/dist-server/service/inventory-item/inventory-item-query.js +265 -0
- package/dist-server/service/inventory-item/inventory-item-query.js.map +1 -0
- package/dist-server/service/inventory-item/inventory-item-type.js +127 -0
- package/dist-server/service/inventory-item/inventory-item-type.js.map +1 -0
- package/dist-server/service/inventory-item/inventory-item.js +146 -0
- package/dist-server/service/inventory-item/inventory-item.js.map +1 -0
- package/dist-server/service/inventory-item-change/index.js +9 -0
- package/dist-server/service/inventory-item-change/index.js.map +1 -0
- package/dist-server/service/inventory-item-change/inventory-item-change-mutation.js +121 -0
- package/dist-server/service/inventory-item-change/inventory-item-change-mutation.js.map +1 -0
- package/dist-server/service/inventory-item-change/inventory-item-change-query.js +87 -0
- package/dist-server/service/inventory-item-change/inventory-item-change-query.js.map +1 -0
- package/dist-server/service/inventory-item-change/inventory-item-change-type.js +107 -0
- package/dist-server/service/inventory-item-change/inventory-item-change-type.js.map +1 -0
- package/dist-server/service/inventory-item-change/inventory-item-change.js +110 -0
- package/dist-server/service/inventory-item-change/inventory-item-change.js.map +1 -0
- package/dist-server/service/inventory-product/index.js +9 -0
- package/dist-server/service/inventory-product/index.js.map +1 -0
- package/dist-server/service/inventory-product/inventory-product-mutation.js +120 -0
- package/dist-server/service/inventory-product/inventory-product-mutation.js.map +1 -0
- package/dist-server/service/inventory-product/inventory-product-query.js +87 -0
- package/dist-server/service/inventory-product/inventory-product-query.js.map +1 -0
- package/dist-server/service/inventory-product/inventory-product-type.js +95 -0
- package/dist-server/service/inventory-product/inventory-product-type.js.map +1 -0
- package/dist-server/service/inventory-product/inventory-product.js +112 -0
- package/dist-server/service/inventory-product/inventory-product.js.map +1 -0
- package/dist-server/service/location/index.js +9 -0
- package/dist-server/service/location/index.js.map +1 -0
- package/dist-server/service/location/location-mutation.js +279 -0
- package/dist-server/service/location/location-mutation.js.map +1 -0
- package/dist-server/service/location/location-query.js +321 -0
- package/dist-server/service/location/location-query.js.map +1 -0
- package/dist-server/service/location/location-types.js +296 -0
- package/dist-server/service/location/location-types.js.map +1 -0
- package/dist-server/service/location/location.js +146 -0
- package/dist-server/service/location/location.js.map +1 -0
- package/dist-server/service/movement/index.js +9 -0
- package/dist-server/service/movement/index.js.map +1 -0
- package/dist-server/service/movement/movement-mutation.js +80 -0
- package/dist-server/service/movement/movement-mutation.js.map +1 -0
- package/dist-server/service/movement/movement-query.js +286 -0
- package/dist-server/service/movement/movement-query.js.map +1 -0
- package/dist-server/service/movement/movement-types.js +117 -0
- package/dist-server/service/movement/movement-types.js.map +1 -0
- package/dist-server/service/movement/movement.js +101 -0
- package/dist-server/service/movement/movement.js.map +1 -0
- package/dist-server/service/pallet/index.js +9 -0
- package/dist-server/service/pallet/index.js.map +1 -0
- package/dist-server/service/pallet/pallet-mutation.js +194 -0
- package/dist-server/service/pallet/pallet-mutation.js.map +1 -0
- package/dist-server/service/pallet/pallet-query.js +164 -0
- package/dist-server/service/pallet/pallet-query.js.map +1 -0
- package/dist-server/service/pallet/pallet-types.js +109 -0
- package/dist-server/service/pallet/pallet-types.js.map +1 -0
- package/dist-server/service/pallet/pallet.js +112 -0
- package/dist-server/service/pallet/pallet.js.map +1 -0
- package/dist-server/service/pallet-count/index.js +9 -0
- package/dist-server/service/pallet-count/index.js.map +1 -0
- package/dist-server/service/pallet-count/pallet-count-mutation.js +153 -0
- package/dist-server/service/pallet-count/pallet-count-mutation.js.map +1 -0
- package/dist-server/service/pallet-count/pallet-count-query.js +86 -0
- package/dist-server/service/pallet-count/pallet-count-query.js.map +1 -0
- package/dist-server/service/pallet-count/pallet-count-types.js +65 -0
- package/dist-server/service/pallet-count/pallet-count-types.js.map +1 -0
- package/dist-server/service/pallet-count/pallet-count.js +89 -0
- package/dist-server/service/pallet-count/pallet-count.js.map +1 -0
- package/dist-server/service/pallet-history/index.js +9 -0
- package/dist-server/service/pallet-history/index.js.map +1 -0
- package/dist-server/service/pallet-history/pallet-history-mutation.js +120 -0
- package/dist-server/service/pallet-history/pallet-history-mutation.js.map +1 -0
- package/dist-server/service/pallet-history/pallet-history-query.js +87 -0
- package/dist-server/service/pallet-history/pallet-history-query.js.map +1 -0
- package/dist-server/service/pallet-history/pallet-history-types.js +65 -0
- package/dist-server/service/pallet-history/pallet-history-types.js.map +1 -0
- package/dist-server/service/pallet-history/pallet-history.js +107 -0
- package/dist-server/service/pallet-history/pallet-history.js.map +1 -0
- package/dist-server/service/product-detail-stock/index.js +9 -0
- package/dist-server/service/product-detail-stock/index.js.map +1 -0
- package/dist-server/service/product-detail-stock/product-detail-stock-mutation.js +120 -0
- package/dist-server/service/product-detail-stock/product-detail-stock-mutation.js.map +1 -0
- package/dist-server/service/product-detail-stock/product-detail-stock-query.js +66 -0
- package/dist-server/service/product-detail-stock/product-detail-stock-query.js.map +1 -0
- package/dist-server/service/product-detail-stock/product-detail-stock-types.js +57 -0
- package/dist-server/service/product-detail-stock/product-detail-stock-types.js.map +1 -0
- package/dist-server/service/product-detail-stock/product-detail-stock.js +90 -0
- package/dist-server/service/product-detail-stock/product-detail-stock.js.map +1 -0
- package/dist-server/service/reduced-inventory-history/index.js +6 -0
- package/dist-server/service/reduced-inventory-history/index.js.map +1 -0
- package/dist-server/service/reduced-inventory-history/reduced-inventory-history.js +133 -0
- package/dist-server/service/reduced-inventory-history/reduced-inventory-history.js.map +1 -0
- package/dist-server/service/tote/index.js +9 -0
- package/dist-server/service/tote/index.js.map +1 -0
- package/dist-server/service/tote/tote-mutation.js +192 -0
- package/dist-server/service/tote/tote-mutation.js.map +1 -0
- package/dist-server/service/tote/tote-query.js +162 -0
- package/dist-server/service/tote/tote-query.js.map +1 -0
- package/dist-server/service/tote/tote-types.js +75 -0
- package/dist-server/service/tote/tote-types.js.map +1 -0
- package/dist-server/service/tote/tote.js +98 -0
- package/dist-server/service/tote/tote.js.map +1 -0
- package/dist-server/service/warehouse/index.js +9 -0
- package/dist-server/service/warehouse/index.js.map +1 -0
- package/dist-server/service/warehouse/warehouse-mutation.js +148 -0
- package/dist-server/service/warehouse/warehouse-mutation.js.map +1 -0
- package/dist-server/service/warehouse/warehouse-query.js +91 -0
- package/dist-server/service/warehouse/warehouse-query.js.map +1 -0
- package/dist-server/service/warehouse/warehouse-types.js +82 -0
- package/dist-server/service/warehouse/warehouse-types.js.map +1 -0
- package/dist-server/service/warehouse/warehouse.js +114 -0
- package/dist-server/service/warehouse/warehouse.js.map +1 -0
- package/dist-server/utils/datetime-util.js +61 -0
- package/dist-server/utils/datetime-util.js.map +1 -0
- package/dist-server/utils/index.js +20 -0
- package/dist-server/utils/index.js.map +1 -0
- package/dist-server/utils/inventory-no-generator.js +17 -0
- package/dist-server/utils/inventory-no-generator.js.map +1 -0
- package/dist-server/utils/inventory-util.js +413 -0
- package/dist-server/utils/inventory-util.js.map +1 -0
- package/package.json +10 -10
|
@@ -0,0 +1,569 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var Inventory_1;
|
|
12
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.Inventory = void 0;
|
|
15
|
+
const type_graphql_1 = require("type-graphql");
|
|
16
|
+
const typeorm_1 = require("typeorm");
|
|
17
|
+
const auth_base_1 = require("@things-factory/auth-base");
|
|
18
|
+
const biz_base_1 = require("@things-factory/biz-base");
|
|
19
|
+
const product_base_1 = require("@things-factory/product-base");
|
|
20
|
+
const shell_1 = require("@things-factory/shell");
|
|
21
|
+
const inventory_change_1 = require("../inventory-change/inventory-change");
|
|
22
|
+
const inventory_item_1 = require("../inventory-item/inventory-item");
|
|
23
|
+
const location_1 = require("../location/location");
|
|
24
|
+
const pallet_1 = require("../pallet/pallet");
|
|
25
|
+
const warehouse_1 = require("../warehouse/warehouse");
|
|
26
|
+
let Inventory = Inventory_1 = class Inventory {
|
|
27
|
+
constructor(obj) {
|
|
28
|
+
if (obj) {
|
|
29
|
+
this.id = obj.inventory_id;
|
|
30
|
+
this.bizplace = {
|
|
31
|
+
id: obj.bizplace_id,
|
|
32
|
+
name: obj.bizplace_name,
|
|
33
|
+
description: obj.bizplace_description
|
|
34
|
+
};
|
|
35
|
+
this.product = new product_base_1.Product(obj);
|
|
36
|
+
this.productDetail = new product_base_1.ProductDetail(obj);
|
|
37
|
+
this.location = new location_1.Location(obj);
|
|
38
|
+
this.warehouse = new warehouse_1.Warehouse(obj);
|
|
39
|
+
this.name = obj.inventory_name;
|
|
40
|
+
this.palletId = obj.inventory_pallet_id;
|
|
41
|
+
this.batchId = obj.inventory_batch_id;
|
|
42
|
+
this.refOrderId = obj.inventory_ref_order_id;
|
|
43
|
+
this.orderProductId = obj.inventory_order_product_id;
|
|
44
|
+
this.zone = obj.inventory_zone;
|
|
45
|
+
this.costPrice = obj.inventory_cost_price;
|
|
46
|
+
this.sellPrice = obj.inventory_sell_price;
|
|
47
|
+
this.packingType = obj.inventory_packing_type;
|
|
48
|
+
this.unit = obj.inventory_unit;
|
|
49
|
+
this.uom = obj.inventory_uom;
|
|
50
|
+
this.uomValue = obj.inventory_uom_value;
|
|
51
|
+
this.lockedUomValue = obj.inventory_locked_uom_value;
|
|
52
|
+
this.qty = obj.inventory_qty;
|
|
53
|
+
this.lockedQty = obj.inventory_locked_qty;
|
|
54
|
+
this.lastSeq = obj.inventory_last_seq;
|
|
55
|
+
this.description = obj.inventory_description;
|
|
56
|
+
this.status = obj.inventory_status;
|
|
57
|
+
this.otherRef = obj.inventory_other_ref;
|
|
58
|
+
this.remark = obj.inventory_remark;
|
|
59
|
+
this.createdAt = obj.inventory_created_at;
|
|
60
|
+
this.updatedAt = obj.inventory_updated_at;
|
|
61
|
+
this.expirationDate = obj.inventory_expiration_date;
|
|
62
|
+
this.unitCost = obj.inventory_unit_cost;
|
|
63
|
+
this.adjustmentCode = obj.inventory_adjustment_code;
|
|
64
|
+
this.adjustmentNote = obj.inventory_adjustment_note;
|
|
65
|
+
this.manufactureYear = obj.inventory_manufacture_year;
|
|
66
|
+
this.manufactureDate = obj.inventory_manufacture_date;
|
|
67
|
+
this.batchIdRef = obj.inventory_batch_id_ref;
|
|
68
|
+
this.cartonId = obj.inventory_carton_id;
|
|
69
|
+
this.packingSize = obj.inventory_packing_size;
|
|
70
|
+
this.creatorId = obj.inventory_creator_id;
|
|
71
|
+
this.updaterId = obj.inventory_updater_id;
|
|
72
|
+
this.obsolete = obj.inventory_obsolete;
|
|
73
|
+
this.transferQty = obj.inventory_transfer_qty;
|
|
74
|
+
this.transferUomValue = obj.inventory_transfer_uom_value;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
80
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.ID),
|
|
81
|
+
__metadata("design:type", String)
|
|
82
|
+
], Inventory.prototype, "id", void 0);
|
|
83
|
+
__decorate([
|
|
84
|
+
(0, typeorm_1.ManyToOne)(type => shell_1.Domain),
|
|
85
|
+
(0, type_graphql_1.Field)(type => shell_1.Domain),
|
|
86
|
+
__metadata("design:type", typeof (_a = typeof shell_1.Domain !== "undefined" && shell_1.Domain) === "function" ? _a : Object)
|
|
87
|
+
], Inventory.prototype, "domain", void 0);
|
|
88
|
+
__decorate([
|
|
89
|
+
(0, typeorm_1.RelationId)((inventory) => inventory.domain),
|
|
90
|
+
__metadata("design:type", String)
|
|
91
|
+
], Inventory.prototype, "domainId", void 0);
|
|
92
|
+
__decorate([
|
|
93
|
+
(0, typeorm_1.ManyToOne)(type => biz_base_1.Bizplace, { nullable: true }),
|
|
94
|
+
(0, type_graphql_1.Field)(type => biz_base_1.Bizplace, { nullable: true }),
|
|
95
|
+
__metadata("design:type", typeof (_b = typeof biz_base_1.Bizplace !== "undefined" && biz_base_1.Bizplace) === "function" ? _b : Object)
|
|
96
|
+
], Inventory.prototype, "bizplace", void 0);
|
|
97
|
+
__decorate([
|
|
98
|
+
(0, typeorm_1.ManyToOne)(type => Inventory_1),
|
|
99
|
+
(0, type_graphql_1.Field)(type => Inventory_1),
|
|
100
|
+
__metadata("design:type", Inventory)
|
|
101
|
+
], Inventory.prototype, "refInventory", void 0);
|
|
102
|
+
__decorate([
|
|
103
|
+
(0, typeorm_1.Column)(),
|
|
104
|
+
(0, type_graphql_1.Field)(),
|
|
105
|
+
__metadata("design:type", String)
|
|
106
|
+
], Inventory.prototype, "name", void 0);
|
|
107
|
+
__decorate([
|
|
108
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
109
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
110
|
+
__metadata("design:type", String)
|
|
111
|
+
], Inventory.prototype, "palletId", void 0);
|
|
112
|
+
__decorate([
|
|
113
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
114
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
115
|
+
__metadata("design:type", String)
|
|
116
|
+
], Inventory.prototype, "cartonId", void 0);
|
|
117
|
+
__decorate([
|
|
118
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
119
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
120
|
+
__metadata("design:type", String)
|
|
121
|
+
], Inventory.prototype, "batchId", void 0);
|
|
122
|
+
__decorate([
|
|
123
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
124
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
125
|
+
__metadata("design:type", String)
|
|
126
|
+
], Inventory.prototype, "batchIdRef", void 0);
|
|
127
|
+
__decorate([
|
|
128
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
129
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
130
|
+
__metadata("design:type", String)
|
|
131
|
+
], Inventory.prototype, "refOrderId", void 0);
|
|
132
|
+
__decorate([
|
|
133
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
134
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
135
|
+
__metadata("design:type", String)
|
|
136
|
+
], Inventory.prototype, "orderProductId", void 0);
|
|
137
|
+
__decorate([
|
|
138
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
139
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
140
|
+
__metadata("design:type", String)
|
|
141
|
+
], Inventory.prototype, "orderInventoryId", void 0);
|
|
142
|
+
__decorate([
|
|
143
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
144
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
145
|
+
__metadata("design:type", String)
|
|
146
|
+
], Inventory.prototype, "orderVasId", void 0);
|
|
147
|
+
__decorate([
|
|
148
|
+
(0, typeorm_1.ManyToOne)(type => pallet_1.Pallet, { nullable: true }),
|
|
149
|
+
(0, type_graphql_1.Field)(type => pallet_1.Pallet, { nullable: true }),
|
|
150
|
+
__metadata("design:type", pallet_1.Pallet)
|
|
151
|
+
], Inventory.prototype, "reusablePallet", void 0);
|
|
152
|
+
__decorate([
|
|
153
|
+
(0, typeorm_1.ManyToOne)(type => product_base_1.Product, { nullable: true }),
|
|
154
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
155
|
+
__metadata("design:type", typeof (_c = typeof product_base_1.Product !== "undefined" && product_base_1.Product) === "function" ? _c : Object)
|
|
156
|
+
], Inventory.prototype, "product", void 0);
|
|
157
|
+
__decorate([
|
|
158
|
+
(0, typeorm_1.ManyToOne)(type => product_base_1.ProductDetail, { nullable: true }),
|
|
159
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
160
|
+
__metadata("design:type", typeof (_d = typeof product_base_1.ProductDetail !== "undefined" && product_base_1.ProductDetail) === "function" ? _d : Object)
|
|
161
|
+
], Inventory.prototype, "productDetail", void 0);
|
|
162
|
+
__decorate([
|
|
163
|
+
(0, typeorm_1.ManyToOne)(type => warehouse_1.Warehouse, { nullable: true }),
|
|
164
|
+
(0, type_graphql_1.Field)(type => warehouse_1.Warehouse, { nullable: true }),
|
|
165
|
+
__metadata("design:type", warehouse_1.Warehouse)
|
|
166
|
+
], Inventory.prototype, "warehouse", void 0);
|
|
167
|
+
__decorate([
|
|
168
|
+
(0, typeorm_1.ManyToOne)(type => location_1.Location),
|
|
169
|
+
(0, type_graphql_1.Field)(type => location_1.Location, { nullable: true }),
|
|
170
|
+
__metadata("design:type", location_1.Location)
|
|
171
|
+
], Inventory.prototype, "location", void 0);
|
|
172
|
+
__decorate([
|
|
173
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
174
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
175
|
+
__metadata("design:type", String)
|
|
176
|
+
], Inventory.prototype, "zone", void 0);
|
|
177
|
+
__decorate([
|
|
178
|
+
(0, typeorm_1.Column)('int', { nullable: true }),
|
|
179
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
180
|
+
__metadata("design:type", Number)
|
|
181
|
+
], Inventory.prototype, "manufactureYear", void 0);
|
|
182
|
+
__decorate([
|
|
183
|
+
(0, typeorm_1.Column)('date', { nullable: true }),
|
|
184
|
+
(0, type_graphql_1.Field)(type => shell_1.ScalarDate, { nullable: true }),
|
|
185
|
+
__metadata("design:type", Date)
|
|
186
|
+
], Inventory.prototype, "manufactureDate", void 0);
|
|
187
|
+
__decorate([
|
|
188
|
+
(0, typeorm_1.Column)('float', { nullable: true }),
|
|
189
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
190
|
+
__metadata("design:type", Number)
|
|
191
|
+
], Inventory.prototype, "costPrice", void 0);
|
|
192
|
+
__decorate([
|
|
193
|
+
(0, typeorm_1.Column)('float', { nullable: true }),
|
|
194
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
195
|
+
__metadata("design:type", Number)
|
|
196
|
+
], Inventory.prototype, "sellPrice", void 0);
|
|
197
|
+
__decorate([
|
|
198
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
199
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
200
|
+
__metadata("design:type", String)
|
|
201
|
+
], Inventory.prototype, "packingType", void 0);
|
|
202
|
+
__decorate([
|
|
203
|
+
(0, typeorm_1.Column)('float', { nullable: true, default: 1 }),
|
|
204
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
205
|
+
__metadata("design:type", Number)
|
|
206
|
+
], Inventory.prototype, "packingSize", void 0);
|
|
207
|
+
__decorate([
|
|
208
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
209
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
210
|
+
__metadata("design:type", String)
|
|
211
|
+
], Inventory.prototype, "unit", void 0);
|
|
212
|
+
__decorate([
|
|
213
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
214
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
215
|
+
__metadata("design:type", String)
|
|
216
|
+
], Inventory.prototype, "uom", void 0);
|
|
217
|
+
__decorate([
|
|
218
|
+
(0, typeorm_1.Column)({
|
|
219
|
+
nullable: true,
|
|
220
|
+
type: 'decimal',
|
|
221
|
+
scale: 3,
|
|
222
|
+
transformer: {
|
|
223
|
+
to: (value) => value,
|
|
224
|
+
from: (value) => {
|
|
225
|
+
if (value === null || value === undefined)
|
|
226
|
+
return null;
|
|
227
|
+
const parsed = parseFloat(value);
|
|
228
|
+
return isNaN(parsed) ? null : parsed;
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
}),
|
|
232
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.Float, { nullable: true }),
|
|
233
|
+
__metadata("design:type", Number)
|
|
234
|
+
], Inventory.prototype, "uomValue", void 0);
|
|
235
|
+
__decorate([
|
|
236
|
+
(0, typeorm_1.Column)({
|
|
237
|
+
nullable: true,
|
|
238
|
+
type: 'decimal',
|
|
239
|
+
scale: 3,
|
|
240
|
+
transformer: {
|
|
241
|
+
to: (value) => value,
|
|
242
|
+
from: (value) => {
|
|
243
|
+
if (value === null || value === undefined)
|
|
244
|
+
return null;
|
|
245
|
+
const parsed = parseFloat(value);
|
|
246
|
+
return isNaN(parsed) ? null : parsed;
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
}),
|
|
250
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.Float, { nullable: true }),
|
|
251
|
+
__metadata("design:type", Number)
|
|
252
|
+
], Inventory.prototype, "lockedUomValue", void 0);
|
|
253
|
+
__decorate([
|
|
254
|
+
(0, typeorm_1.Column)({
|
|
255
|
+
nullable: true,
|
|
256
|
+
type: 'decimal',
|
|
257
|
+
scale: 3,
|
|
258
|
+
transformer: {
|
|
259
|
+
to: (value) => value,
|
|
260
|
+
from: (value) => {
|
|
261
|
+
if (value === null || value === undefined)
|
|
262
|
+
return null;
|
|
263
|
+
const parsed = parseFloat(value);
|
|
264
|
+
return isNaN(parsed) ? null : parsed;
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
}),
|
|
268
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.Float, { nullable: true }),
|
|
269
|
+
__metadata("design:type", Number)
|
|
270
|
+
], Inventory.prototype, "lockedQty", void 0);
|
|
271
|
+
__decorate([
|
|
272
|
+
(0, typeorm_1.Column)('float', { nullable: true }),
|
|
273
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.Float, { nullable: true }),
|
|
274
|
+
__metadata("design:type", Number)
|
|
275
|
+
], Inventory.prototype, "unitCost", void 0);
|
|
276
|
+
__decorate([
|
|
277
|
+
(0, typeorm_1.Column)({
|
|
278
|
+
nullable: true,
|
|
279
|
+
type: 'decimal',
|
|
280
|
+
scale: 3,
|
|
281
|
+
transformer: {
|
|
282
|
+
to: (value) => value,
|
|
283
|
+
from: (value) => {
|
|
284
|
+
if (value === null || value === undefined)
|
|
285
|
+
return null;
|
|
286
|
+
const parsed = parseFloat(value);
|
|
287
|
+
return isNaN(parsed) ? null : parsed;
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
}),
|
|
291
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.Float, { nullable: true }),
|
|
292
|
+
__metadata("design:type", Number)
|
|
293
|
+
], Inventory.prototype, "qty", void 0);
|
|
294
|
+
__decorate([
|
|
295
|
+
(0, typeorm_1.Column)({
|
|
296
|
+
default: 0,
|
|
297
|
+
nullable: true,
|
|
298
|
+
type: 'decimal',
|
|
299
|
+
scale: 3,
|
|
300
|
+
transformer: {
|
|
301
|
+
to: (value) => value,
|
|
302
|
+
from: (value) => {
|
|
303
|
+
if (value === null || value === undefined)
|
|
304
|
+
return null;
|
|
305
|
+
const parsed = parseFloat(value);
|
|
306
|
+
return isNaN(parsed) ? null : parsed;
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
}),
|
|
310
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.Float, { nullable: true }),
|
|
311
|
+
__metadata("design:type", Number)
|
|
312
|
+
], Inventory.prototype, "transferQty", void 0);
|
|
313
|
+
__decorate([
|
|
314
|
+
(0, typeorm_1.Column)({
|
|
315
|
+
default: 0,
|
|
316
|
+
nullable: true,
|
|
317
|
+
type: 'decimal',
|
|
318
|
+
scale: 3,
|
|
319
|
+
transformer: {
|
|
320
|
+
to: (value) => value,
|
|
321
|
+
from: (value) => {
|
|
322
|
+
if (value === null || value === undefined)
|
|
323
|
+
return null;
|
|
324
|
+
const parsed = parseFloat(value);
|
|
325
|
+
return isNaN(parsed) ? null : parsed;
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
}),
|
|
329
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.Float, { nullable: true }),
|
|
330
|
+
__metadata("design:type", Number)
|
|
331
|
+
], Inventory.prototype, "transferUomValue", void 0);
|
|
332
|
+
__decorate([
|
|
333
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.Float, { nullable: true }),
|
|
334
|
+
__metadata("design:type", Number)
|
|
335
|
+
], Inventory.prototype, "nonLoadedQty", void 0);
|
|
336
|
+
__decorate([
|
|
337
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.Float, { nullable: true }),
|
|
338
|
+
__metadata("design:type", Number)
|
|
339
|
+
], Inventory.prototype, "nonLoadedUomValue", void 0);
|
|
340
|
+
__decorate([
|
|
341
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.Float, { nullable: true }),
|
|
342
|
+
__metadata("design:type", Number)
|
|
343
|
+
], Inventory.prototype, "remainUomValue", void 0);
|
|
344
|
+
__decorate([
|
|
345
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.Float, { nullable: true }),
|
|
346
|
+
__metadata("design:type", Number)
|
|
347
|
+
], Inventory.prototype, "putawayQty", void 0);
|
|
348
|
+
__decorate([
|
|
349
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.Float, { nullable: true }),
|
|
350
|
+
__metadata("design:type", Number)
|
|
351
|
+
], Inventory.prototype, "availableQty", void 0);
|
|
352
|
+
__decorate([
|
|
353
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.Float, { nullable: true }),
|
|
354
|
+
__metadata("design:type", Number)
|
|
355
|
+
], Inventory.prototype, "releaseQty", void 0);
|
|
356
|
+
__decorate([
|
|
357
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.Float, { nullable: true }),
|
|
358
|
+
__metadata("design:type", Number)
|
|
359
|
+
], Inventory.prototype, "quarantineQty", void 0);
|
|
360
|
+
__decorate([
|
|
361
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.Float, { nullable: true }),
|
|
362
|
+
__metadata("design:type", Number)
|
|
363
|
+
], Inventory.prototype, "reserveQty", void 0);
|
|
364
|
+
__decorate([
|
|
365
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.Float, { nullable: true }),
|
|
366
|
+
__metadata("design:type", Number)
|
|
367
|
+
], Inventory.prototype, "draftQty", void 0);
|
|
368
|
+
__decorate([
|
|
369
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.Float, { nullable: true }),
|
|
370
|
+
__metadata("design:type", Number)
|
|
371
|
+
], Inventory.prototype, "warehouseQty", void 0);
|
|
372
|
+
__decorate([
|
|
373
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.Float, { nullable: true }),
|
|
374
|
+
__metadata("design:type", Number)
|
|
375
|
+
], Inventory.prototype, "obsoleteQty", void 0);
|
|
376
|
+
__decorate([
|
|
377
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.Float, { nullable: true }),
|
|
378
|
+
__metadata("design:type", Number)
|
|
379
|
+
], Inventory.prototype, "minQty", void 0);
|
|
380
|
+
__decorate([
|
|
381
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.Float, { nullable: true }),
|
|
382
|
+
__metadata("design:type", Number)
|
|
383
|
+
], Inventory.prototype, "pickingShelfQty", void 0);
|
|
384
|
+
__decorate([
|
|
385
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.Float, { nullable: true }),
|
|
386
|
+
__metadata("design:type", Number)
|
|
387
|
+
], Inventory.prototype, "storageQty", void 0);
|
|
388
|
+
__decorate([
|
|
389
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.Float, { nullable: true }),
|
|
390
|
+
__metadata("design:type", Number)
|
|
391
|
+
], Inventory.prototype, "insufficientQty", void 0);
|
|
392
|
+
__decorate([
|
|
393
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.Float, { nullable: true }),
|
|
394
|
+
__metadata("design:type", Number)
|
|
395
|
+
], Inventory.prototype, "damageQty", void 0);
|
|
396
|
+
__decorate([
|
|
397
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
398
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
399
|
+
__metadata("design:type", String)
|
|
400
|
+
], Inventory.prototype, "adjustmentCode", void 0);
|
|
401
|
+
__decorate([
|
|
402
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
403
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
404
|
+
__metadata("design:type", String)
|
|
405
|
+
], Inventory.prototype, "adjustmentNote", void 0);
|
|
406
|
+
__decorate([
|
|
407
|
+
(0, typeorm_1.Column)({ default: 0 }),
|
|
408
|
+
(0, type_graphql_1.Field)(),
|
|
409
|
+
__metadata("design:type", Number)
|
|
410
|
+
], Inventory.prototype, "lastSeq", void 0);
|
|
411
|
+
__decorate([
|
|
412
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
413
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
414
|
+
__metadata("design:type", String)
|
|
415
|
+
], Inventory.prototype, "description", void 0);
|
|
416
|
+
__decorate([
|
|
417
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
418
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
419
|
+
__metadata("design:type", String)
|
|
420
|
+
], Inventory.prototype, "status", void 0);
|
|
421
|
+
__decorate([
|
|
422
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
423
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
424
|
+
__metadata("design:type", String)
|
|
425
|
+
], Inventory.prototype, "otherRef", void 0);
|
|
426
|
+
__decorate([
|
|
427
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
428
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
429
|
+
__metadata("design:type", String)
|
|
430
|
+
], Inventory.prototype, "remark", void 0);
|
|
431
|
+
__decorate([
|
|
432
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
433
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
434
|
+
__metadata("design:type", Boolean)
|
|
435
|
+
], Inventory.prototype, "lockInventory", void 0);
|
|
436
|
+
__decorate([
|
|
437
|
+
(0, typeorm_1.OneToMany)(type => inventory_change_1.InventoryChange, inventoryChanges => inventoryChanges.inventory),
|
|
438
|
+
(0, type_graphql_1.Field)(type => [inventory_change_1.InventoryChange], { nullable: true }),
|
|
439
|
+
__metadata("design:type", Array)
|
|
440
|
+
], Inventory.prototype, "inventoryChanges", void 0);
|
|
441
|
+
__decorate([
|
|
442
|
+
(0, typeorm_1.OneToMany)(type => inventory_item_1.InventoryItem, inventoryItems => inventoryItems.inventory),
|
|
443
|
+
(0, type_graphql_1.Field)(type => [inventory_item_1.InventoryItem], { nullable: true }),
|
|
444
|
+
__metadata("design:type", Array)
|
|
445
|
+
], Inventory.prototype, "inventoryItems", void 0);
|
|
446
|
+
__decorate([
|
|
447
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
448
|
+
__metadata("design:type", String)
|
|
449
|
+
], Inventory.prototype, "serialNumbers", void 0);
|
|
450
|
+
__decorate([
|
|
451
|
+
(0, typeorm_1.Column)('date', { nullable: true }),
|
|
452
|
+
(0, type_graphql_1.Field)(type => shell_1.ScalarDate, { nullable: true }),
|
|
453
|
+
__metadata("design:type", Date)
|
|
454
|
+
], Inventory.prototype, "expirationDate", void 0);
|
|
455
|
+
__decorate([
|
|
456
|
+
(0, typeorm_1.Column)({ default: false }),
|
|
457
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
458
|
+
__metadata("design:type", Boolean)
|
|
459
|
+
], Inventory.prototype, "obsolete", void 0);
|
|
460
|
+
__decorate([
|
|
461
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
462
|
+
__metadata("design:type", String)
|
|
463
|
+
], Inventory.prototype, "expiry", void 0);
|
|
464
|
+
__decorate([
|
|
465
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
466
|
+
__metadata("design:type", String)
|
|
467
|
+
], Inventory.prototype, "productId", void 0);
|
|
468
|
+
__decorate([
|
|
469
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
470
|
+
__metadata("design:type", String)
|
|
471
|
+
], Inventory.prototype, "productDetailId", void 0);
|
|
472
|
+
__decorate([
|
|
473
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
474
|
+
__metadata("design:type", String)
|
|
475
|
+
], Inventory.prototype, "productName", void 0);
|
|
476
|
+
__decorate([
|
|
477
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
478
|
+
__metadata("design:type", String)
|
|
479
|
+
], Inventory.prototype, "productSKU", void 0);
|
|
480
|
+
__decorate([
|
|
481
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
482
|
+
__metadata("design:type", String)
|
|
483
|
+
], Inventory.prototype, "productBrand", void 0);
|
|
484
|
+
__decorate([
|
|
485
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
486
|
+
__metadata("design:type", Boolean)
|
|
487
|
+
], Inventory.prototype, "isInventoryDecimal", void 0);
|
|
488
|
+
__decorate([
|
|
489
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.Float, { nullable: true }),
|
|
490
|
+
__metadata("design:type", Number)
|
|
491
|
+
], Inventory.prototype, "averageUnitCost", void 0);
|
|
492
|
+
__decorate([
|
|
493
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.Float, { nullable: true }),
|
|
494
|
+
__metadata("design:type", Number)
|
|
495
|
+
], Inventory.prototype, "remainQty", void 0);
|
|
496
|
+
__decorate([
|
|
497
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
498
|
+
__metadata("design:type", String)
|
|
499
|
+
], Inventory.prototype, "initialInboundAt", void 0);
|
|
500
|
+
__decorate([
|
|
501
|
+
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, {
|
|
502
|
+
nullable: true
|
|
503
|
+
}),
|
|
504
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
505
|
+
__metadata("design:type", typeof (_e = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _e : Object)
|
|
506
|
+
], Inventory.prototype, "creator", void 0);
|
|
507
|
+
__decorate([
|
|
508
|
+
(0, typeorm_1.RelationId)((inventory) => inventory.creator),
|
|
509
|
+
__metadata("design:type", String)
|
|
510
|
+
], Inventory.prototype, "creatorId", void 0);
|
|
511
|
+
__decorate([
|
|
512
|
+
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, {
|
|
513
|
+
nullable: true
|
|
514
|
+
}),
|
|
515
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
516
|
+
__metadata("design:type", typeof (_f = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _f : Object)
|
|
517
|
+
], Inventory.prototype, "updater", void 0);
|
|
518
|
+
__decorate([
|
|
519
|
+
(0, typeorm_1.RelationId)((inventory) => inventory.updater),
|
|
520
|
+
__metadata("design:type", String)
|
|
521
|
+
], Inventory.prototype, "updaterId", void 0);
|
|
522
|
+
__decorate([
|
|
523
|
+
(0, typeorm_1.CreateDateColumn)(),
|
|
524
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
525
|
+
__metadata("design:type", Date)
|
|
526
|
+
], Inventory.prototype, "createdAt", void 0);
|
|
527
|
+
__decorate([
|
|
528
|
+
(0, typeorm_1.UpdateDateColumn)(),
|
|
529
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
530
|
+
__metadata("design:type", Date)
|
|
531
|
+
], Inventory.prototype, "updatedAt", void 0);
|
|
532
|
+
__decorate([
|
|
533
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
534
|
+
__metadata("design:type", String)
|
|
535
|
+
], Inventory.prototype, "remainUomValueWithUom", void 0);
|
|
536
|
+
__decorate([
|
|
537
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
538
|
+
__metadata("design:type", Number)
|
|
539
|
+
], Inventory.prototype, "changeCount", void 0);
|
|
540
|
+
__decorate([
|
|
541
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
542
|
+
__metadata("design:type", String)
|
|
543
|
+
], Inventory.prototype, "binLocation", void 0);
|
|
544
|
+
__decorate([
|
|
545
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
546
|
+
__metadata("design:type", String)
|
|
547
|
+
], Inventory.prototype, "orderNo", void 0);
|
|
548
|
+
__decorate([
|
|
549
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
550
|
+
__metadata("design:type", Number)
|
|
551
|
+
], Inventory.prototype, "inventoryItemCount", void 0);
|
|
552
|
+
__decorate([
|
|
553
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
554
|
+
__metadata("design:type", String)
|
|
555
|
+
], Inventory.prototype, "condition", void 0);
|
|
556
|
+
__decorate([
|
|
557
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
558
|
+
__metadata("design:type", typeof (_g = typeof shell_1.Domain !== "undefined" && shell_1.Domain) === "function" ? _g : Object)
|
|
559
|
+
], Inventory.prototype, "partnerDomain", void 0);
|
|
560
|
+
Inventory = Inventory_1 = __decorate([
|
|
561
|
+
(0, typeorm_1.Entity)(),
|
|
562
|
+
(0, typeorm_1.Index)('ix_inventory_0', (inventory) => [inventory.domain, inventory.palletId], {
|
|
563
|
+
unique: true
|
|
564
|
+
}),
|
|
565
|
+
(0, type_graphql_1.ObjectType)(),
|
|
566
|
+
__metadata("design:paramtypes", [Object])
|
|
567
|
+
], Inventory);
|
|
568
|
+
exports.Inventory = Inventory;
|
|
569
|
+
//# sourceMappingURL=inventory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inventory.js","sourceRoot":"","sources":["../../../server/service/inventory/inventory.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+CAAgE;AAChE,qCAUgB;AAEhB,yDAAgD;AAChD,uDAAmD;AACnD,+DAAqE;AACrE,iDAA0D;AAE1D,2EAAsE;AACtE,qEAAgE;AAChE,mDAA+C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ports.resolvers = exports.entities = void 0;
|
|
4
|
+
const inventory_change_1 = require("./inventory-change");
|
|
5
|
+
const inventory_change_mutation_1 = require("./inventory-change-mutation");
|
|
6
|
+
const inventory_change_query_1 = require("./inventory-change-query");
|
|
7
|
+
exports.entities = [inventory_change_1.InventoryChange];
|
|
8
|
+
exports.resolvers = [inventory_change_query_1.InventoryChangeQuery, inventory_change_mutation_1.InventoryChangeMutation];
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/inventory-change/index.ts"],"names":[],"mappings":";;;AAAA,yDAAoD;AACpD,2EAAqE;AACrE,qEAA+D;AAElD,QAAA,QAAQ,GAAG,CAAC,kCAAe,CAAC,CAAA;AAC5B,QAAA,SAAS,GAAG,CAAC,6CAAoB,EAAE,mDAAuB,CAAC,CAAA"}
|