@things-factory/product-base 6.2.138 → 6.2.142

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.
@@ -157,12 +157,12 @@ tslib_1.__decorate([
157
157
  tslib_1.__metadata("design:type", String)
158
158
  ], Product.prototype, "inboundUnit", void 0);
159
159
  tslib_1.__decorate([
160
- (0, typeorm_1.Column)('float', { nullable: true, default: 1 }),
160
+ (0, typeorm_1.Column)('float', { nullable: true, default: 1, transformer: shell_1.roundTransformer }),
161
161
  (0, type_graphql_1.Field)({ nullable: true }),
162
162
  tslib_1.__metadata("design:type", Number)
163
163
  ], Product.prototype, "convertWeight", void 0);
164
164
  tslib_1.__decorate([
165
- (0, typeorm_1.Column)('float', { nullable: true, default: 0 }),
165
+ (0, typeorm_1.Column)('float', { nullable: true, default: 0, transformer: shell_1.roundTransformer }),
166
166
  (0, type_graphql_1.Field)({ nullable: true }),
167
167
  tslib_1.__metadata("design:type", Number)
168
168
  ], Product.prototype, "boxInQty", void 0);
@@ -231,7 +231,7 @@ tslib_1.__decorate([
231
231
  tslib_1.__metadata("design:type", Array)
232
232
  ], Product.prototype, "childProducts", void 0);
233
233
  tslib_1.__decorate([
234
- (0, typeorm_1.Column)('float', { nullable: true }),
234
+ (0, typeorm_1.Column)('float', { nullable: true, transformer: shell_1.roundTransformer }),
235
235
  (0, type_graphql_1.Field)({ nullable: true }),
236
236
  tslib_1.__metadata("design:type", Number)
237
237
  ], Product.prototype, "bundleQty", void 0);
@@ -246,27 +246,27 @@ tslib_1.__decorate([
246
246
  tslib_1.__metadata("design:type", String)
247
247
  ], Product.prototype, "weightUnit", void 0);
248
248
  tslib_1.__decorate([
249
- (0, typeorm_1.Column)('float', { nullable: true }),
249
+ (0, typeorm_1.Column)('float', { nullable: true, transformer: shell_1.roundTransformer }),
250
250
  (0, type_graphql_1.Field)({ nullable: true }),
251
251
  tslib_1.__metadata("design:type", Number)
252
252
  ], Product.prototype, "weight", void 0);
253
253
  tslib_1.__decorate([
254
- (0, typeorm_1.Column)('float', { nullable: true }),
254
+ (0, typeorm_1.Column)('float', { nullable: true, transformer: shell_1.roundTransformer }),
255
255
  (0, type_graphql_1.Field)({ nullable: true }),
256
256
  tslib_1.__metadata("design:type", Number)
257
257
  ], Product.prototype, "grossWeight", void 0);
258
258
  tslib_1.__decorate([
259
- (0, typeorm_1.Column)('float', { nullable: true }),
259
+ (0, typeorm_1.Column)('float', { nullable: true, transformer: shell_1.roundTransformer }),
260
260
  (0, type_graphql_1.Field)({ nullable: true }),
261
261
  tslib_1.__metadata("design:type", Number)
262
262
  ], Product.prototype, "caseWeight", void 0);
263
263
  tslib_1.__decorate([
264
- (0, typeorm_1.Column)('float', { nullable: true }),
264
+ (0, typeorm_1.Column)('float', { nullable: true, transformer: shell_1.roundTransformer }),
265
265
  (0, type_graphql_1.Field)({ nullable: true }),
266
266
  tslib_1.__metadata("design:type", Number)
267
267
  ], Product.prototype, "caseGrossWeight", void 0);
268
268
  tslib_1.__decorate([
269
- (0, typeorm_1.Column)('float', { nullable: true }),
269
+ (0, typeorm_1.Column)('float', { nullable: true, transformer: shell_1.roundTransformer }),
270
270
  (0, type_graphql_1.Field)({ nullable: true }),
271
271
  tslib_1.__metadata("design:type", Number)
272
272
  ], Product.prototype, "density", void 0);
@@ -276,67 +276,67 @@ tslib_1.__decorate([
276
276
  tslib_1.__metadata("design:type", String)
277
277
  ], Product.prototype, "lengthUnit", void 0);
278
278
  tslib_1.__decorate([
279
- (0, typeorm_1.Column)('float', { nullable: true }),
279
+ (0, typeorm_1.Column)('float', { nullable: true, transformer: shell_1.roundTransformer }),
280
280
  (0, type_graphql_1.Field)({ nullable: true }),
281
281
  tslib_1.__metadata("design:type", Number)
282
282
  ], Product.prototype, "costPrice", void 0);
283
283
  tslib_1.__decorate([
284
- (0, typeorm_1.Column)('float', { nullable: true }),
284
+ (0, typeorm_1.Column)('float', { nullable: true, transformer: shell_1.roundTransformer }),
285
285
  (0, type_graphql_1.Field)({ nullable: true }),
286
286
  tslib_1.__metadata("design:type", Number)
287
287
  ], Product.prototype, "mrpPrice", void 0);
288
288
  tslib_1.__decorate([
289
- (0, typeorm_1.Column)('float', { nullable: true }),
289
+ (0, typeorm_1.Column)('float', { nullable: true, transformer: shell_1.roundTransformer }),
290
290
  (0, type_graphql_1.Field)({ nullable: true }),
291
291
  tslib_1.__metadata("design:type", Number)
292
292
  ], Product.prototype, "sellPrice", void 0);
293
293
  tslib_1.__decorate([
294
- (0, typeorm_1.Column)('float', { nullable: true }),
294
+ (0, typeorm_1.Column)('float', { nullable: true, transformer: shell_1.roundTransformer }),
295
295
  (0, type_graphql_1.Field)({ nullable: true }),
296
296
  tslib_1.__metadata("design:type", Number)
297
297
  ], Product.prototype, "afterTaxCostPrice", void 0);
298
298
  tslib_1.__decorate([
299
- (0, typeorm_1.Column)('float', { nullable: true }),
299
+ (0, typeorm_1.Column)('float', { nullable: true, transformer: shell_1.roundTransformer }),
300
300
  (0, type_graphql_1.Field)({ nullable: true }),
301
301
  tslib_1.__metadata("design:type", Number)
302
302
  ], Product.prototype, "afterTaxSalesPrice", void 0);
303
303
  tslib_1.__decorate([
304
- (0, typeorm_1.Column)('float', { nullable: true }),
304
+ (0, typeorm_1.Column)('float', { nullable: true, transformer: shell_1.roundTransformer }),
305
305
  (0, type_graphql_1.Field)({ nullable: true }),
306
306
  tslib_1.__metadata("design:type", Number)
307
307
  ], Product.prototype, "width", void 0);
308
308
  tslib_1.__decorate([
309
- (0, typeorm_1.Column)('float', { nullable: true }),
309
+ (0, typeorm_1.Column)('float', { nullable: true, transformer: shell_1.roundTransformer }),
310
310
  (0, type_graphql_1.Field)({ nullable: true }),
311
311
  tslib_1.__metadata("design:type", Number)
312
312
  ], Product.prototype, "depth", void 0);
313
313
  tslib_1.__decorate([
314
- (0, typeorm_1.Column)('float', { nullable: true }),
314
+ (0, typeorm_1.Column)('float', { nullable: true, transformer: shell_1.roundTransformer }),
315
315
  (0, type_graphql_1.Field)({ nullable: true }),
316
316
  tslib_1.__metadata("design:type", Number)
317
317
  ], Product.prototype, "height", void 0);
318
318
  tslib_1.__decorate([
319
- (0, typeorm_1.Column)('float', { nullable: true }),
319
+ (0, typeorm_1.Column)('float', { nullable: true, transformer: shell_1.roundTransformer }),
320
320
  (0, type_graphql_1.Field)({ nullable: true }),
321
321
  tslib_1.__metadata("design:type", Number)
322
322
  ], Product.prototype, "volume", void 0);
323
323
  tslib_1.__decorate([
324
- (0, typeorm_1.Column)('float', { nullable: true }),
324
+ (0, typeorm_1.Column)('float', { nullable: true, transformer: shell_1.roundTransformer }),
325
325
  (0, type_graphql_1.Field)({ nullable: true }),
326
326
  tslib_1.__metadata("design:type", Number)
327
327
  ], Product.prototype, "caseWidth", void 0);
328
328
  tslib_1.__decorate([
329
- (0, typeorm_1.Column)('float', { nullable: true }),
329
+ (0, typeorm_1.Column)('float', { nullable: true, transformer: shell_1.roundTransformer }),
330
330
  (0, type_graphql_1.Field)({ nullable: true }),
331
331
  tslib_1.__metadata("design:type", Number)
332
332
  ], Product.prototype, "caseDepth", void 0);
333
333
  tslib_1.__decorate([
334
- (0, typeorm_1.Column)('float', { nullable: true }),
334
+ (0, typeorm_1.Column)('float', { nullable: true, transformer: shell_1.roundTransformer }),
335
335
  (0, type_graphql_1.Field)({ nullable: true }),
336
336
  tslib_1.__metadata("design:type", Number)
337
337
  ], Product.prototype, "caseHeight", void 0);
338
338
  tslib_1.__decorate([
339
- (0, typeorm_1.Column)('float', { nullable: true }),
339
+ (0, typeorm_1.Column)('float', { nullable: true, transformer: shell_1.roundTransformer }),
340
340
  (0, type_graphql_1.Field)({ nullable: true }),
341
341
  tslib_1.__metadata("design:type", Number)
342
342
  ], Product.prototype, "caseVolume", void 0);
@@ -351,7 +351,7 @@ tslib_1.__decorate([
351
351
  tslib_1.__metadata("design:type", String)
352
352
  ], Product.prototype, "primaryUnit", void 0);
353
353
  tslib_1.__decorate([
354
- (0, typeorm_1.Column)('float', { nullable: true }),
354
+ (0, typeorm_1.Column)('float', { nullable: true, transformer: shell_1.roundTransformer }),
355
355
  (0, type_graphql_1.Field)({ nullable: true }),
356
356
  tslib_1.__metadata("design:type", Number)
357
357
  ], Product.prototype, "primaryValue", void 0);
@@ -413,7 +413,7 @@ tslib_1.__decorate([
413
413
  tslib_1.__metadata("design:type", Number)
414
414
  ], Product.prototype, "bufferQty", void 0);
415
415
  tslib_1.__decorate([
416
- (0, typeorm_1.Column)('float', { nullable: true }),
416
+ (0, typeorm_1.Column)('float', { nullable: true, transformer: shell_1.roundTransformer }),
417
417
  (0, type_graphql_1.Field)({ nullable: true }),
418
418
  tslib_1.__metadata("design:type", Number)
419
419
  ], Product.prototype, "minQty", void 0);
