@things-factory/warehouse-base 8.0.64 → 8.0.68
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/service/inventory/inventory.js +1 -0
- package/dist-server/service/inventory/inventory.js.map +1 -1
- package/dist-server/service/location/location.js +0 -1
- package/dist-server/service/location/location.js.map +1 -1
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -4
|
@@ -482,6 +482,7 @@ exports.Inventory = Inventory = tslib_1.__decorate([
|
|
|
482
482
|
(0, typeorm_1.Entity)(),
|
|
483
483
|
(0, typeorm_1.Index)('ix_inventory_0', (inventory) => [inventory.domain, inventory.palletId], { unique: true }),
|
|
484
484
|
(0, typeorm_1.Index)('inventories_product_id_and_status', (inventory) => [inventory.product, inventory.status]),
|
|
485
|
+
(0, typeorm_1.Index)('inventories_product_id_and_location', (inventory) => [inventory.domain, inventory.location]),
|
|
485
486
|
(0, type_graphql_1.ObjectType)(),
|
|
486
487
|
tslib_1.__metadata("design:paramtypes", [Object])
|
|
487
488
|
], Inventory);
|
|
@@ -1 +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,iDAA4E;AAE5E,2EAAsE;AACtE,qEAAgE;AAChE,mDAA+C;AAC/C,6CAAyC;AACzC,sDAAkD;AAM3C,IAAM,SAAS,GAAf,MAAM,SAAS;IAiVpB,YAAY,GAAI;QACd,IAAI,GAAG,EAAE,CAAC;YACR,IAAI,CAAC,EAAE,GAAG,GAAG,CAAC,YAAY,CAAA;YAC1B,IAAI,CAAC,QAAQ,GAAG;gBACd,EAAE,EAAE,GAAG,CAAC,WAAW;gBACnB,IAAI,EAAE,GAAG,CAAC,aAAa;gBACvB,WAAW,EAAE,GAAG,CAAC,oBAAoB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DACE;AAI5B;IAFC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;IAC1C,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yCACX;AAIf;IAFC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAChD,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCAC3B,SAAS;kDAAA;AAG3B;IADC,IAAA,oBAAU,EAAC,CAAC,SAAoB,EAAE,EAAE,CAAC,SAAS,CAAC,eAAe,CAAC;;oDACtC;oBA/Uf,SAAS;IAJrB,IAAA,gBAAM,GAAE;IACR,IAAA,eAAK,EAAC,gBAAgB,EAAE,CAAC,SAAoB,EAAE,EAAE,CAAC,CAAC,SAAS,CAAC,MAAM,EAAE,SAAS,CAAC,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IAC3G,IAAA,eAAK,EAAC,mCAAmC,EAAE,CAAC,SAAoB,EAAE,EAAE,CAAC,CAAC,SAAS,CAAC,OAAO,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC;IAC3G,IAAA,yBAAU,GAAE;;GACA,SAAS,CAoYrB","sourcesContent":["import { Field, Float, ID, Int, ObjectType } from 'type-graphql'\nimport {\n Column,\n CreateDateColumn,\n Entity,\n Index,\n ManyToOne,\n OneToMany,\n PrimaryGeneratedColumn,\n RelationId,\n UpdateDateColumn\n} from 'typeorm'\n\nimport { User } from '@things-factory/auth-base'\nimport { Bizplace } from '@things-factory/biz-base'\nimport { Product, ProductDetail } from '@things-factory/product-base'\nimport { Domain, ScalarDate, roundTransformer } from '@things-factory/shell'\n\nimport { InventoryChange } from '../inventory-change/inventory-change'\nimport { InventoryItem } from '../inventory-item/inventory-item'\nimport { Location } from '../location/location'\nimport { Pallet } from '../pallet/pallet'\nimport { Warehouse } from '../warehouse/warehouse'\n\n@Entity()\n@Index('ix_inventory_0', (inventory: Inventory) => [inventory.domain, inventory.palletId], { unique: true })\n@Index('inventories_product_id_and_status', (inventory: Inventory) => [inventory.product, inventory.status])\n@ObjectType()\nexport class Inventory {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID)\n readonly id: string\n\n @ManyToOne(type => Domain)\n @Field(type => Domain)\n domain: Domain\n\n @RelationId((inventory: Inventory) => inventory.domain)\n domainId: string\n\n @ManyToOne(type => Bizplace, { nullable: true })\n @Field(type => Bizplace, { nullable: true })\n bizplace: Bizplace\n\n @ManyToOne(type => Inventory)\n @Field(type => Inventory)\n refInventory: Inventory\n\n @Column()\n @Field()\n name: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n palletId: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n cartonId: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n batchId: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n batchIdRef: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n refOrderId: string\n\n /**\n * Expected: Putting ManyToOne relation with OrderProduct to find out unloaded inventories within unloading process\n * Because if there's inventory which has same batch id with others but different product id\n * then can't find out exact same inventory by batch id as a condition to find\n *\n * Problem: Because of circular dependency problem.\n * OrderProduct entity comes from sales-base module and the module is looking for warehouse-base module\n *\n * Solution: Putting plain orderProductId field instead of ManyToOne relation for this release (2.2.0-beta)\n */\n @Column({ nullable: true })\n @Field({ nullable: true })\n orderProductId: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n orderInventoryId: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n orderVasId: string\n\n @ManyToOne(type => Pallet, { nullable: true })\n @Field(type => Pallet, { nullable: true })\n reusablePallet: Pallet\n\n @ManyToOne(type => Product, { nullable: true })\n @Field({ nullable: true })\n product: Product\n\n /**\n * To be updated to remove nullable. once all process that links to inventory has been updated to use product detail instead of product\n */\n @ManyToOne(type => ProductDetail, { nullable: true })\n @Field({ nullable: true })\n productDetail: ProductDetail\n\n @ManyToOne(type => Warehouse, { nullable: true })\n @Field(type => Warehouse, { nullable: true })\n warehouse: Warehouse\n\n @ManyToOne(type => Location)\n @Field(type => Location, { nullable: true })\n location: Location\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n zone: string\n\n @Column('int', { nullable: true })\n @Field({ nullable: true })\n manufactureYear: number\n\n @Column('date', { nullable: true })\n @Field(type => ScalarDate, { nullable: true })\n manufactureDate: Date\n\n @Column('float', { nullable: true, transformer: roundTransformer })\n @Field({ nullable: true })\n costPrice: number\n\n @Column('float', { nullable: true, transformer: roundTransformer })\n @Field({ nullable: true })\n sellPrice: number\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n packingType: string\n\n @Column('float', { nullable: true, default: 1, transformer: roundTransformer })\n @Field({ nullable: true })\n packingSize: number\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n unit: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n uom: string\n\n @Column('float', { nullable: true, transformer: roundTransformer })\n @Field({ nullable: true })\n uomValue: number\n\n @Column('float', { nullable: true, transformer: roundTransformer })\n @Field({ nullable: true })\n lockedUomValue: number\n\n @Column('float', { transformer: roundTransformer })\n @Field({ nullable: true })\n qty: number\n\n @Column('float', { nullable: true, transformer: roundTransformer })\n @Field({ nullable: true })\n lockedQty: number\n\n @Column('float', { nullable: true, transformer: roundTransformer })\n @Field({ nullable: true })\n unitCost: number\n\n @Column({ default: 0 })\n @Field()\n lastSeq: number\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n description: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n status: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n otherRef: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n remark: string\n\n @OneToMany(type => InventoryChange, inventoryChanges => inventoryChanges.inventory)\n @Field(type => [InventoryChange], { nullable: true })\n inventoryChanges: InventoryChange[]\n\n @OneToMany(type => InventoryItem, inventoryItems => inventoryItems.inventory)\n @Field(type => [InventoryItem], { nullable: true })\n inventoryItems: InventoryItem[]\n\n @Field({ nullable: true })\n serialNumbers?: string\n\n @Column('date', { nullable: true })\n @Field(type => ScalarDate, { nullable: true })\n expirationDate: Date\n\n @Field({ nullable: true })\n productId: string\n\n @Field({ nullable: true })\n productName: string\n\n @Field({ nullable: true })\n productSKU: string\n\n @Field({ nullable: true })\n productType: string\n\n @Field({ nullable: true })\n primaryValue: string\n\n @Field({ nullable: true })\n primaryUnit: string\n\n @Field({ nullable: true })\n auxUnit1: string\n\n @Field({ nullable: true })\n productBrand: string\n\n @Column({ nullable: true, default: '' })\n @Field({ nullable: true })\n productColor?: string\n\n @Column({ nullable: true, default: '' })\n @Field({ nullable: true })\n productQuality?: string\n\n // 작업 구분\n @Column({ nullable: true, default: '' })\n @Field({ nullable: true })\n workCategory?: string\n\n // 제품 상태 (불량/반품)\n @Column({ nullable: true, default: '' })\n @Field({ nullable: true })\n productStatus?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n auxInfo1?: string\n\n // 자호\n @Column({ nullable: true })\n @Field({ nullable: true })\n auxInfo2?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n auxInfo3?: string\n\n @Field(type => Float, { nullable: true })\n averageUnitCost: number\n\n @Field(type => Float, { nullable: true })\n remainQty: number\n\n @Field(type => Int, { nullable: true })\n nonLoadedQty: number\n\n @Field(type => Float, { nullable: true })\n nonLoadedUomValue: number\n\n @Field({ nullable: true })\n initialInboundAt: string\n\n @ManyToOne(type => User, {\n nullable: true\n })\n @Field({ nullable: true })\n creator: User\n\n @RelationId((inventory: Inventory) => inventory.creator)\n creatorId: string\n\n @ManyToOne(type => User, {\n nullable: true\n })\n @Field({ nullable: true })\n updater: User\n\n @RelationId((inventory: Inventory) => inventory.updater)\n updaterId: string\n\n @CreateDateColumn()\n @Field({ nullable: true })\n createdAt: Date\n\n @UpdateDateColumn()\n @Field({ nullable: true })\n updatedAt: Date\n\n @Field({ nullable: true })\n remainUomValueWithUom?: string\n\n @Field({ nullable: true })\n remainUomValue?: number\n\n @Field({ nullable: true })\n changeCount?: number\n\n @Field({ nullable: true })\n binLocation?: string\n\n @Field({ nullable: true })\n orderNo?: string\n\n @Field({ nullable: true })\n inventoryItemCount: number\n\n @Field({ nullable: true })\n availableQty: number\n\n @Field({ nullable: true })\n releaseQty: number\n\n @Field({ nullable: true })\n quarantineQty: number\n\n @Field({ nullable: true })\n reserveQty: number\n\n @Field({ nullable: true })\n warehouseQty: number\n\n @Field({ nullable: true })\n width: number\n\n @Field({ nullable: true })\n height: number\n\n @Field({ nullable: true })\n depth: number\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n lot?: string\n\n @Column({ nullable: true, comment: '기계 선별 여부', default: false })\n @Field({ nullable: true })\n isMachineFiltering?: boolean\n\n @Column({ nullable: true, comment: '원산지' })\n @Field({ nullable: true })\n origin?: string\n\n @ManyToOne(type => Inventory, { nullable: true })\n @Field(type => Inventory, { nullable: true })\n originInventory?: Inventory\n\n @RelationId((inventory: Inventory) => inventory.originInventory)\n originInventoryId?: string\n\n constructor(obj?) {\n if (obj) {\n this.id = obj.inventory_id\n this.bizplace = {\n id: obj.bizplace_id,\n name: obj.bizplace_name,\n description: obj.bizplace_description\n } as any\n this.product = new Product(obj)\n this.location = new Location(obj)\n this.warehouse = new Warehouse(obj)\n this.name = obj.inventory_name\n this.palletId = obj.inventory_pallet_id\n this.batchId = obj.inventory_batch_id\n this.refOrderId = obj.inventory_ref_order_id\n this.orderProductId = obj.inventory_order_product_id\n this.zone = obj.inventory_zone\n this.costPrice = obj.inventory_cost_price\n this.sellPrice = obj.inventory_sell_price\n this.packingType = obj.inventory_packing_type\n this.unit = obj.inventory_unit\n this.uom = obj.inventory_uom\n this.uomValue = obj.inventory_uom_value\n this.lockedUomValue = obj.inventory_locked_uom_value\n this.qty = obj.inventory_qty\n this.lockedQty = obj.inventory_locked_qty\n this.lastSeq = obj.inventory_last_seq\n this.description = obj.inventory_description\n this.status = obj.inventory_status\n this.otherRef = obj.inventory_other_ref\n this.remark = obj.inventory_remark\n this.createdAt = obj.inventory_created_at\n this.updatedAt = obj.inventory_updated_at\n this.expirationDate = obj.inventory_expiration_date\n this.unitCost = obj.inventory_unit_cost\n this.manufactureYear = obj.inventory_manufacture_year\n this.manufactureDate = obj.inventory_manufacture_date\n this.batchIdRef = obj.inventory_batch_id_ref\n this.cartonId = obj.inventory_carton_id\n this.packingSize = obj.inventory_packing_size\n this.productColor = obj.inventory_product_color\n this.productQuality = obj.inventory_product_quality\n this.workCategory = obj.inventory_work_category\n this.productStatus = obj.inventory_product_status\n this.creatorId = obj.inventory_creator_id\n this.updaterId = obj.inventory_updater_id\n this.lot = obj.inventory_lot\n this.isMachineFiltering = obj.is_machine_filtering\n this.origin = obj.origin\n }\n }\n}\n"]}
|
|
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,iDAA4E;AAE5E,2EAAsE;AACtE,qEAAgE;AAChE,mDAA+C;AAC/C,6CAAyC;AACzC,sDAAkD;AAO3C,IAAM,SAAS,GAAf,MAAM,SAAS;IAiVpB,YAAY,GAAI;QACd,IAAI,GAAG,EAAE,CAAC;YACR,IAAI,CAAC,EAAE,GAAG,GAAG,CAAC,YAAY,CAAA;YAC1B,IAAI,CAAC,QAAQ,GAAG;gBACd,EAAE,EAAE,GAAG,CAAC,WAAW;gBACnB,IAAI,EAAE,GAAG,CAAC,aAAa;gBACvB,WAAW,EAAE,GAAG,CAAC,oBAAoB;aAC/B,CAAA;YACR,IAAI,CAAC,OAAO,GAAG,IAAI,sBAAO,CAAC,GAAG,CAAC,CAAA;YAC/B,IAAI,CAAC,QAAQ,GAAG,IAAI,mBAAQ,CAA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QAAQ,EAAE,IAAI,EAAE,CAAC;;yCACX;AAIf;IAFC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAChD,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCAC3B,SAAS;kDAAA;AAG3B;IADC,IAAA,oBAAU,EAAC,CAAC,SAAoB,EAAE,EAAE,CAAC,SAAS,CAAC,eAAe,CAAC;;oDACtC;oBA/Uf,SAAS;IALrB,IAAA,gBAAM,GAAE;IACR,IAAA,eAAK,EAAC,gBAAgB,EAAE,CAAC,SAAoB,EAAE,EAAE,CAAC,CAAC,SAAS,CAAC,MAAM,EAAE,SAAS,CAAC,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IAC3G,IAAA,eAAK,EAAC,mCAAmC,EAAE,CAAC,SAAoB,EAAE,EAAE,CAAC,CAAC,SAAS,CAAC,OAAO,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC;IAC3G,IAAA,eAAK,EAAC,qCAAqC,EAAE,CAAC,SAAoB,EAAE,EAAE,CAAC,CAAC,SAAS,CAAC,MAAM,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAC;IAC9G,IAAA,yBAAU,GAAE;;GACA,SAAS,CAoYrB","sourcesContent":["import { Field, Float, ID, Int, ObjectType } from 'type-graphql'\nimport {\n Column,\n CreateDateColumn,\n Entity,\n Index,\n ManyToOne,\n OneToMany,\n PrimaryGeneratedColumn,\n RelationId,\n UpdateDateColumn\n} from 'typeorm'\n\nimport { User } from '@things-factory/auth-base'\nimport { Bizplace } from '@things-factory/biz-base'\nimport { Product, ProductDetail } from '@things-factory/product-base'\nimport { Domain, ScalarDate, roundTransformer } from '@things-factory/shell'\n\nimport { InventoryChange } from '../inventory-change/inventory-change'\nimport { InventoryItem } from '../inventory-item/inventory-item'\nimport { Location } from '../location/location'\nimport { Pallet } from '../pallet/pallet'\nimport { Warehouse } from '../warehouse/warehouse'\n\n@Entity()\n@Index('ix_inventory_0', (inventory: Inventory) => [inventory.domain, inventory.palletId], { unique: true })\n@Index('inventories_product_id_and_status', (inventory: Inventory) => [inventory.product, inventory.status])\n@Index('inventories_product_id_and_location', (inventory: Inventory) => [inventory.domain, inventory.location])\n@ObjectType()\nexport class Inventory {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID)\n readonly id: string\n\n @ManyToOne(type => Domain)\n @Field(type => Domain)\n domain: Domain\n\n @RelationId((inventory: Inventory) => inventory.domain)\n domainId: string\n\n @ManyToOne(type => Bizplace, { nullable: true })\n @Field(type => Bizplace, { nullable: true })\n bizplace: Bizplace\n\n @ManyToOne(type => Inventory)\n @Field(type => Inventory)\n refInventory: Inventory\n\n @Column()\n @Field()\n name: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n palletId: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n cartonId: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n batchId: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n batchIdRef: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n refOrderId: string\n\n /**\n * Expected: Putting ManyToOne relation with OrderProduct to find out unloaded inventories within unloading process\n * Because if there's inventory which has same batch id with others but different product id\n * then can't find out exact same inventory by batch id as a condition to find\n *\n * Problem: Because of circular dependency problem.\n * OrderProduct entity comes from sales-base module and the module is looking for warehouse-base module\n *\n * Solution: Putting plain orderProductId field instead of ManyToOne relation for this release (2.2.0-beta)\n */\n @Column({ nullable: true })\n @Field({ nullable: true })\n orderProductId: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n orderInventoryId: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n orderVasId: string\n\n @ManyToOne(type => Pallet, { nullable: true })\n @Field(type => Pallet, { nullable: true })\n reusablePallet: Pallet\n\n @ManyToOne(type => Product, { nullable: true })\n @Field({ nullable: true })\n product: Product\n\n /**\n * To be updated to remove nullable. once all process that links to inventory has been updated to use product detail instead of product\n */\n @ManyToOne(type => ProductDetail, { nullable: true })\n @Field({ nullable: true })\n productDetail: ProductDetail\n\n @ManyToOne(type => Warehouse, { nullable: true })\n @Field(type => Warehouse, { nullable: true })\n warehouse: Warehouse\n\n @ManyToOne(type => Location)\n @Field(type => Location, { nullable: true })\n location: Location\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n zone: string\n\n @Column('int', { nullable: true })\n @Field({ nullable: true })\n manufactureYear: number\n\n @Column('date', { nullable: true })\n @Field(type => ScalarDate, { nullable: true })\n manufactureDate: Date\n\n @Column('float', { nullable: true, transformer: roundTransformer })\n @Field({ nullable: true })\n costPrice: number\n\n @Column('float', { nullable: true, transformer: roundTransformer })\n @Field({ nullable: true })\n sellPrice: number\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n packingType: string\n\n @Column('float', { nullable: true, default: 1, transformer: roundTransformer })\n @Field({ nullable: true })\n packingSize: number\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n unit: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n uom: string\n\n @Column('float', { nullable: true, transformer: roundTransformer })\n @Field({ nullable: true })\n uomValue: number\n\n @Column('float', { nullable: true, transformer: roundTransformer })\n @Field({ nullable: true })\n lockedUomValue: number\n\n @Column('float', { transformer: roundTransformer })\n @Field({ nullable: true })\n qty: number\n\n @Column('float', { nullable: true, transformer: roundTransformer })\n @Field({ nullable: true })\n lockedQty: number\n\n @Column('float', { nullable: true, transformer: roundTransformer })\n @Field({ nullable: true })\n unitCost: number\n\n @Column({ default: 0 })\n @Field()\n lastSeq: number\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n description: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n status: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n otherRef: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n remark: string\n\n @OneToMany(type => InventoryChange, inventoryChanges => inventoryChanges.inventory)\n @Field(type => [InventoryChange], { nullable: true })\n inventoryChanges: InventoryChange[]\n\n @OneToMany(type => InventoryItem, inventoryItems => inventoryItems.inventory)\n @Field(type => [InventoryItem], { nullable: true })\n inventoryItems: InventoryItem[]\n\n @Field({ nullable: true })\n serialNumbers?: string\n\n @Column('date', { nullable: true })\n @Field(type => ScalarDate, { nullable: true })\n expirationDate: Date\n\n @Field({ nullable: true })\n productId: string\n\n @Field({ nullable: true })\n productName: string\n\n @Field({ nullable: true })\n productSKU: string\n\n @Field({ nullable: true })\n productType: string\n\n @Field({ nullable: true })\n primaryValue: string\n\n @Field({ nullable: true })\n primaryUnit: string\n\n @Field({ nullable: true })\n auxUnit1: string\n\n @Field({ nullable: true })\n productBrand: string\n\n @Column({ nullable: true, default: '' })\n @Field({ nullable: true })\n productColor?: string\n\n @Column({ nullable: true, default: '' })\n @Field({ nullable: true })\n productQuality?: string\n\n // 작업 구분\n @Column({ nullable: true, default: '' })\n @Field({ nullable: true })\n workCategory?: string\n\n // 제품 상태 (불량/반품)\n @Column({ nullable: true, default: '' })\n @Field({ nullable: true })\n productStatus?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n auxInfo1?: string\n\n // 자호\n @Column({ nullable: true })\n @Field({ nullable: true })\n auxInfo2?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n auxInfo3?: string\n\n @Field(type => Float, { nullable: true })\n averageUnitCost: number\n\n @Field(type => Float, { nullable: true })\n remainQty: number\n\n @Field(type => Int, { nullable: true })\n nonLoadedQty: number\n\n @Field(type => Float, { nullable: true })\n nonLoadedUomValue: number\n\n @Field({ nullable: true })\n initialInboundAt: string\n\n @ManyToOne(type => User, {\n nullable: true\n })\n @Field({ nullable: true })\n creator: User\n\n @RelationId((inventory: Inventory) => inventory.creator)\n creatorId: string\n\n @ManyToOne(type => User, {\n nullable: true\n })\n @Field({ nullable: true })\n updater: User\n\n @RelationId((inventory: Inventory) => inventory.updater)\n updaterId: string\n\n @CreateDateColumn()\n @Field({ nullable: true })\n createdAt: Date\n\n @UpdateDateColumn()\n @Field({ nullable: true })\n updatedAt: Date\n\n @Field({ nullable: true })\n remainUomValueWithUom?: string\n\n @Field({ nullable: true })\n remainUomValue?: number\n\n @Field({ nullable: true })\n changeCount?: number\n\n @Field({ nullable: true })\n binLocation?: string\n\n @Field({ nullable: true })\n orderNo?: string\n\n @Field({ nullable: true })\n inventoryItemCount: number\n\n @Field({ nullable: true })\n availableQty: number\n\n @Field({ nullable: true })\n releaseQty: number\n\n @Field({ nullable: true })\n quarantineQty: number\n\n @Field({ nullable: true })\n reserveQty: number\n\n @Field({ nullable: true })\n warehouseQty: number\n\n @Field({ nullable: true })\n width: number\n\n @Field({ nullable: true })\n height: number\n\n @Field({ nullable: true })\n depth: number\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n lot?: string\n\n @Column({ nullable: true, comment: '기계 선별 여부', default: false })\n @Field({ nullable: true })\n isMachineFiltering?: boolean\n\n @Column({ nullable: true, comment: '원산지' })\n @Field({ nullable: true })\n origin?: string\n\n @ManyToOne(type => Inventory, { nullable: true })\n @Field(type => Inventory, { nullable: true })\n originInventory?: Inventory\n\n @RelationId((inventory: Inventory) => inventory.originInventory)\n originInventoryId?: string\n\n constructor(obj?) {\n if (obj) {\n this.id = obj.inventory_id\n this.bizplace = {\n id: obj.bizplace_id,\n name: obj.bizplace_name,\n description: obj.bizplace_description\n } as any\n this.product = new Product(obj)\n this.location = new Location(obj)\n this.warehouse = new Warehouse(obj)\n this.name = obj.inventory_name\n this.palletId = obj.inventory_pallet_id\n this.batchId = obj.inventory_batch_id\n this.refOrderId = obj.inventory_ref_order_id\n this.orderProductId = obj.inventory_order_product_id\n this.zone = obj.inventory_zone\n this.costPrice = obj.inventory_cost_price\n this.sellPrice = obj.inventory_sell_price\n this.packingType = obj.inventory_packing_type\n this.unit = obj.inventory_unit\n this.uom = obj.inventory_uom\n this.uomValue = obj.inventory_uom_value\n this.lockedUomValue = obj.inventory_locked_uom_value\n this.qty = obj.inventory_qty\n this.lockedQty = obj.inventory_locked_qty\n this.lastSeq = obj.inventory_last_seq\n this.description = obj.inventory_description\n this.status = obj.inventory_status\n this.otherRef = obj.inventory_other_ref\n this.remark = obj.inventory_remark\n this.createdAt = obj.inventory_created_at\n this.updatedAt = obj.inventory_updated_at\n this.expirationDate = obj.inventory_expiration_date\n this.unitCost = obj.inventory_unit_cost\n this.manufactureYear = obj.inventory_manufacture_year\n this.manufactureDate = obj.inventory_manufacture_date\n this.batchIdRef = obj.inventory_batch_id_ref\n this.cartonId = obj.inventory_carton_id\n this.packingSize = obj.inventory_packing_size\n this.productColor = obj.inventory_product_color\n this.productQuality = obj.inventory_product_quality\n this.workCategory = obj.inventory_work_category\n this.productStatus = obj.inventory_product_status\n this.creatorId = obj.inventory_creator_id\n this.updaterId = obj.inventory_updater_id\n this.lot = obj.inventory_lot\n this.isMachineFiltering = obj.is_machine_filtering\n this.origin = obj.origin\n }\n }\n}\n"]}
|
|
@@ -128,7 +128,6 @@ tslib_1.__decorate([
|
|
|
128
128
|
exports.Location = Location = tslib_1.__decorate([
|
|
129
129
|
(0, typeorm_1.Entity)(),
|
|
130
130
|
(0, typeorm_1.Index)('ix_location_0', (location) => [location.domain, location.name], { unique: true }),
|
|
131
|
-
(0, typeorm_1.Index)('ix_location_1', (location) => [location.id], { unique: true }),
|
|
132
131
|
(0, typeorm_1.Index)('ix_location_2', (location) => [location.domain]),
|
|
133
132
|
(0, typeorm_1.Index)('ix_location_3', (location) => [location.domain, location.name, location.type]),
|
|
134
133
|
(0, type_graphql_1.ObjectType)(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"location.js","sourceRoot":"","sources":["../../../server/service/location/location.ts"],"names":[],"mappings":";;;;AAAA,+CAAoD;AACpD,qCASgB;AAEhB,yDAAgD;AAChD,iDAA8C;AAE9C,sDAAkD;
|
|
1
|
+
{"version":3,"file":"location.js","sourceRoot":"","sources":["../../../server/service/location/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index,\n ManyToOne,\n PrimaryGeneratedColumn,\n RelationId,\n UpdateDateColumn\n} from 'typeorm'\n\nimport { User } from '@things-factory/auth-base'\nimport { Domain } from '@things-factory/shell'\n\nimport { Warehouse } from '../warehouse/warehouse'\n\n@Entity()\n@Index('ix_location_0', (location: Location) => [location.domain, location.name], { unique: true })\n@Index('ix_location_2', (location: Location) => [location.domain])\n@Index('ix_location_3', (location: Location) => [location.domain, location.name, location.type])\n@ObjectType()\nexport class Location {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID)\n readonly id: string\n\n @ManyToOne(type => Domain)\n @Field(type => Domain)\n domain: Domain\n\n @RelationId((location: Location) => location.domain)\n domainId: string\n\n @ManyToOne(type => Warehouse, warehouse => warehouse.locations, {\n nullable: false\n })\n @Field(type => Warehouse, { nullable: true })\n warehouse: Warehouse\n\n @RelationId((location: Location) => location.warehouse)\n warehouseId: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n name: string\n\n @Column({\n nullable: true\n })\n @Field({ nullable: true })\n description: string\n\n @Column({\n nullable: true\n })\n @Field({ nullable: true })\n type: string\n\n @Column()\n @Field()\n zone: string\n\n @Column()\n @Field()\n row: string\n\n @Column()\n @Field()\n column: string\n\n @Column()\n @Field()\n shelf: string\n\n @Column({ type: 'text', comment: 'occupied, hold, empty' })\n @Field()\n status: string\n\n @ManyToOne(type => User, {\n nullable: true\n })\n @Field({ nullable: true })\n creator: User\n\n @RelationId((location: Location) => location.creator)\n creatorId: string\n\n @ManyToOne(type => User, {\n nullable: true\n })\n @Field({ nullable: true })\n updater: User\n\n @RelationId((location: Location) => location.updater)\n updaterId: string\n\n @CreateDateColumn()\n @Field({ nullable: true })\n createdAt: Date\n\n @UpdateDateColumn()\n @Field({ nullable: true })\n updatedAt: Date\n\n constructor(obj?) {\n if (obj) {\n this.id = obj.location_id\n this.name = obj.location_name\n this.description = obj.location_description\n this.type = obj.location_type\n this.zone = obj.location_zone\n this.row = obj.location_row\n this.column = obj.location_column\n this.shelf = obj.location_shelf\n this.status = obj.location_status\n this.updatedAt = obj.location_updated_at\n }\n }\n}\n"]}
|