@@ -465,11 +465,7 @@ tslib_1.__decorate([
465
465
  tslib_1.__decorate([
466
466
  (0, typeorm_1.Column)({
467
467
  nullable: false,
468
- type: DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb'
469
- ? 'enum'
470
- : DATABASE_TYPE == 'oracle'
471
- ? 'varchar2'
472
- : 'smallint',
468
+ type: DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb' ? 'enum' : DATABASE_TYPE == 'oracle' ? 'varchar2' : 'smallint',
473
469
  enum: pickStrategy,
474
470
  default: pickStrategy.FIFO
475
471
  }),
@@ -1 +1 @@
1
- {"version":3,"file":"product.js","sourceRoot":"","sources":["../../../server/service/product/product.ts"],"names":[],"mappings":";;;;;;AAAA,+CAA2D;AAC3D,qCAA6I;AAE7I,yDAAgD;AAChD,uDAAmD;AACnD,6CAA4C;AAC5C,+DAAsD;AACtD,iDAA8C;AAE9C,qEAAgE;AAChE,4DAAuD;AAEvD,MAAM,SAAS,GAAG,YAAM,CAAC,GAAG,CAAC,WAAW,EAAE,EAAE,CAAC,CAAA;AAC7C,MAAM,aAAa,GAAG,SAAS,CAAC,IAAI,CAAA;AAEpC,IAAY,YAMX;AAND,WAAY,YAAY;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E,CAAC;;0CACxB;AAElB;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDACA;AAE1B;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wCACV;AAEhB;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CACT;AAraN,OAAO;IARnB,IAAA,gBAAM,GAAE;IACR,IAAA,eAAK,EACJ,cAAc,EACd,CAAC,OAAgB,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,OAAO,CAAC,QAAQ,EAAE,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,WAAW,EAAE,OAAO,CAAC,MAAM,CAAC,EAC3G,EAAE,MAAM,EAAE,IAAI,EAAE,CACjB;IACA,IAAA,eAAK,EAAC,cAAc,EAAE,CAAC,OAAgB,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;IAC/D,IAAA,yBAAU,GAAE;;GACA,OAAO,CA6enB;AA7eY,0BAAO","sourcesContent":["import { Field, Float, ID, ObjectType } from 'type-graphql'\nimport { Column, CreateDateColumn, Entity, Index, ManyToOne, OneToMany, PrimaryGeneratedColumn, RelationId, UpdateDateColumn } from 'typeorm'\n\nimport { User } from '@things-factory/auth-base'\nimport { Bizplace } from '@things-factory/biz-base'\nimport { config } from '@things-factory/env'\nimport { Routing } from '@things-factory/routing-base'\nimport { Domain } from '@things-factory/shell'\n\nimport { ProductDetail } from '../product-detail/product-detail'\nimport { ProductSet } from '../product-set/product-set'\n\nconst ORMCONFIG = config.get('ormconfig', {})\nconst DATABASE_TYPE = ORMCONFIG.type\n\nexport enum pickStrategy {\n FIFO = 'FIFO',\n FEFO = 'FEFO',\n FMFO = 'FMFO',\n LIFO = 'LIFO',\n LOCATION = 'LOCATION'\n}\n\n@Entity()\n@Index(\n 'ix_product_0',\n (product: Product) => [product.domain, product.bizplace, product.name, product.description, product.weight],\n { unique: true }\n)\n@Index('ix_product_1', (product: Product) => [product.bizplace])\n@ObjectType()\nexport class Product {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID, { nullable: true })\n id: string\n\n @ManyToOne(type => Domain)\n @Field()\n domain: Domain\n\n @RelationId((product: Product) => product.domain)\n domainId: string\n\n @RelationId((product: Product) => product.bizplace)\n bizplaceId: string\n\n @RelationId((product: Product) => product.productRef)\n productRefId: string\n\n @RelationId((product: Product) => product.parentProductRef)\n parentProductRefId: string\n\n @ManyToOne(type => Bizplace)\n @Field()\n bizplace: Bizplace\n\n @Column({ default: false })\n @Field()\n isCompany: boolean\n\n @Column()\n @Field({ nullable: true })\n sku: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n brandSku: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n brand: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n subBrand: string\n\n // 입고 단위\n @Column({ nullable: true })\n @Field({ nullable: true })\n inboundUnit?: string\n\n // 변환 kg\n @Column('float', { nullable: true, default: 1 })\n @Field({ nullable: true })\n convertWeight?: number\n\n // 박스입수\n @Column('float', { nullable: true, default: 0 })\n @Field({ nullable: true })\n boxInQty?: number\n\n // 제품군\n @Column({ nullable: true })\n @Field({ nullable: true })\n category?: string\n\n // 경매입고\n @Column({ nullable: true, default: false })\n @Field({ nullable: true })\n isAuction?: boolean\n\n //// To be removed ////\n @Column({ nullable: true })\n @Field({ nullable: true })\n gtin: string\n\n //// To be removed ////\n @Column({ nullable: true })\n @Field({ nullable: true })\n caseGtin: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n name: string\n\n @Column()\n @Field()\n type: string\n\n //// To be removed ////\n @Column({ nullable: true })\n @Field({ nullable: true })\n packingType: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n description: string\n\n @OneToMany(type => ProductDetail, productDetails => productDetails.product, { nullable: true })\n @Field(type => [ProductDetail], { nullable: true })\n productDetails: ProductDetail[]\n\n @ManyToOne(type => Product, { nullable: true })\n @Field({ nullable: true })\n productRef: Product\n\n //// To be removed ////\n @ManyToOne(type => Product, { nullable: true })\n @Field({ nullable: true })\n parentProductRef: Product\n\n //// To be removed ////\n @OneToMany(type => Product, product => product.parentProductRef, { nullable: true })\n @Field(type => [Product], { nullable: true })\n childProducts: Product[]\n\n //// To be removed ////\n @Column('float', { nullable: true })\n @Field({ nullable: true })\n bundleQty: number\n\n //// To be removed ////\n @Column({ nullable: true })\n @Field({ nullable: true })\n expirationPeriod: number\n\n //// To be removed ////\n @Column({ nullable: true })\n @Field({ nullable: true })\n weightUnit: string\n\n //// To be removed ////\n @Column('float', { nullable: true })\n @Field({ nullable: true })\n weight: number\n\n //// To be removed ////\n @Column('float', { nullable: true })\n @Field({ nullable: true })\n grossWeight: number\n\n //// To be removed ////\n @Column('float', { nullable: true })\n @Field({ nullable: true })\n caseWeight: number\n\n //// To be removed ////\n @Column('float', { nullable: true })\n @Field({ nullable: true })\n caseGrossWeight: number\n\n //// To be removed ////\n @Column('float', { nullable: true })\n @Field({ nullable: true })\n density: number\n\n //// To be removed ////\n @Column({ nullable: true })\n @Field({ nullable: true })\n lengthUnit: string\n\n //// To be removed ////\n @Column('float', { nullable: true })\n @Field({ nullable: true })\n costPrice: number\n\n //// To be removed ////\n @Column('float', { nullable: true })\n @Field({ nullable: true })\n mrpPrice: number\n\n //// To be removed ////\n @Column('float', { nullable: true })\n @Field({ nullable: true })\n sellPrice: number\n\n //// To be removed ////\n @Column('float', { nullable: true })\n @Field({ nullable: true })\n afterTaxCostPrice: number\n\n //// To be removed ////\n @Column('float', { nullable: true })\n @Field({ nullable: true })\n afterTaxSalesPrice: number\n\n //// To be removed ////\n @Column('float', { nullable: true })\n @Field({ nullable: true })\n width: number\n\n //// To be removed ////\n @Column('float', { nullable: true })\n @Field({ nullable: true })\n depth: number\n\n //// To be removed ////\n @Column('float', { nullable: true })\n @Field({ nullable: true })\n height: number\n\n //// To be removed ////\n @Column('float', { nullable: true })\n @Field({ nullable: true })\n volume: number\n\n //// To be removed ////\n @Column('float', { nullable: true })\n @Field({ nullable: true })\n caseWidth: number\n\n //// To be removed ////\n @Column('float', { nullable: true })\n @Field({ nullable: true })\n caseDepth: number\n\n //// To be removed ////\n @Column('float', { nullable: true })\n @Field({ nullable: true })\n caseHeight: number\n\n //// To be removed ////\n @Column('float', { nullable: true })\n @Field({ nullable: true })\n caseVolume: number\n\n //// To be removed ////\n @Column({ nullable: true })\n @Field({ nullable: true })\n volumeSize: string\n\n //// To be removed ////\n @Column({ nullable: true })\n @Field({ nullable: true })\n primaryUnit: string\n\n //// To be removed ////\n @Column('float', { nullable: true })\n @Field({ nullable: true })\n primaryValue: number\n\n //// To be removed ////\n @Column({ nullable: true })\n @Field({ nullable: true })\n auxUnit1: string\n\n //// To be removed ////\n @Column({ nullable: true })\n @Field({ nullable: true })\n auxValue1: string\n\n //// To be removed ////\n @Column({ nullable: true })\n @Field({ nullable: true })\n auxUnit2: string\n\n //// To be removed ////\n @Column({ nullable: true })\n @Field({ nullable: true })\n auxValue2: string\n\n //// To be removed ////\n @Column({ nullable: true })\n @Field({ nullable: true })\n auxUnit3: string\n\n //// To be removed ////\n @Column({ nullable: true })\n @Field({ nullable: true })\n auxValue3: string\n\n //// To be removed ////\n @Column({ nullable: true })\n @Field({ nullable: true })\n inventoryAccountCode: string\n\n //// To be removed ////\n @Column({ nullable: true })\n @Field({ nullable: true })\n cogsAccountCode: string\n\n //// To be removed ////\n @ManyToOne(type => ProductSet, productSet => productSet.product, { nullable: true })\n @Field({ nullable: true })\n productSet: ProductSet\n\n //// To be removed ////\n @Column({ nullable: true })\n @Field({ nullable: true })\n movement: string\n\n //// To be removed ////\n @Column({ nullable: true })\n @Field({ nullable: true })\n bufferQty: number\n\n //// To be removed ////\n @Column('float', { nullable: true })\n @Field({ nullable: true })\n minQty: number\n\n //// To be removed ////\n @Column({ nullable: true })\n @Field({ nullable: true })\n maxQty: number\n\n //// To be removed ////\n @Column({ nullable: true })\n @Field({ nullable: true })\n discountId: number\n\n //// To be removed ////\n @Column({ nullable: true })\n @Field({ nullable: true })\n status: string\n\n //// To be removed ////\n @Column({ nullable: true })\n @Field({ nullable: true })\n isTrackedAsInventory: boolean\n\n @Column({ default: false })\n @Field({ nullable: true })\n isRequiredCheckExpiry: boolean\n\n @Column({ default: false })\n @Field({ nullable: true })\n isRequireSerialNumberScanning: boolean\n\n @Column({ default: false })\n @Field({ nullable: true })\n isRequireSerialNumberScanningInbound: boolean\n\n @Column({ default: false })\n @Field({ nullable: true })\n isRequireSerialNumberScanningOutbound: boolean\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n deletedAt: Date\n\n @Column({\n nullable: false,\n type:\n DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb'\n ? 'enum'\n : DATABASE_TYPE == 'oracle'\n ? 'varchar2'\n : 'smallint',\n enum: pickStrategy,\n default: pickStrategy.FIFO\n })\n @Field()\n pickingStrategy: pickStrategy\n\n @Field({ nullable: true })\n refCode: string\n\n @Field(type => Float, { nullable: true })\n nettWeight: number\n\n @Field({ nullable: true })\n uom: string\n\n @Field(type => Float, { nullable: true })\n uomValue: number\n\n @Field({ nullable: true })\n auxUnit4: string\n\n @Field({ nullable: true })\n auxValue4: string\n\n @Field({ nullable: true })\n auxUnit5: string\n\n @Field({ nullable: true })\n auxValue5: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field({ nullable: true })\n creator: User\n\n @RelationId((product: Product) => product.creator)\n creatorId: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field({ nullable: true })\n updater: User\n\n @RelationId((product: Product) => product.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 @ManyToOne(type => Routing, { nullable: true })\n @Field({ nullable: true })\n routing?: Routing\n\n @RelationId((product: Product) => product.routing)\n routingId?: string\n\n @Column({ nullable: true })\n @Field(type => String, { nullable: true })\n warehouseName?: string\n\n @Field(type => String, { nullable: true })\n thumbnail?: string\n\n @Field({ nullable: true })\n productInformation: string\n\n @Field({ nullable: true })\n batchNo?: string\n\n @Field({ nullable: true })\n loadedQty: number\n\n constructor(obj?) {\n if (obj) {\n this.id = obj.product_id\n this.sku = obj.product_sku\n this.name = obj.product_name\n this.description = obj.product_description\n this.bundleQty = obj.product_bundle_qty\n this.type = obj.product_type\n this.packingType = obj.product_packing_type\n this.expirationPeriod = obj.product_expiration_period\n this.weightUnit = obj.product_weight_unit\n this.weight = obj.product_weight\n this.density = obj.product_density\n this.lengthUnit = obj.product_length_unit\n this.costPrice = obj.product_cost_price\n this.sellPrice = obj.product_sell_price\n this.width = obj.product_width\n this.depth = obj.product_depth\n this.height = obj.product_height\n this.primaryUnit = obj.product_primary_unit\n this.primaryValue = obj.product_primary_value\n this.auxUnit1 = obj.product_aux_unit_1\n this.auxValue1 = obj.product_aux_value_1\n this.auxUnit2 = obj.product_aux_unit_2\n this.auxValue2 = obj.product_aux_value_2\n this.auxUnit3 = obj.product_aux_unit_3\n this.auxValue3 = obj.product_aux_value_3\n this.createdAt = obj.product_created_at\n this.updatedAt = obj.product_updated_at\n this.movement = obj.product_movement\n this.inventoryAccountCode = obj.product_inventory_account_code\n this.cogsAccountCode = obj.product_cogs_account_code\n this.isTrackedAsInventory = obj.product_is_tracked_as_inventory\n this.mrpPrice = obj.product_mrp_price\n this.afterTaxCostPrice = obj.product_after_tax_cost_price\n this.afterTaxSalesPrice = obj.product_after_tax_sales_price\n this.bufferQty = obj.product_buffer_qty\n this.discountId = obj.product_discount_id\n this.status = obj.product_status\n this.brandSku = obj.product_brand_sku\n this.brand = obj.product_brand\n this.subBrand = obj.product_sub_brand\n this.gtin = obj.product_gtin\n this.caseGtin = obj.product_case_gtin\n this.grossWeight = obj.product_gross_weight\n this.caseWeight = obj.product_case_weight\n this.caseGrossWeight = obj.product_case_gross_weight\n this.volume = obj.product_volume\n this.caseWidth = obj.product_case_width\n this.caseDepth = obj.product_case_depth\n this.caseHeight = obj.product_case_height\n this.caseVolume = obj.product_case_volume\n this.volumeSize = obj.product_volume_size\n this.minQty = obj.product_min_qty\n this.maxQty = obj.product_max_qty\n this.isCompany = obj.product_is_company\n this.deletedAt = obj.product_deleted_at\n this.isRequiredCheckExpiry = obj.product_is_required_check_expiry\n this.isRequireSerialNumberScanning = obj.product_is_require_serial_number_scanning\n this.isRequireSerialNumberScanningInbound = obj.product_is_require_serial_number_scanning_inbound\n this.isRequireSerialNumberScanningOutbound = obj.product_is_require_serial_number_scanning_outbound\n this.bizplace = { id: obj.product_bizplace_id }\n this.domain = { id: obj.product_domain_id } as any\n this.inboundUnit = obj.product_inbound_unit\n this.convertWeight = obj.product_convert_weight\n this.category = obj.product_category\n this.boxInQty = obj.product_box_in_qty\n this.isAuction = obj.product_is_auction\n }\n }\n}\n"]}
1
+ {"version":3,"file":"product.js","sourceRoot":"","sources":["../../../server/service/product/product.ts"],"names":[],"mappings":";;;;;;AAAA,+CAA2D;AAC3D,qCAA6I;AAE7I,yDAAgD;AAChD,uDAAmD;AACnD,6CAA4C;AAC5C,+DAAsD;AACtD,iDAAgE;AAEhE,qEAAgE;AAChE,4DAAuD;AAEvD,MAAM,SAAS,GAAG,YAAM,CAAC,GAAG,CAAC,WAAW,EAAE,EAAE,CAAC,CAAA;AAC7C,MAAM,aAAa,GAAG,SAAS,CAAC,IAAI,CAAA;AAEpC,IAAY,YAMX;AAND,WAAY,YAAY;IACtB,6BAAa,CAAA;IACb,6BAAa,CAAA;IACb,6BAAa,CAAA;IACb,6BAAa,CAAA;IACb,qCAAqB,CAAA;AACvB,CAAC,EANW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAMvB;AAMM,IAAM,OAAO,eAAb,MAAM,OAAO;IAkalB,YAAY,GAAI;QACd,IAAI,GAAG,EAAE;YACP,IAAI,CAAC,EAAE,GAAG,GAAG,CAAC,UAAU,CAAA;YACxB,IAAI,CAAC,GA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AAO,CAAC,OAAO,CAAC;;0CAChC;AAElB;IAAC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC1B,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CACpB;AAEtB;IAAC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CACxB;AAElB;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDACA;AAE1B;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wCACV;AAEhB;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CACT;AAhaN,OAAO;IAJnB,IAAA,gBAAM,GAAE;IACR,IAAA,eAAK,EAAC,cAAc,EAAE,CAAC,OAAgB,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,OAAO,CAAC,QAAQ,EAAE,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,WAAW,EAAE,OAAO,CAAC,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IACpJ,IAAA,eAAK,EAAC,cAAc,EAAE,CAAC,OAAgB,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;IAC/D,IAAA,yBAAU,GAAE;;GACA,OAAO,CAwenB;AAxeY,0BAAO","sourcesContent":["import { Field, Float, ID, ObjectType } from 'type-graphql'\nimport { Column, CreateDateColumn, Entity, Index, ManyToOne, OneToMany, PrimaryGeneratedColumn, RelationId, UpdateDateColumn } from 'typeorm'\n\nimport { User } from '@things-factory/auth-base'\nimport { Bizplace } from '@things-factory/biz-base'\nimport { config } from '@things-factory/env'\nimport { Routing } from '@things-factory/routing-base'\nimport { Domain, roundTransformer } from '@things-factory/shell'\n\nimport { ProductDetail } from '../product-detail/product-detail'\nimport { ProductSet } from '../product-set/product-set'\n\nconst ORMCONFIG = config.get('ormconfig', {})\nconst DATABASE_TYPE = ORMCONFIG.type\n\nexport enum pickStrategy {\n FIFO = 'FIFO',\n FEFO = 'FEFO',\n FMFO = 'FMFO',\n LIFO = 'LIFO',\n LOCATION = 'LOCATION'\n}\n\n@Entity()\n@Index('ix_product_0', (product: Product) => [product.domain, product.bizplace, product.name, product.description, product.weight], { unique: true })\n@Index('ix_product_1', (product: Product) => [product.bizplace])\n@ObjectType()\nexport class Product {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID, { nullable: true })\n id: string\n\n @ManyToOne(type => Domain)\n @Field()\n domain: Domain\n\n @RelationId((product: Product) => product.domain)\n domainId: string\n\n @RelationId((product: Product) => product.bizplace)\n bizplaceId: string\n\n @RelationId((product: Product) => product.productRef)\n productRefId: string\n\n @RelationId((product: Product) => product.parentProductRef)\n parentProductRefId: string\n\n @ManyToOne(type => Bizplace)\n @Field()\n bizplace: Bizplace\n\n @Column({ default: false })\n @Field()\n isCompany: boolean\n\n @Column()\n @Field({ nullable: true })\n sku: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n brandSku: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n brand: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n subBrand: string\n\n // 입고 단위\n @Column({ nullable: true })\n @Field({ nullable: true })\n inboundUnit?: string\n\n // 변환 kg\n @Column('float', { nullable: true, default: 1, transformer: roundTransformer })\n @Field({ nullable: true })\n convertWeight?: number\n\n // 박스입수\n @Column('float', { nullable: true, default: 0, transformer: roundTransformer })\n @Field({ nullable: true })\n boxInQty?: number\n\n // 제품군\n @Column({ nullable: true })\n @Field({ nullable: true })\n category?: string\n\n // 경매입고\n @Column({ nullable: true, default: false })\n @Field({ nullable: true })\n isAuction?: boolean\n\n //// To be removed ////\n @Column({ nullable: true })\n @Field({ nullable: true })\n gtin: string\n\n //// To be removed ////\n @Column({ nullable: true })\n @Field({ nullable: true })\n caseGtin: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n name: string\n\n @Column()\n @Field()\n type: string\n\n //// To be removed ////\n @Column({ nullable: true })\n @Field({ nullable: true })\n packingType: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n description: string\n\n @OneToMany(type => ProductDetail, productDetails => productDetails.product, { nullable: true })\n @Field(type => [ProductDetail], { nullable: true })\n productDetails: ProductDetail[]\n\n @ManyToOne(type => Product, { nullable: true })\n @Field({ nullable: true })\n productRef: Product\n\n //// To be removed ////\n @ManyToOne(type => Product, { nullable: true })\n @Field({ nullable: true })\n parentProductRef: Product\n\n //// To be removed ////\n @OneToMany(type => Product, product => product.parentProductRef, { nullable: true })\n @Field(type => [Product], { nullable: true })\n childProducts: Product[]\n\n //// To be removed ////\n @Column('float', { nullable: true, transformer: roundTransformer })\n @Field({ nullable: true })\n bundleQty: number\n\n //// To be removed ////\n @Column({ nullable: true })\n @Field({ nullable: true })\n expirationPeriod: number\n\n //// To be removed ////\n @Column({ nullable: true })\n @Field({ nullable: true })\n weightUnit: string\n\n //// To be removed ////\n @Column('float', { nullable: true, transformer: roundTransformer })\n @Field({ nullable: true })\n weight: number\n\n //// To be removed ////\n @Column('float', { nullable: true, transformer: roundTransformer })\n @Field({ nullable: true })\n grossWeight: number\n\n //// To be removed ////\n @Column('float', { nullable: true, transformer: roundTransformer })\n @Field({ nullable: true })\n caseWeight: number\n\n //// To be removed ////\n @Column('float', { nullable: true, transformer: roundTransformer })\n @Field({ nullable: true })\n caseGrossWeight: number\n\n //// To be removed ////\n @Column('float', { nullable: true, transformer: roundTransformer })\n @Field({ nullable: true })\n density: number\n\n //// To be removed ////\n @Column({ nullable: true })\n @Field({ nullable: true })\n lengthUnit: string\n\n //// To be removed ////\n @Column('float', { nullable: true, transformer: roundTransformer })\n @Field({ nullable: true })\n costPrice: number\n\n //// To be removed ////\n @Column('float', { nullable: true, transformer: roundTransformer })\n @Field({ nullable: true })\n mrpPrice: number\n\n //// To be removed ////\n @Column('float', { nullable: true, transformer: roundTransformer })\n @Field({ nullable: true })\n sellPrice: number\n\n //// To be removed ////\n @Column('float', { nullable: true, transformer: roundTransformer })\n @Field({ nullable: true })\n afterTaxCostPrice: number\n\n //// To be removed ////\n @Column('float', { nullable: true, transformer: roundTransformer })\n @Field({ nullable: true })\n afterTaxSalesPrice: number\n\n //// To be removed ////\n @Column('float', { nullable: true, transformer: roundTransformer })\n @Field({ nullable: true })\n width: number\n\n //// To be removed ////\n @Column('float', { nullable: true, transformer: roundTransformer })\n @Field({ nullable: true })\n depth: number\n\n //// To be removed ////\n @Column('float', { nullable: true, transformer: roundTransformer })\n @Field({ nullable: true })\n height: number\n\n //// To be removed ////\n @Column('float', { nullable: true, transformer: roundTransformer })\n @Field({ nullable: true })\n volume: number\n\n //// To be removed ////\n @Column('float', { nullable: true, transformer: roundTransformer })\n @Field({ nullable: true })\n caseWidth: number\n\n //// To be removed ////\n @Column('float', { nullable: true, transformer: roundTransformer })\n @Field({ nullable: true })\n caseDepth: number\n\n //// To be removed ////\n @Column('float', { nullable: true, transformer: roundTransformer })\n @Field({ nullable: true })\n caseHeight: number\n\n //// To be removed ////\n @Column('float', { nullable: true, transformer: roundTransformer })\n @Field({ nullable: true })\n caseVolume: number\n\n //// To be removed ////\n @Column({ nullable: true })\n @Field({ nullable: true })\n volumeSize: string\n\n //// To be removed ////\n @Column({ nullable: true })\n @Field({ nullable: true })\n primaryUnit: string\n\n //// To be removed ////\n @Column('float', { nullable: true, transformer: roundTransformer })\n @Field({ nullable: true })\n primaryValue: number\n\n //// To be removed ////\n @Column({ nullable: true })\n @Field({ nullable: true })\n auxUnit1: string\n\n //// To be removed ////\n @Column({ nullable: true })\n @Field({ nullable: true })\n auxValue1: string\n\n //// To be removed ////\n @Column({ nullable: true })\n @Field({ nullable: true })\n auxUnit2: string\n\n //// To be removed ////\n @Column({ nullable: true })\n @Field({ nullable: true })\n auxValue2: string\n\n //// To be removed ////\n @Column({ nullable: true })\n @Field({ nullable: true })\n auxUnit3: string\n\n //// To be removed ////\n @Column({ nullable: true })\n @Field({ nullable: true })\n auxValue3: string\n\n //// To be removed ////\n @Column({ nullable: true })\n @Field({ nullable: true })\n inventoryAccountCode: string\n\n //// To be removed ////\n @Column({ nullable: true })\n @Field({ nullable: true })\n cogsAccountCode: string\n\n //// To be removed ////\n @ManyToOne(type => ProductSet, productSet => productSet.product, { nullable: true })\n @Field({ nullable: true })\n productSet: ProductSet\n\n //// To be removed ////\n @Column({ nullable: true })\n @Field({ nullable: true })\n movement: string\n\n //// To be removed ////\n @Column({ nullable: true })\n @Field({ nullable: true })\n bufferQty: number\n\n //// To be removed ////\n @Column('float', { nullable: true, transformer: roundTransformer })\n @Field({ nullable: true })\n minQty: number\n\n //// To be removed ////\n @Column({ nullable: true })\n @Field({ nullable: true })\n maxQty: number\n\n //// To be removed ////\n @Column({ nullable: true })\n @Field({ nullable: true })\n discountId: number\n\n //// To be removed ////\n @Column({ nullable: true })\n @Field({ nullable: true })\n status: string\n\n //// To be removed ////\n @Column({ nullable: true })\n @Field({ nullable: true })\n isTrackedAsInventory: boolean\n\n @Column({ default: false })\n @Field({ nullable: true })\n isRequiredCheckExpiry: boolean\n\n @Column({ default: false })\n @Field({ nullable: true })\n isRequireSerialNumberScanning: boolean\n\n @Column({ default: false })\n @Field({ nullable: true })\n isRequireSerialNumberScanningInbound: boolean\n\n @Column({ default: false })\n @Field({ nullable: true })\n isRequireSerialNumberScanningOutbound: boolean\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n deletedAt: Date\n\n @Column({\n nullable: false,\n type: DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb' ? 'enum' : DATABASE_TYPE == 'oracle' ? 'varchar2' : 'smallint',\n enum: pickStrategy,\n default: pickStrategy.FIFO\n })\n @Field()\n pickingStrategy: pickStrategy\n\n @Field({ nullable: true })\n refCode: string\n\n @Field(type => Float, { nullable: true })\n nettWeight: number\n\n @Field({ nullable: true })\n uom: string\n\n @Field(type => Float, { nullable: true })\n uomValue: number\n\n @Field({ nullable: true })\n auxUnit4: string\n\n @Field({ nullable: true })\n auxValue4: string\n\n @Field({ nullable: true })\n auxUnit5: string\n\n @Field({ nullable: true })\n auxValue5: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field({ nullable: true })\n creator: User\n\n @RelationId((product: Product) => product.creator)\n creatorId: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field({ nullable: true })\n updater: User\n\n @RelationId((product: Product) => product.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 @ManyToOne(type => Routing, { nullable: true })\n @Field({ nullable: true })\n routing?: Routing\n\n @RelationId((product: Product) => product.routing)\n routingId?: string\n\n @Column({ nullable: true })\n @Field(type => String, { nullable: true })\n warehouseName?: string\n\n @Field(type => String, { nullable: true })\n thumbnail?: string\n\n @Field({ nullable: true })\n productInformation: string\n\n @Field({ nullable: true })\n batchNo?: string\n\n @Field({ nullable: true })\n loadedQty: number\n\n constructor(obj?) {\n if (obj) {\n this.id = obj.product_id\n this.sku = obj.product_sku\n this.name = obj.product_name\n this.description = obj.product_description\n this.bundleQty = obj.product_bundle_qty\n this.type = obj.product_type\n this.packingType = obj.product_packing_type\n this.expirationPeriod = obj.product_expiration_period\n this.weightUnit = obj.product_weight_unit\n this.weight = obj.product_weight\n this.density = obj.product_density\n this.lengthUnit = obj.product_length_unit\n this.costPrice = obj.product_cost_price\n this.sellPrice = obj.product_sell_price\n this.width = obj.product_width\n this.depth = obj.product_depth\n this.height = obj.product_height\n this.primaryUnit = obj.product_primary_unit\n this.primaryValue = obj.product_primary_value\n this.auxUnit1 = obj.product_aux_unit_1\n this.auxValue1 = obj.product_aux_value_1\n this.auxUnit2 = obj.product_aux_unit_2\n this.auxValue2 = obj.product_aux_value_2\n this.auxUnit3 = obj.product_aux_unit_3\n this.auxValue3 = obj.product_aux_value_3\n this.createdAt = obj.product_created_at\n this.updatedAt = obj.product_updated_at\n this.movement = obj.product_movement\n this.inventoryAccountCode = obj.product_inventory_account_code\n this.cogsAccountCode = obj.product_cogs_account_code\n this.isTrackedAsInventory = obj.product_is_tracked_as_inventory\n this.mrpPrice = obj.product_mrp_price\n this.afterTaxCostPrice = obj.product_after_tax_cost_price\n this.afterTaxSalesPrice = obj.product_after_tax_sales_price\n this.bufferQty = obj.product_buffer_qty\n this.discountId = obj.product_discount_id\n this.status = obj.product_status\n this.brandSku = obj.product_brand_sku\n this.brand = obj.product_brand\n this.subBrand = obj.product_sub_brand\n this.gtin = obj.product_gtin\n this.caseGtin = obj.product_case_gtin\n this.grossWeight = obj.product_gross_weight\n this.caseWeight = obj.product_case_weight\n this.caseGrossWeight = obj.product_case_gross_weight\n this.volume = obj.product_volume\n this.caseWidth = obj.product_case_width\n this.caseDepth = obj.product_case_depth\n this.caseHeight = obj.product_case_height\n this.caseVolume = obj.product_case_volume\n this.volumeSize = obj.product_volume_size\n this.minQty = obj.product_min_qty\n this.maxQty = obj.product_max_qty\n this.isCompany = obj.product_is_company\n this.deletedAt = obj.product_deleted_at\n this.isRequiredCheckExpiry = obj.product_is_required_check_expiry\n this.isRequireSerialNumberScanning = obj.product_is_require_serial_number_scanning\n this.isRequireSerialNumberScanningInbound = obj.product_is_require_serial_number_scanning_inbound\n this.isRequireSerialNumberScanningOutbound = obj.product_is_require_serial_number_scanning_outbound\n this.bizplace = { id: obj.product_bizplace_id }\n this.domain = { id: obj.product_domain_id } as any\n this.inboundUnit = obj.product_inbound_unit\n this.convertWeight = obj.product_convert_weight\n this.category = obj.product_category\n this.boxInQty = obj.product_box_in_qty\n this.isAuction = obj.product_is_auction\n }\n }\n}\n"]}
@@ -73,7 +73,7 @@ tslib_1.__decorate([
73
73
  tslib_1.__metadata("design:type", String)
74
74
  ], ProductBundle.prototype, "packingType", void 0);
75
75
  tslib_1.__decorate([
76
- (0, typeorm_1.Column)({ type: 'float', default: 1 }),
76
+ (0, typeorm_1.Column)({ type: 'float', default: 1, transformer: shell_1.roundTransformer }),
77
77
  (0, type_graphql_1.Field)(),
78
78
  tslib_1.__metadata("design:type", Number)
79
79
  ], ProductBundle.prototype, "packingSize", void 0);
@@ -1 +1 @@
1
- {"version":3,"file":"product-bundle.js","sourceRoot":"","sources":["../../../server/service/product-bundle/product-bundle.ts"],"names":[],"mappings":";;;;;AAAA,yDAAgD;AAChD,uDAAmD;AACnD,iDAA8C;AAC9C,+CAAoD;AACpD,qCAUgB;AAChB,6FAAuF;AAOhF,IAAM,aAAa,GAAnB,MAAM,aAAa;CA+EzB,CAAA;AA9EC;IAAC,IAAA,gCAAsB,EAAC,MAAM,CAAC;IAC9B,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,CAAC;;yCACC;AAEnB;IAAC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,cAAM,CAAC;IACzB,IAAA,oBAAK,GAAE;sCACA,cAAM;6CAAA;AAEd;IAAC,IAAA,oBAAU,EAAC,CAAC,aAA4B,EAAE,EAAE,CAAC,aAAa,CAAC,MAAM,CAAC;;+CACnD;AAEhB;IAAC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,mBAAQ,EAAE;QAC3B,QAAQ,EAAE,KAAK;KAChB,CAAC;IACD,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;0DAChB,mBAAQ,oBAAR,mBAAQ;+CAAA;AAElB;IAAC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,6CAAoB,EAAE,oBAAoB,CAAC,EAAE,CAAC,oBAAoB,CAAC,aAAa,CAAC;IACnG,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,6CAAoB,CAAC,CAAC;;4DACO;AAE7C;IAAC,IAAA,gBAAM,GAA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AAE,EAAE,CAAC,aAAa,CAAC,OAAO,CAAC;;gDACnD;AAEjB;IAAC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,EAAE;QACvB,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCACjB,gBAAI;8CAAA;AAEb;IAAC,IAAA,oBAAU,EAAC,CAAC,aAA4B,EAAE,EAAE,CAAC,aAAa,CAAC,OAAO,CAAC;;gDACnD;AA9EN,aAAa;IALzB,IAAA,gBAAM,GAAE;IACR,IAAA,eAAK,EAAC,qBAAqB,EAAE,CAAC,aAA4B,EAAE,EAAE,CAAC,CAAC,aAAa,CAAC,MAAM,EAAE,aAAa,CAAC,EAAE,CAAC,EAAE;QACxG,MAAM,EAAE,IAAI;KACb,CAAC;IACD,IAAA,yBAAU,GAAE;GACA,aAAa,CA+EzB;AA/EY,sCAAa","sourcesContent":["import { User } from '@things-factory/auth-base'\nimport { Bizplace } from '@things-factory/biz-base'\nimport { Domain } from '@things-factory/shell'\nimport { Field, ID, 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'\nimport { ProductBundleSetting } from '../product-bundle-setting/product-bundle-setting'\n\n@Entity()\n@Index('ix_product_bundle_0', (productBundle: ProductBundle) => [productBundle.domain, productBundle.id], {\n unique: true\n})\n@ObjectType()\nexport class ProductBundle {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID)\n readonly id: string\n\n @ManyToOne(type => Domain)\n @Field()\n domain: Domain\n\n @RelationId((productBundle: ProductBundle) => productBundle.domain)\n domainId: string\n\n @ManyToOne(type => Bizplace, {\n nullable: false\n })\n @Field({ nullable: true })\n bizplace: Bizplace\n\n @OneToMany(type => ProductBundleSetting, productBundleSetting => productBundleSetting.productBundle)\n @Field(type => [ProductBundleSetting])\n productBundleSettings: ProductBundleSetting[]\n\n @Column()\n @Field()\n sku: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n refCode: string\n\n @Column()\n @Field()\n name: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n description: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n type: string\n\n @Column()\n @Field()\n status: string\n\n @Column()\n @Field()\n packingType: string\n\n @Column({ type: 'float', default: 1 })\n @Field()\n packingSize: number\n\n @CreateDateColumn()\n @Field({ nullable: true })\n createdAt: Date\n\n @UpdateDateColumn()\n @Field({ nullable: true })\n updatedAt: Date\n\n @ManyToOne(type => User, {\n nullable: true\n })\n @Field({ nullable: true })\n creator: User\n\n @RelationId((productBundle: ProductBundle) => productBundle.creator)\n creatorId: string\n\n @ManyToOne(type => User, {\n nullable: true\n })\n @Field({ nullable: true })\n updater: User\n\n @RelationId((productBundle: ProductBundle) => productBundle.updater)\n updaterId: string\n}\n"]}
1
+ {"version":3,"file":"product-bundle.js","sourceRoot":"","sources":["../../../server/service/product-bundle/product-bundle.ts"],"names":[],"mappings":";;;;;AAAA,yDAAgD;AAChD,uDAAmD;AACnD,iDAAgE;AAChE,+CAAoD;AACpD,qCAA6I;AAC7I,6FAAuF;AAOhF,IAAM,aAAa,GAAnB,MAAM,aAAa;CA+EzB,CAAA;AA9EC;IAAC,IAAA,gCAAsB,EAAC,MAAM,CAAC;IAC9B,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,CAAC;;yCACC;AAEnB;IAAC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,cAAM,CAAC;IACzB,IAAA,oBAAK,GAAE;sCACA,cAAM;6CAAA;AAEd;IAAC,IAAA,oBAAU,EAAC,CAAC,aAA4B,EAAE,EAAE,CAAC,aAAa,CAAC,MAAM,CAAC;;+CACnD;AAEhB;IAAC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,mBAAQ,EAAE;QAC3B,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,EAAE,IAAI,EAAE,CAAC;sCACf,IAAI;gDAAA;AAEf;IAAC,IAAA,0BAAgB,GAAE;IAClB,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCACf,IAAI;gDAAA;AAEf;IAAC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,EAAE;QACvB,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCACjB,gBAAI;8CAAA;AAEb;IAAC,IAAA,oBAAU,EAAC,CAAC,aAA4B,EAAE,EAAE,CAAC,aAAa,CAAC,OAAO,CAAC;;gDACnD;AAEjB;IAAC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,EAAE;QACvB,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCACjB,gBAAI;8CAAA;AAEb;IAAC,IAAA,oBAAU,EAAC,CAAC,aAA4B,EAAE,EAAE,CAAC,aAAa,CAAC,OAAO,CAAC;;gDACnD;AA9EN,aAAa;IALzB,IAAA,gBAAM,GAAE;IACR,IAAA,eAAK,EAAC,qBAAqB,EAAE,CAAC,aAA4B,EAAE,EAAE,CAAC,CAAC,aAAa,CAAC,MAAM,EAAE,aAAa,CAAC,EAAE,CAAC,EAAE;QACxG,MAAM,EAAE,IAAI;KACb,CAAC;IACD,IAAA,yBAAU,GAAE;GACA,aAAa,CA+EzB;AA/EY,sCAAa","sourcesContent":["import { User } from '@things-factory/auth-base'\nimport { Bizplace } from '@things-factory/biz-base'\nimport { Domain, roundTransformer } from '@things-factory/shell'\nimport { Field, ID, ObjectType } from 'type-graphql'\nimport { Column, CreateDateColumn, Entity, Index, ManyToOne, OneToMany, PrimaryGeneratedColumn, RelationId, UpdateDateColumn } from 'typeorm'\nimport { ProductBundleSetting } from '../product-bundle-setting/product-bundle-setting'\n\n@Entity()\n@Index('ix_product_bundle_0', (productBundle: ProductBundle) => [productBundle.domain, productBundle.id], {\n unique: true\n})\n@ObjectType()\nexport class ProductBundle {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID)\n readonly id: string\n\n @ManyToOne(type => Domain)\n @Field()\n domain: Domain\n\n @RelationId((productBundle: ProductBundle) => productBundle.domain)\n domainId: string\n\n @ManyToOne(type => Bizplace, {\n nullable: false\n })\n @Field({ nullable: true })\n bizplace: Bizplace\n\n @OneToMany(type => ProductBundleSetting, productBundleSetting => productBundleSetting.productBundle)\n @Field(type => [ProductBundleSetting])\n productBundleSettings: ProductBundleSetting[]\n\n @Column()\n @Field()\n sku: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n refCode: string\n\n @Column()\n @Field()\n name: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n description: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n type: string\n\n @Column()\n @Field()\n status: string\n\n @Column()\n @Field()\n packingType: string\n\n @Column({ type: 'float', default: 1, transformer: roundTransformer })\n @Field()\n packingSize: number\n\n @CreateDateColumn()\n @Field({ nullable: true })\n createdAt: Date\n\n @UpdateDateColumn()\n @Field({ nullable: true })\n updatedAt: Date\n\n @ManyToOne(type => User, {\n nullable: true\n })\n @Field({ nullable: true })\n creator: User\n\n @RelationId((productBundle: ProductBundle) => productBundle.creator)\n creatorId: string\n\n @ManyToOne(type => User, {\n nullable: true\n })\n @Field({ nullable: true })\n updater: User\n\n @RelationId((productBundle: ProductBundle) => productBundle.updater)\n updaterId: string\n}\n"]}
@@ -159,7 +159,7 @@ tslib_1.__decorate([
159
159
  tslib_1.__metadata("design:type", String)
160
160
  ], ProductDetail.prototype, "packingType", void 0);
161
161
  tslib_1.__decorate([
162
- (0, typeorm_1.Column)('float', { default: 1 }),
162
+ (0, typeorm_1.Column)('float', { default: 1, transformer: shell_1.roundTransformer }),
163
163
  (0, type_graphql_1.Field)(),
164
164
  tslib_1.__metadata("design:type", Number)
165
165
  ], ProductDetail.prototype, "packingSize", void 0);
@@ -174,7 +174,7 @@ tslib_1.__decorate([
174
174
  tslib_1.__metadata("design:type", String)
175
175
  ], ProductDetail.prototype, "uom", void 0);
176
176
  tslib_1.__decorate([
177
- (0, typeorm_1.Column)('float'),
177
+ (0, typeorm_1.Column)('float', { transformer: shell_1.roundTransformer }),
178
178
  (0, type_graphql_1.Field)(),
179
179
  tslib_1.__metadata("design:type", Number)
180
180
  ], ProductDetail.prototype, "uomValue", void 0);
@@ -194,7 +194,7 @@ tslib_1.__decorate([
194
194
  tslib_1.__metadata("design:type", Array)
195
195
  ], ProductDetail.prototype, "productDetailBizplaceSettings", void 0);
196
196
  tslib_1.__decorate([
197
- (0, typeorm_1.Column)('float', { nullable: true }),
197
+ (0, typeorm_1.Column)('float', { nullable: true, transformer: shell_1.roundTransformer }),
198
198
  (0, type_graphql_1.Field)({ nullable: true }),
199
199
  tslib_1.__metadata("design:type", Number)
200
200
  ], ProductDetail.prototype, "childQty", void 0);
@@ -204,12 +204,12 @@ tslib_1.__decorate([
204
204
  tslib_1.__metadata("design:type", String)
205
205
  ], ProductDetail.prototype, "weightUnit", void 0);
206
206
  tslib_1.__decorate([
207
- (0, typeorm_1.Column)('float', { nullable: true }),
207
+ (0, typeorm_1.Column)('float', { nullable: true, transformer: shell_1.roundTransformer }),
208
208
  (0, type_graphql_1.Field)({ nullable: true }),
209
209
  tslib_1.__metadata("design:type", Number)
210
210
  ], ProductDetail.prototype, "nettWeight", void 0);
211
211
  tslib_1.__decorate([
212
- (0, typeorm_1.Column)('float', { nullable: true }),
212
+ (0, typeorm_1.Column)('float', { nullable: true, transformer: shell_1.roundTransformer }),
213
213
  (0, type_graphql_1.Field)({ nullable: true }),
214
214
  tslib_1.__metadata("design:type", Number)
215
215
  ], ProductDetail.prototype, "grossWeight", void 0);
@@ -219,22 +219,22 @@ tslib_1.__decorate([
219
219
  tslib_1.__metadata("design:type", String)
220
220
  ], ProductDetail.prototype, "lengthUnit", void 0);
221
221
  tslib_1.__decorate([
222
- (0, typeorm_1.Column)('float', { nullable: true }),
222
+ (0, typeorm_1.Column)('float', { nullable: true, transformer: shell_1.roundTransformer }),
223
223
  (0, type_graphql_1.Field)({ nullable: true }),
224
224
  tslib_1.__metadata("design:type", Number)
225
225
  ], ProductDetail.prototype, "width", void 0);
226
226
  tslib_1.__decorate([
227
- (0, typeorm_1.Column)('float', { nullable: true }),
227
+ (0, typeorm_1.Column)('float', { nullable: true, transformer: shell_1.roundTransformer }),
228
228
  (0, type_graphql_1.Field)({ nullable: true }),
229
229
  tslib_1.__metadata("design:type", Number)
230
230
  ], ProductDetail.prototype, "depth", void 0);
231
231
  tslib_1.__decorate([
232
- (0, typeorm_1.Column)('float', { nullable: true }),
232
+ (0, typeorm_1.Column)('float', { nullable: true, transformer: shell_1.roundTransformer }),
233
233
  (0, type_graphql_1.Field)({ nullable: true }),
234
234
  tslib_1.__metadata("design:type", Number)
235
235
  ], ProductDetail.prototype, "height", void 0);
236
236
  tslib_1.__decorate([
237
- (0, typeorm_1.Column)('float', { nullable: true }),
237
+ (0, typeorm_1.Column)('float', { nullable: true, transformer: shell_1.roundTransformer }),
238
238
  (0, type_graphql_1.Field)({ nullable: true }),
239
239
  tslib_1.__metadata("design:type", Number)
240
240
  ], ProductDetail.prototype, "volume", void 0);
@@ -244,7 +244,7 @@ tslib_1.__decorate([
244
244
  tslib_1.__metadata("design:type", Number)
245
245
  ], ProductDetail.prototype, "bufferQty", void 0);
246
246
  tslib_1.__decorate([
247
- (0, typeorm_1.Column)('float', { default: 0 }),
247
+ (0, typeorm_1.Column)('float', { default: 0, transformer: shell_1.roundTransformer }),
248
248
  (0, type_graphql_1.Field)(),
249
249
  tslib_1.__metadata("design:type", Number)
250
250
  ], ProductDetail.prototype, "minQty", void 0);
@@ -334,27 +334,27 @@ tslib_1.__decorate([
334
334
  tslib_1.__metadata("design:type", Number)
335
335
  ], ProductDetail.prototype, "discountId", void 0);
336
336
  tslib_1.__decorate([
337
- (0, typeorm_1.Column)('float', { nullable: true }),
337
+ (0, typeorm_1.Column)('float', { nullable: true, transformer: shell_1.roundTransformer }),
338
338
  (0, type_graphql_1.Field)({ nullable: true }),
339
339
  tslib_1.__metadata("design:type", Number)
340
340
  ], ProductDetail.prototype, "costPrice", void 0);
341
341
  tslib_1.__decorate([
342
- (0, typeorm_1.Column)('float', { nullable: true }),
342
+ (0, typeorm_1.Column)('float', { nullable: true, transformer: shell_1.roundTransformer }),
343
343
  (0, type_graphql_1.Field)({ nullable: true }),
344
344
  tslib_1.__metadata("design:type", Number)
345
345
  ], ProductDetail.prototype, "mrpPrice", void 0);
346
346
  tslib_1.__decorate([
347
- (0, typeorm_1.Column)('float', { nullable: true }),
347
+ (0, typeorm_1.Column)('float', { nullable: true, transformer: shell_1.roundTransformer }),
348
348
  (0, type_graphql_1.Field)({ nullable: true }),
349
349
  tslib_1.__metadata("design:type", Number)
350
350
  ], ProductDetail.prototype, "sellPrice", void 0);
351
351
  tslib_1.__decorate([
352
- (0, typeorm_1.Column)('float', { nullable: true }),
352
+ (0, typeorm_1.Column)('float', { nullable: true, transformer: shell_1.roundTransformer }),
353
353
  (0, type_graphql_1.Field)({ nullable: true }),
354
354
  tslib_1.__metadata("design:type", Number)
355
355
  ], ProductDetail.prototype, "afterTaxCostPrice", void 0);
356
356
  tslib_1.__decorate([
357
- (0, typeorm_1.Column)('float', { nullable: true }),
357
+ (0, typeorm_1.Column)('float', { nullable: true, transformer: shell_1.roundTransformer }),
358
358
  (0, type_graphql_1.Field)({ nullable: true }),
359
359
  tslib_1.__metadata("design:type", Number)
360
360
  ], ProductDetail.prototype, "afterTaxSalesPrice", void 0);
@@ -1 +1 @@
1
- {"version":3,"file":"product-detail.js","sourceRoot":"","sources":["../../../server/service/product-detail/product-detail.ts"],"names":[],"mappings":";;;;;AAAA,+CAA2D;AAC3D,qCAA6I;AAE7I,yDAAgD;AAChD,iDAA8C;AAE9C,wHAAiH;AACjH,gDA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AA4B,EAAE,EAAE,CAAC,CAAC,aAAa,CAAC,MAAM,EAAE,aAAa,CAAC,OAAO,CAAC,EAAE;QAC7G,MAAM,EAAE,IAAI;KACb,CAAC;IACD,IAAA,yBAAU,GAAE;;GACA,aAAa,CAgTzB;AAhTY,sCAAa","sourcesContent":["import { Field, Float, ID, ObjectType } from 'type-graphql'\nimport { Column, CreateDateColumn, Entity, Index, ManyToOne, OneToMany, PrimaryGeneratedColumn, RelationId, UpdateDateColumn } from 'typeorm'\n\nimport { User } from '@things-factory/auth-base'\nimport { Domain } from '@things-factory/shell'\n\nimport { ProductDetailBizplaceSetting } from '../product-detail-bizplace-setting/product-detail-bizplace-setting'\nimport { Product } from '../product/product'\n\n/**\n * @prop {string} id - Primary Key.\n * @prop {Object} domain - Stock Owner company domain.\n * @prop {string} name - Product Detail Name.\n * @prop {string} gtin - Global Trade Item Number or Product Detail Barcode. SKU, Manufacturer, and Packaging specific code. For Product Scanning Feature.\n * @prop {?string} refCode - Product Reference Code.\n * @prop {Object} product - Foreign field. Relation to Product Entity / Table.\n * @prop {boolean} isDefault - Default SKU info.\n * @prop {string} packingType - Packing type of current Product Detail.\n * @prop {number} packingSize - Packing size of current Product Detail.\n * @prop {string} movement - Movement of stocks. eg, FAST, NORMAL, SLOW.\n * @prop {string} primaryUnit - UOM unit. eg, unit, kg, g, Lt, foot, m, cm, inch.\n * @prop {number} primaryValue - nett content.\n * @prop {?Object} childProductDetails - Foreign field. Relation to define child packaging level.\n * @prop {?[Object]} parentProductDetails - Foreign field. List of relation to define parent packaging level.\n * @prop {?number} childQty - (To Be Removed: Packing Size will be used instead)Used with packaging level definition to determine in a Child Product Detail contains how many Child Product Detail Qty.\n * @prop {?string} weightUnit - Weight Unit Definition. eg, kg, g, t.\n * @prop {?number} nettWeight - Nett Weight of this Product Detail.\n * @prop {?number} grossWeight - Gross Weight of this Product Detail.\n * @prop {?string} lengthUnit - Length Unit Definition. eg, m, cm, mm, inch, foot.\n * @prop {?number} width - Width length of Product Detail.\n * @prop {?number} depth - Depth length of Product Detail.\n * @prop {?number} height - Height length of Product Detail.\n * @prop {?number} volume - Volume of Product Detail. In m3.\n * @prop {?number} bufferQty - Quantity for reservation.\n * @prop {?number} minQty - Minimum Quantity targetted in inventory. For reporting purposes.\n * @prop {?number} maxQty - Maximum Quantity targetted in inventory. For reporting purposes.\n * @prop {?string} auxUnit1 - Auxiliary Unit or supplementary data for records and reporting purposes.\n * @prop {?string} auxValue1 - Auxiliary Value or supplementary data for records and reporting purposes.\n * @prop {?string} auxUnit2 - Auxiliary Unit or supplementary data for records and reporting purposes.\n * @prop {?string} auxValue2 - Auxiliary Value or supplementary data for records and reporting purposes.\n * @prop {?string} auxUnit3 - Auxiliary Unit or supplementary data for records and reporting purposes.\n * @prop {?string} auxValue3 - Auxiliary Value or supplementary data for records and reporting purposes.\n * @prop {?string} auxUnit4 - Auxiliary Unit or supplementary data for records and reporting purposes.\n * @prop {?string} auxValue4 - Auxiliary Value or supplementary data for records and reporting purposes.\n * @prop {?string} auxUnit5 - Auxiliary Unit or supplementary data for records and reporting purposes.\n * @prop {?string} auxValue5 - Auxiliary Value or supplementary data for records and reporting purposes.\n * @prop {?boolean} isTrackedAsInventory - For accounting integration purposes.\n * @prop {?number} discountId - For accounting integration purposes.\n * @prop {?number} costPrice - For accounting integration purposes.\n * @prop {?number} mrpPrice - For accounting integration purposes.\n * @prop {?number} sellPrice - For accounting integration purposes.\n * @prop {?number} afterTaxCostPrice - For accounting integration purposes.\n * @prop {?number} afterTaxSalesPrice - For accounting integration purposes.\n * @prop {?string} inventoryAccountCode - For accounting integration purposes.\n * @prop {?string} cogsAccountCode - For accounting integration purposes.\n * @prop {?Date} deletedAt - Soft Delete Date and Time.\n * @prop {Date} createdAt - Created Date and Time.\n * @prop {Date} updatedAt - Updated Date and Time.\n * @prop {?Object} creator - Foreign field. Relation to User Entity / Table.\n * @prop {?Object} updater - Foreign field. Relation to User Entity / Table.\n **/\n\n@Entity()\n@Index(\n 'ix_product_detail_0',\n (productDetail: ProductDetail) => [productDetail.domain, productDetail.gtin, productDetail.product],\n { unique: true }\n)\n@Index('ix_product_detail_1', (productDetail: ProductDetail) => [productDetail.product])\n@Index('ix_product_detail_2', (productDetail: ProductDetail) => [productDetail.domain, productDetail.refCode], {\n unique: true\n})\n@ObjectType()\nexport class ProductDetail {\n constructor(productDetail, extrasOnly = false) {\n if (productDetail) {\n if (!extrasOnly) {\n this.domain = productDetail.domain\n this.name = productDetail.name\n this.creator = productDetail.creator\n this.updater = productDetail.updater\n }\n this.gtin = productDetail.gtin\n this.refCode = productDetail.refCode\n this.product = productDetail.product\n this.isDefault = productDetail.isDefault\n this.packingType = productDetail.packingType\n this.packingSize = productDetail.packingSize\n this.movement = productDetail.movement || 'NORMAL'\n this.uom = productDetail.uom\n this.uomValue = productDetail.uomValue\n this.childProductDetail = productDetail.childProductDetail\n this.childQty = productDetail.childQty\n this.weightUnit = productDetail.weightUnit\n this.nettWeight = productDetail.nettWeight\n this.grossWeight = productDetail.grossWeight\n this.lengthUnit = productDetail.lengthUnit\n this.width = productDetail.width\n this.depth = productDetail.depth\n this.height = productDetail.height\n this.volume = productDetail.volume\n this.bufferQty = productDetail.bufferQty || 0\n this.minQty = productDetail.minQty || 0\n this.maxQty = productDetail.maxQty || 0\n this.auxUnit1 = productDetail.auxUnit1\n this.auxValue1 = productDetail.auxValue1\n this.auxUnit2 = productDetail.auxUnit2\n this.auxValue2 = productDetail.auxValue2\n this.auxUnit3 = productDetail.auxUnit3\n this.auxValue3 = productDetail.auxValue3\n this.auxUnit4 = productDetail.auxUnit4\n this.auxValue4 = productDetail.auxValue4\n this.auxUnit5 = productDetail.auxUnit5\n this.auxValue5 = productDetail.auxValue5\n this.isTrackedAsInventory = productDetail.isTrackedAsInventory\n this.discountId = productDetail.discountId\n this.costPrice = productDetail.costPrice\n this.mrpPrice = productDetail.mrpPrice\n this.sellPrice = productDetail.sellPrice\n this.afterTaxCostPrice = productDetail.afterTaxCostPrice\n this.afterTaxSalesPrice = productDetail.afterTaxSalesPrice\n this.inventoryAccountCode = productDetail.inventoryAccountCode\n this.cogsAccountCode = productDetail.cogsAccountCode\n }\n }\n\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID)\n readonly id: string\n\n @ManyToOne(type => Domain)\n @Field()\n domain: Domain\n\n @RelationId((productDetail: ProductDetail) => productDetail.domain)\n domainId: string\n\n @Column()\n @Field()\n name: string\n\n @Column()\n @Field()\n gtin: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n refCode: string\n\n @ManyToOne(type => Product)\n @Field(type => Product)\n product: Product\n\n @Column({ default: false })\n @Field()\n isDefault: boolean\n\n @Column()\n @Field()\n packingType: string\n\n @Column('float', { default: 1 })\n @Field()\n packingSize: number\n\n @Column({ default: 'NORMAL' })\n @Field()\n movement: string\n\n @Column()\n @Field()\n uom: string\n\n @Column('float')\n @Field()\n uomValue: number\n\n @ManyToOne(type => ProductDetail, { nullable: true })\n @Field(type => ProductDetail, { nullable: true })\n childProductDetail: ProductDetail\n\n @OneToMany(type => ProductDetail, productDetail => productDetail.childProductDetail, { nullable: true })\n @Field(type => [ProductDetail], { nullable: true })\n parentProductDetails: ProductDetail[]\n\n @OneToMany(\n type => ProductDetailBizplaceSetting,\n productDetailBizplaceSetting => productDetailBizplaceSetting.productDetail,\n { nullable: true }\n )\n @Field(type => [ProductDetailBizplaceSetting], { nullable: true })\n productDetailBizplaceSettings: ProductDetailBizplaceSetting[]\n\n @Column('float', { nullable: true })\n @Field({ nullable: true })\n childQty: number\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n weightUnit: string\n\n @Column('float', { nullable: true })\n @Field({ nullable: true })\n nettWeight: number\n\n @Column('float', { nullable: true })\n @Field({ nullable: true })\n grossWeight: number\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n lengthUnit: string\n\n @Column('float', { nullable: true })\n @Field({ nullable: true })\n width: number\n\n @Column('float', { nullable: true })\n @Field({ nullable: true })\n depth: number\n\n @Column('float', { nullable: true })\n @Field({ nullable: true })\n height: number\n\n @Column('float', { nullable: true })\n @Field({ nullable: true })\n volume: number\n\n @Column({ default: 0 })\n @Field()\n bufferQty: number\n\n @Column('float', { default: 0 })\n @Field()\n minQty: number\n\n @Column({ default: 0 })\n @Field()\n maxQty: number\n\n @Field({ nullable: true })\n sku?: string\n\n @Field({ nullable: true })\n productId?: string\n\n @Field({ nullable: true })\n brand?: string\n\n @Field({ nullable: true })\n description?: string\n\n @Field({ nullable: true })\n type?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n auxUnit1: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n auxValue1: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n auxUnit2: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n auxValue2: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n auxUnit3: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n auxValue3: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n auxUnit4: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n auxValue4: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n auxUnit5: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n auxValue5: string\n\n //// For Accounting Integration ////\n @Column({ nullable: true })\n @Field({ nullable: true })\n isTrackedAsInventory: boolean\n\n //// For Accounting Integration ////\n @Column({ nullable: true })\n @Field({ nullable: true })\n discountId: number\n\n //// For Accounting Integration ////\n @Column('float', { nullable: true })\n @Field({ nullable: true })\n costPrice: number\n\n //// For Accounting Integration ////\n @Column('float', { nullable: true })\n @Field({ nullable: true })\n mrpPrice: number\n\n //// For Accounting Integration ////\n @Column('float', { nullable: true })\n @Field({ nullable: true })\n sellPrice: number\n\n //// For Accounting Integration ////\n @Column('float', { nullable: true })\n @Field({ nullable: true })\n afterTaxCostPrice: number\n\n //// For Accounting Integration ////\n @Column('float', { nullable: true })\n @Field({ nullable: true })\n afterTaxSalesPrice: number\n\n //// For Accounting Integration ////\n @Column({ nullable: true })\n @Field({ nullable: true })\n inventoryAccountCode: string\n\n //// For Accounting Integration ////\n @Column({ nullable: true })\n @Field({ nullable: true })\n cogsAccountCode: string\n\n @Field(type => Float, { nullable: true })\n bundleQty: number\n\n @Field({ nullable: true })\n isRequireSerialNumberScanningInbound: boolean\n\n @Field({ nullable: true })\n isRequireSerialNumberScanningOutbound: boolean\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n deletedAt: Date\n\n @CreateDateColumn()\n @Field({ nullable: true })\n createdAt: Date\n\n @UpdateDateColumn()\n @Field({ nullable: true })\n updatedAt: Date\n\n @ManyToOne(type => User, {\n nullable: true\n })\n creator: User\n\n @RelationId((productDetail: ProductDetail) => productDetail.creator)\n creatorId: string\n\n @ManyToOne(type => User, {\n nullable: true\n })\n updater: User\n\n @RelationId((productDetail: ProductDetail) => productDetail.updater)\n updaterId: string\n}\n"]}
1
+ {"version":3,"file":"product-detail.js","sourceRoot":"","sources":["../../../server/service/product-detail/product-detail.ts"],"names":[],"mappings":";;;;;AAAA,+CAA2D;AAC3D,qCAA6I;AAE7I,yDAAgD;AAChD,iDAAgE;AAEhE,wHAAiH;AACjH,gDAA4C;AAE5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAmDI;AASG,IAAM,aAAa,qBAAnB,MAAM,aAAa;IACxB,YAAY,aAAa,EAAE,UAAU,GAAG,KAAK;QAC3C,IAAI,aAAa,EAAE;YACjB,IAAI,CAAC,UAAU,EAAE;gBACf,IAAI,CAAC,MAAM,GAAG,aAAa,CAAC,MAAM,CAAA;gBAClC,IAAI,CAAC,IAAI,GAAG,aAAa,CAAC,IAAI,CAAA;gBAC9B,IAAI,CAAC,OAAO,GAAG,aAAa,CAAC,OAAO,CAAA;gBACpC,IAAI,CAAC,OAAO,GAAG,aAAa,CAAC,OAAO,CAAA;aACrC;YACD,IAAI,CAAC,IAAI,GAAG,aAAa,CAAC,IAAI,CAAA;Y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E;QAC7G,MAAM,EAAE,IAAI;KACb,CAAC;IACD,IAAA,yBAAU,GAAE;;GACA,aAAa,CA4SzB;AA5SY,sCAAa","sourcesContent":["import { Field, Float, ID, ObjectType } from 'type-graphql'\nimport { Column, CreateDateColumn, Entity, Index, ManyToOne, OneToMany, PrimaryGeneratedColumn, RelationId, UpdateDateColumn } from 'typeorm'\n\nimport { User } from '@things-factory/auth-base'\nimport { Domain, roundTransformer } from '@things-factory/shell'\n\nimport { ProductDetailBizplaceSetting } from '../product-detail-bizplace-setting/product-detail-bizplace-setting'\nimport { Product } from '../product/product'\n\n/**\n * @prop {string} id - Primary Key.\n * @prop {Object} domain - Stock Owner company domain.\n * @prop {string} name - Product Detail Name.\n * @prop {string} gtin - Global Trade Item Number or Product Detail Barcode. SKU, Manufacturer, and Packaging specific code. For Product Scanning Feature.\n * @prop {?string} refCode - Product Reference Code.\n * @prop {Object} product - Foreign field. Relation to Product Entity / Table.\n * @prop {boolean} isDefault - Default SKU info.\n * @prop {string} packingType - Packing type of current Product Detail.\n * @prop {number} packingSize - Packing size of current Product Detail.\n * @prop {string} movement - Movement of stocks. eg, FAST, NORMAL, SLOW.\n * @prop {string} primaryUnit - UOM unit. eg, unit, kg, g, Lt, foot, m, cm, inch.\n * @prop {number} primaryValue - nett content.\n * @prop {?Object} childProductDetails - Foreign field. Relation to define child packaging level.\n * @prop {?[Object]} parentProductDetails - Foreign field. List of relation to define parent packaging level.\n * @prop {?number} childQty - (To Be Removed: Packing Size will be used instead)Used with packaging level definition to determine in a Child Product Detail contains how many Child Product Detail Qty.\n * @prop {?string} weightUnit - Weight Unit Definition. eg, kg, g, t.\n * @prop {?number} nettWeight - Nett Weight of this Product Detail.\n * @prop {?number} grossWeight - Gross Weight of this Product Detail.\n * @prop {?string} lengthUnit - Length Unit Definition. eg, m, cm, mm, inch, foot.\n * @prop {?number} width - Width length of Product Detail.\n * @prop {?number} depth - Depth length of Product Detail.\n * @prop {?number} height - Height length of Product Detail.\n * @prop {?number} volume - Volume of Product Detail. In m3.\n * @prop {?number} bufferQty - Quantity for reservation.\n * @prop {?number} minQty - Minimum Quantity targetted in inventory. For reporting purposes.\n * @prop {?number} maxQty - Maximum Quantity targetted in inventory. For reporting purposes.\n * @prop {?string} auxUnit1 - Auxiliary Unit or supplementary data for records and reporting purposes.\n * @prop {?string} auxValue1 - Auxiliary Value or supplementary data for records and reporting purposes.\n * @prop {?string} auxUnit2 - Auxiliary Unit or supplementary data for records and reporting purposes.\n * @prop {?string} auxValue2 - Auxiliary Value or supplementary data for records and reporting purposes.\n * @prop {?string} auxUnit3 - Auxiliary Unit or supplementary data for records and reporting purposes.\n * @prop {?string} auxValue3 - Auxiliary Value or supplementary data for records and reporting purposes.\n * @prop {?string} auxUnit4 - Auxiliary Unit or supplementary data for records and reporting purposes.\n * @prop {?string} auxValue4 - Auxiliary Value or supplementary data for records and reporting purposes.\n * @prop {?string} auxUnit5 - Auxiliary Unit or supplementary data for records and reporting purposes.\n * @prop {?string} auxValue5 - Auxiliary Value or supplementary data for records and reporting purposes.\n * @prop {?boolean} isTrackedAsInventory - For accounting integration purposes.\n * @prop {?number} discountId - For accounting integration purposes.\n * @prop {?number} costPrice - For accounting integration purposes.\n * @prop {?number} mrpPrice - For accounting integration purposes.\n * @prop {?number} sellPrice - For accounting integration purposes.\n * @prop {?number} afterTaxCostPrice - For accounting integration purposes.\n * @prop {?number} afterTaxSalesPrice - For accounting integration purposes.\n * @prop {?string} inventoryAccountCode - For accounting integration purposes.\n * @prop {?string} cogsAccountCode - For accounting integration purposes.\n * @prop {?Date} deletedAt - Soft Delete Date and Time.\n * @prop {Date} createdAt - Created Date and Time.\n * @prop {Date} updatedAt - Updated Date and Time.\n * @prop {?Object} creator - Foreign field. Relation to User Entity / Table.\n * @prop {?Object} updater - Foreign field. Relation to User Entity / Table.\n **/\n\n@Entity()\n@Index('ix_product_detail_0', (productDetail: ProductDetail) => [productDetail.domain, productDetail.gtin, productDetail.product], { unique: true })\n@Index('ix_product_detail_1', (productDetail: ProductDetail) => [productDetail.product])\n@Index('ix_product_detail_2', (productDetail: ProductDetail) => [productDetail.domain, productDetail.refCode], {\n unique: true\n})\n@ObjectType()\nexport class ProductDetail {\n constructor(productDetail, extrasOnly = false) {\n if (productDetail) {\n if (!extrasOnly) {\n this.domain = productDetail.domain\n this.name = productDetail.name\n this.creator = productDetail.creator\n this.updater = productDetail.updater\n }\n this.gtin = productDetail.gtin\n this.refCode = productDetail.refCode\n this.product = productDetail.product\n this.isDefault = productDetail.isDefault\n this.packingType = productDetail.packingType\n this.packingSize = productDetail.packingSize\n this.movement = productDetail.movement || 'NORMAL'\n this.uom = productDetail.uom\n this.uomValue = productDetail.uomValue\n this.childProductDetail = productDetail.childProductDetail\n this.childQty = productDetail.childQty\n this.weightUnit = productDetail.weightUnit\n this.nettWeight = productDetail.nettWeight\n this.grossWeight = productDetail.grossWeight\n this.lengthUnit = productDetail.lengthUnit\n this.width = productDetail.width\n this.depth = productDetail.depth\n this.height = productDetail.height\n this.volume = productDetail.volume\n this.bufferQty = productDetail.bufferQty || 0\n this.minQty = productDetail.minQty || 0\n this.maxQty = productDetail.maxQty || 0\n this.auxUnit1 = productDetail.auxUnit1\n this.auxValue1 = productDetail.auxValue1\n this.auxUnit2 = productDetail.auxUnit2\n this.auxValue2 = productDetail.auxValue2\n this.auxUnit3 = productDetail.auxUnit3\n this.auxValue3 = productDetail.auxValue3\n this.auxUnit4 = productDetail.auxUnit4\n this.auxValue4 = productDetail.auxValue4\n this.auxUnit5 = productDetail.auxUnit5\n this.auxValue5 = productDetail.auxValue5\n this.isTrackedAsInventory = productDetail.isTrackedAsInventory\n this.discountId = productDetail.discountId\n this.costPrice = productDetail.costPrice\n this.mrpPrice = productDetail.mrpPrice\n this.sellPrice = productDetail.sellPrice\n this.afterTaxCostPrice = productDetail.afterTaxCostPrice\n this.afterTaxSalesPrice = productDetail.afterTaxSalesPrice\n this.inventoryAccountCode = productDetail.inventoryAccountCode\n this.cogsAccountCode = productDetail.cogsAccountCode\n }\n }\n\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID)\n readonly id: string\n\n @ManyToOne(type => Domain)\n @Field()\n domain: Domain\n\n @RelationId((productDetail: ProductDetail) => productDetail.domain)\n domainId: string\n\n @Column()\n @Field()\n name: string\n\n @Column()\n @Field()\n gtin: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n refCode: string\n\n @ManyToOne(type => Product)\n @Field(type => Product)\n product: Product\n\n @Column({ default: false })\n @Field()\n isDefault: boolean\n\n @Column()\n @Field()\n packingType: string\n\n @Column('float', { default: 1, transformer: roundTransformer })\n @Field()\n packingSize: number\n\n @Column({ default: 'NORMAL' })\n @Field()\n movement: string\n\n @Column()\n @Field()\n uom: string\n\n @Column('float', { transformer: roundTransformer })\n @Field()\n uomValue: number\n\n @ManyToOne(type => ProductDetail, { nullable: true })\n @Field(type => ProductDetail, { nullable: true })\n childProductDetail: ProductDetail\n\n @OneToMany(type => ProductDetail, productDetail => productDetail.childProductDetail, { nullable: true })\n @Field(type => [ProductDetail], { nullable: true })\n parentProductDetails: ProductDetail[]\n\n @OneToMany(type => ProductDetailBizplaceSetting, productDetailBizplaceSetting => productDetailBizplaceSetting.productDetail, { nullable: true })\n @Field(type => [ProductDetailBizplaceSetting], { nullable: true })\n productDetailBizplaceSettings: ProductDetailBizplaceSetting[]\n\n @Column('float', { nullable: true, transformer: roundTransformer })\n @Field({ nullable: true })\n childQty: number\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n weightUnit: string\n\n @Column('float', { nullable: true, transformer: roundTransformer })\n @Field({ nullable: true })\n nettWeight: number\n\n @Column('float', { nullable: true, transformer: roundTransformer })\n @Field({ nullable: true })\n grossWeight: number\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n lengthUnit: string\n\n @Column('float', { nullable: true, transformer: roundTransformer })\n @Field({ nullable: true })\n width: number\n\n @Column('float', { nullable: true, transformer: roundTransformer })\n @Field({ nullable: true })\n depth: number\n\n @Column('float', { nullable: true, transformer: roundTransformer })\n @Field({ nullable: true })\n height: number\n\n @Column('float', { nullable: true, transformer: roundTransformer })\n @Field({ nullable: true })\n volume: number\n\n @Column({ default: 0 })\n @Field()\n bufferQty: number\n\n @Column('float', { default: 0, transformer: roundTransformer })\n @Field()\n minQty: number\n\n @Column({ default: 0 })\n @Field()\n maxQty: number\n\n @Field({ nullable: true })\n sku?: string\n\n @Field({ nullable: true })\n productId?: string\n\n @Field({ nullable: true })\n brand?: string\n\n @Field({ nullable: true })\n description?: string\n\n @Field({ nullable: true })\n type?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n auxUnit1: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n auxValue1: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n auxUnit2: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n auxValue2: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n auxUnit3: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n auxValue3: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n auxUnit4: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n auxValue4: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n auxUnit5: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n auxValue5: string\n\n //// For Accounting Integration ////\n @Column({ nullable: true })\n @Field({ nullable: true })\n isTrackedAsInventory: boolean\n\n //// For Accounting Integration ////\n @Column({ nullable: true })\n @Field({ nullable: true })\n discountId: number\n\n //// For Accounting Integration ////\n @Column('float', { nullable: true, transformer: roundTransformer })\n @Field({ nullable: true })\n costPrice: number\n\n //// For Accounting Integration ////\n @Column('float', { nullable: true, transformer: roundTransformer })\n @Field({ nullable: true })\n mrpPrice: number\n\n //// For Accounting Integration ////\n @Column('float', { nullable: true, transformer: roundTransformer })\n @Field({ nullable: true })\n sellPrice: number\n\n //// For Accounting Integration ////\n @Column('float', { nullable: true, transformer: roundTransformer })\n @Field({ nullable: true })\n afterTaxCostPrice: number\n\n //// For Accounting Integration ////\n @Column('float', { nullable: true, transformer: roundTransformer })\n @Field({ nullable: true })\n afterTaxSalesPrice: number\n\n //// For Accounting Integration ////\n @Column({ nullable: true })\n @Field({ nullable: true })\n inventoryAccountCode: string\n\n //// For Accounting Integration ////\n @Column({ nullable: true })\n @Field({ nullable: true })\n cogsAccountCode: string\n\n @Field(type => Float, { nullable: true })\n bundleQty: number\n\n @Field({ nullable: true })\n isRequireSerialNumberScanningInbound: boolean\n\n @Field({ nullable: true })\n isRequireSerialNumberScanningOutbound: boolean\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n deletedAt: Date\n\n @CreateDateColumn()\n @Field({ nullable: true })\n createdAt: Date\n\n @UpdateDateColumn()\n @Field({ nullable: true })\n updatedAt: Date\n\n @ManyToOne(type => User, {\n nullable: true\n })\n creator: User\n\n @RelationId((productDetail: ProductDetail) => productDetail.creator)\n creatorId: string\n\n @ManyToOne(type => User, {\n nullable: true\n })\n updater: User\n\n @RelationId((productDetail: ProductDetail) => productDetail.updater)\n updaterId: string\n}\n"]}
@@ -58,7 +58,7 @@ tslib_1.__decorate([
58
58
  tslib_1.__metadata("design:type", Number)
59
59
  ], ProductDetailBizplaceSetting.prototype, "bufferQty", void 0);
60
60
  tslib_1.__decorate([
61
- (0, typeorm_1.Column)('float', { default: 0 }),
61
+ (0, typeorm_1.Column)('float', { default: 0, transformer: shell_1.roundTransformer }),
62
62
  (0, type_graphql_1.Field)(),
63
63
  tslib_1.__metadata("design:type", Number)
64
64
  ], ProductDetailBizplaceSetting.prototype, "minQty", void 0);
@@ -101,10 +101,7 @@ tslib_1.__decorate([
101
101
  ], ProductDetailBizplaceSetting.prototype, "updaterId", void 0);
102
102
  ProductDetailBizplaceSetting = tslib_1.__decorate([
103
103
  (0, typeorm_1.Entity)(),
104
- (0, typeorm_1.Index)('ix_product_detail_bizplace_setting_0', (productDetailBizplaceSetting) => [
105
- productDetailBizplaceSetting.domain,
106
- productDetailBizplaceSetting.productDetail
107
- ], { unique: true }),
104
+ (0, typeorm_1.Index)('ix_product_detail_bizplace_setting_0', (productDetailBizplaceSetting) => [productDetailBizplaceSetting.domain, productDetailBizplaceSetting.productDetail], { unique: true }),
108
105
  (0, type_graphql_1.ObjectType)()
109
106
  ], ProductDetailBizplaceSetting);
110
107
  exports.ProductDetailBizplaceSetting = ProductDetailBizplaceSetting;