@things-factory/product-base 6.2.139 → 6.2.147

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (20) hide show
  1. package/dist-server/service/product/product.js +25 -29
  2. package/dist-server/service/product/product.js.map +1 -1
  3. package/dist-server/service/product-bundle/product-bundle.js +1 -1
  4. package/dist-server/service/product-bundle/product-bundle.js.map +1 -1
  5. package/dist-server/service/product-detail/product-detail-types.js +1 -1
  6. package/dist-server/service/product-detail/product-detail-types.js.map +1 -1
  7. package/dist-server/service/product-detail/product-detail.js +16 -16
  8. package/dist-server/service/product-detail/product-detail.js.map +1 -1
  9. package/dist-server/service/product-detail-bizplace-setting/product-detail-bizplace-setting-types.js +2 -2
  10. package/dist-server/service/product-detail-bizplace-setting/product-detail-bizplace-setting-types.js.map +1 -1
  11. package/dist-server/service/product-detail-bizplace-setting/product-detail-bizplace-setting.js +3 -6
  12. package/dist-server/service/product-detail-bizplace-setting/product-detail-bizplace-setting.js.map +1 -1
  13. package/dist-server/tsconfig.tsbuildinfo +1 -1
  14. package/package.json +4 -4
  15. package/server/service/product/product.ts +27 -36
  16. package/server/service/product-bundle/product-bundle.ts +3 -13
  17. package/server/service/product-detail/product-detail-types.ts +1 -1
  18. package/server/service/product-detail/product-detail.ts +19 -27
  19. package/server/service/product-detail-bizplace-setting/product-detail-bizplace-setting-types.ts +2 -2
  20. package/server/service/product-detail-bizplace-setting/product-detail-bizplace-setting.ts +4 -7
@@ -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,12 +413,12 @@ 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);
420
420
  tslib_1.__decorate([
421
- (0, typeorm_1.Column)({ nullable: true }),
421
+ (0, typeorm_1.Column)('float', { nullable: true, transformer: shell_1.roundTransformer }),
422
422
  (0, type_graphql_1.Field)({ nullable: true }),
423
423
  tslib_1.__metadata("design:type", Number)
424
424
  ], Product.prototype, "maxQty", 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;IACtB,6BAAa,CAAA;IACb,6BAAa,CAAA;IACb,6BAAa,CAAA;IACb,6BAAa,CAAA;IACb,qCAAqB,CAAA;AACvB,CAAC,EANW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAMvB;AAUM,IAAM,OAAO,eAAb,MAAM,OAAO;IAualB,YAAY,GAAI;QACd,IAAI,GAAG,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AAI,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,GAAG,GAAG,GAAG,CAAC,WAAW,CAAA;YAC1B,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC,YAAY,CAAA;YAC5B,IAAI,CAAC,WAAW,GAAG,GAAG,CAAC,mBAAmB,CAAA;YAC1C,IAAI,CAAC,SAAS,GAAG,GAAG,CAAC,kBAAkB,CAAA;YACvC,IAAI,CAAC,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I,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('float', { nullable: true, transformer: roundTransformer })\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,GAAE;IACR,IAAA,oBAAK,GAAE;;0CACG;AAEX;IAAC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC1B,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8C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AK,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,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,C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C,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"]}
@@ -288,7 +288,7 @@ tslib_1.__decorate([
288
288
  tslib_1.__metadata("design:type", Number)
289
289
  ], ProductDetailPatch.prototype, "minQty", void 0);
290
290
  tslib_1.__decorate([
291
- (0, type_graphql_1.Field)(type => type_graphql_1.Int, { nullable: true }),
291
+ (0, type_graphql_1.Field)(type => type_graphql_1.Float, { nullable: true }),
292
292
  tslib_1.__metadata("design:type", Number)
293
293
  ], ProductDetailPatch.prototype, "maxQty", void 0);
294
294
  tslib_1.__decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"product-detail-types.js","sourceRoot":"","sources":["../../../server/service/product-detail/product-detail-types.ts"],"names":[],"mappings":";;;;AAAA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;kDACX;AAtIJ,kBAAkB;IAD9B,IAAA,wBAAS,GAAE;GACC,kBAAkB,CAuI9B;AAvIY,gDAAkB","sourcesContent":["import { Field, Float, InputType, Int, ObjectType } from 'type-graphql'\n\nimport { ObjectRef } from '@things-factory/shell'\n\nimport { ProductDetail } from './product-detail'\n\n@InputType()\nexport class NewProductDetail {\n @Field()\n name: string\n\n @Field({ nullable: true })\n gtin?: string\n\n @Field({ nullable: true })\n refCode?: string\n\n @Field({ nullable: true })\n product?: ObjectRef\n\n @Field({ nullable: true })\n isDefault: boolean\n\n @Field({ nullable: true })\n packingType?: string\n\n @Field(type => Float, { nullable: true })\n packingSize?: number\n\n @Field({ nullable: true })\n movement?: string\n\n @Field({ nullable: true })\n uom?: string\n\n @Field(type => Float, { nullable: true })\n uomValue?: number\n\n @Field({ nullable: true })\n childProductDetail?: ObjectRef\n\n @Field(type => [ObjectRef], { nullable: true })\n parentProductDetails?: ObjectRef[]\n\n @Field(type => Float, { nullable: true })\n childQty?: number\n weightUnit?: string\n\n @Field(type => Float, { nullable: true })\n nettWeight?: number\n\n @Field(type => Float, { nullable: true })\n grossWeight?: number\n lengthUnit?: string\n\n @Field(type => Float, { nullable: true })\n width?: number\n\n @Field(type => Float, { nullable: true })\n depth?: number\n\n @Field(type => Float, { nullable: true })\n height?: number\n\n @Field(type => Float, { nullable: true })\n volume?: number\n\n @Field(type => Int, { nullable: true })\n bufferQty?: number\n\n @Field(type => Float, { nullable: true })\n minQty?: number\n\n @Field(type => Int, { nullable: true })\n maxQty?: number\n\n @Field({ nullable: true })\n auxUnit1?: string\n\n @Field({ nullable: true })\n auxValue1?: string\n\n @Field({ nullable: true })\n auxUnit2?: string\n\n @Field({ nullable: true })\n auxValue2?: string\n\n @Field({ nullable: true })\n auxUnit3?: string\n\n @Field({ nullable: true })\n auxValue3?: string\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 @Field({ nullable: true })\n isTrackedAsInventory?: boolean\n\n @Field(type => Int, { nullable: true })\n discountId?: number\n\n @Field(type => Float, { nullable: true })\n costPrice?: number\n\n @Field(type => Float, { nullable: true })\n mrpPrice?: number\n\n @Field(type => Float, { nullable: true })\n sellPrice?: number\n\n @Field(type => Float, { nullable: true })\n afterTaxCostPrice?: number\n\n @Field(type => Float, { nullable: true })\n afterTaxSalesPrice?: number\n\n @Field({ nullable: true })\n inventoryAccountCode?: string\n\n @Field({ nullable: true })\n cogsAccountCode?: string\n}\n\n@ObjectType()\nexport class ProductDetailList {\n @Field(type => [ProductDetail], { nullable: true })\n items?: ProductDetail[]\n\n @Field(type => Int, { nullable: true })\n total?: number\n}\n\n@InputType()\nexport class ProductDetailPatch {\n @Field({ nullable: true })\n id?: string\n\n @Field({ nullable: true })\n name?: string\n\n @Field({ nullable: true })\n gtin?: string\n\n @Field({ nullable: true })\n refCode?: string\n\n @Field({ nullable: true })\n product: ObjectRef\n\n @Field({ nullable: true })\n isDefault: boolean\n\n @Field({ nullable: true })\n packingType?: string\n\n @Field(type => Float, { nullable: true })\n packingSize?: number\n\n @Field({ nullable: true })\n movement?: string\n\n @Field({ nullable: true })\n uom?: string\n\n @Field(type => Float, { nullable: true })\n uomValue?: number\n\n @Field({ nullable: true })\n childProductDetail?: string\n\n @Field({ nullable: true })\n childGtin?: string\n\n @Field(type => Float, { nullable: true })\n childQty?: number\n\n @Field({ nullable: true })\n weightUnit?: string\n\n @Field(type => Float, { nullable: true })\n nettWeight?: number\n\n @Field(type => Float, { nullable: true })\n grossWeight?: number\n\n @Field({ nullable: true })\n lengthUnit?: string\n\n @Field(type => Float, { nullable: true })\n width?: number\n\n @Field(type => Float, { nullable: true })\n depth?: number\n\n @Field(type => Float, { nullable: true })\n height?: number\n\n @Field(type => Float, { nullable: true })\n volume?: number\n\n @Field(type => Int, { nullable: true })\n bufferQty?: number\n\n @Field(type => Float, { nullable: true })\n minQty?: number\n\n @Field(type => Int, { nullable: true })\n maxQty?: number\n\n @Field({ nullable: true })\n auxUnit1?: string\n\n @Field({ nullable: true })\n auxValue1?: string\n\n @Field({ nullable: true })\n auxUnit2?: string\n\n @Field({ nullable: true })\n auxValue2?: string\n\n @Field({ nullable: true })\n auxUnit3?: string\n\n @Field({ nullable: true })\n auxValue3?: string\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 @Field({ nullable: true })\n isTrackedAsInventory: boolean\n\n @Field(type => Int, { nullable: true })\n discountId?: number\n\n @Field(type => Float, { nullable: true })\n costPrice?: number\n\n @Field(type => Float, { nullable: true })\n mrpPrice?: number\n\n @Field(type => Float, { nullable: true })\n sellPrice?: number\n\n @Field(type => Float, { nullable: true })\n afterTaxCostPrice?: number\n\n @Field(type => Float, { nullable: true })\n afterTaxSalesPrice?: number\n\n @Field({ nullable: true })\n inventoryAccountCode?: string\n\n @Field({ nullable: true })\n cogsAccountCode?: string\n\n @Field({ nullable: true })\n cuFlag?: string\n}\n"]}
1
+ {"version":3,"file":"product-detail-types.js","sourceRoot":"","sources":["../../../server/service/product-detail/product-detail-types.ts"],"names":[],"mappings":";;;;AAAA,+CAAuE;AAEvE,iDAAiD;AAEjD,qDAAgD;AAGzC,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;CA6H5B,CAAA;AA5HC;IAAC,IAAA,oBAAK,GAAE;;8CACI;AAEZ;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CACb;AAEb;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDACV;AAEhB;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCAChB,iBAAS;iDAAA;AAEnB;IAAC,IAAA,oBAAK,EAAC,EAA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AAE,CAAC;;sDACpB;AAEnB;IAAC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,oBAAK,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qDACvB;AAElB;IAAC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,oBAAK,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDACxB;AAEjB;IAAC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,oBAAK,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qDACvB;AAElB;IAAC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,oBAAK,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6DACf;AAE1B;IAAC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,oBAAK,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8DACd;AAE3B;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gEACG;AAE7B;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2DACF;AAExB;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kDACX;AAtIJ,kBAAkB;IAD9B,IAAA,wBAAS,GAAE;GACC,kBAAkB,CAuI9B;AAvIY,gDAAkB","sourcesContent":["import { Field, Float, InputType, Int, ObjectType } from 'type-graphql'\n\nimport { ObjectRef } from '@things-factory/shell'\n\nimport { ProductDetail } from './product-detail'\n\n@InputType()\nexport class NewProductDetail {\n @Field()\n name: string\n\n @Field({ nullable: true })\n gtin?: string\n\n @Field({ nullable: true })\n refCode?: string\n\n @Field({ nullable: true })\n product?: ObjectRef\n\n @Field({ nullable: true })\n isDefault: boolean\n\n @Field({ nullable: true })\n packingType?: string\n\n @Field(type => Float, { nullable: true })\n packingSize?: number\n\n @Field({ nullable: true })\n movement?: string\n\n @Field({ nullable: true })\n uom?: string\n\n @Field(type => Float, { nullable: true })\n uomValue?: number\n\n @Field({ nullable: true })\n childProductDetail?: ObjectRef\n\n @Field(type => [ObjectRef], { nullable: true })\n parentProductDetails?: ObjectRef[]\n\n @Field(type => Float, { nullable: true })\n childQty?: number\n weightUnit?: string\n\n @Field(type => Float, { nullable: true })\n nettWeight?: number\n\n @Field(type => Float, { nullable: true })\n grossWeight?: number\n lengthUnit?: string\n\n @Field(type => Float, { nullable: true })\n width?: number\n\n @Field(type => Float, { nullable: true })\n depth?: number\n\n @Field(type => Float, { nullable: true })\n height?: number\n\n @Field(type => Float, { nullable: true })\n volume?: number\n\n @Field(type => Int, { nullable: true })\n bufferQty?: number\n\n @Field(type => Float, { nullable: true })\n minQty?: number\n\n @Field(type => Int, { nullable: true })\n maxQty?: number\n\n @Field({ nullable: true })\n auxUnit1?: string\n\n @Field({ nullable: true })\n auxValue1?: string\n\n @Field({ nullable: true })\n auxUnit2?: string\n\n @Field({ nullable: true })\n auxValue2?: string\n\n @Field({ nullable: true })\n auxUnit3?: string\n\n @Field({ nullable: true })\n auxValue3?: string\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 @Field({ nullable: true })\n isTrackedAsInventory?: boolean\n\n @Field(type => Int, { nullable: true })\n discountId?: number\n\n @Field(type => Float, { nullable: true })\n costPrice?: number\n\n @Field(type => Float, { nullable: true })\n mrpPrice?: number\n\n @Field(type => Float, { nullable: true })\n sellPrice?: number\n\n @Field(type => Float, { nullable: true })\n afterTaxCostPrice?: number\n\n @Field(type => Float, { nullable: true })\n afterTaxSalesPrice?: number\n\n @Field({ nullable: true })\n inventoryAccountCode?: string\n\n @Field({ nullable: true })\n cogsAccountCode?: string\n}\n\n@ObjectType()\nexport class ProductDetailList {\n @Field(type => [ProductDetail], { nullable: true })\n items?: ProductDetail[]\n\n @Field(type => Int, { nullable: true })\n total?: number\n}\n\n@InputType()\nexport class ProductDetailPatch {\n @Field({ nullable: true })\n id?: string\n\n @Field({ nullable: true })\n name?: string\n\n @Field({ nullable: true })\n gtin?: string\n\n @Field({ nullable: true })\n refCode?: string\n\n @Field({ nullable: true })\n product: ObjectRef\n\n @Field({ nullable: true })\n isDefault: boolean\n\n @Field({ nullable: true })\n packingType?: string\n\n @Field(type => Float, { nullable: true })\n packingSize?: number\n\n @Field({ nullable: true })\n movement?: string\n\n @Field({ nullable: true })\n uom?: string\n\n @Field(type => Float, { nullable: true })\n uomValue?: number\n\n @Field({ nullable: true })\n childProductDetail?: string\n\n @Field({ nullable: true })\n childGtin?: string\n\n @Field(type => Float, { nullable: true })\n childQty?: number\n\n @Field({ nullable: true })\n weightUnit?: string\n\n @Field(type => Float, { nullable: true })\n nettWeight?: number\n\n @Field(type => Float, { nullable: true })\n grossWeight?: number\n\n @Field({ nullable: true })\n lengthUnit?: string\n\n @Field(type => Float, { nullable: true })\n width?: number\n\n @Field(type => Float, { nullable: true })\n depth?: number\n\n @Field(type => Float, { nullable: true })\n height?: number\n\n @Field(type => Float, { nullable: true })\n volume?: number\n\n @Field(type => Int, { nullable: true })\n bufferQty?: number\n\n @Field(type => Float, { nullable: true })\n minQty?: number\n\n @Field(type => Float, { nullable: true })\n maxQty?: number\n\n @Field({ nullable: true })\n auxUnit1?: string\n\n @Field({ nullable: true })\n auxValue1?: string\n\n @Field({ nullable: true })\n auxUnit2?: string\n\n @Field({ nullable: true })\n auxValue2?: string\n\n @Field({ nullable: true })\n auxUnit3?: string\n\n @Field({ nullable: true })\n auxValue3?: string\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 @Field({ nullable: true })\n isTrackedAsInventory: boolean\n\n @Field(type => Int, { nullable: true })\n discountId?: number\n\n @Field(type => Float, { nullable: true })\n costPrice?: number\n\n @Field(type => Float, { nullable: true })\n mrpPrice?: number\n\n @Field(type => Float, { nullable: true })\n sellPrice?: number\n\n @Field(type => Float, { nullable: true })\n afterTaxCostPrice?: number\n\n @Field(type => Float, { nullable: true })\n afterTaxSalesPrice?: number\n\n @Field({ nullable: true })\n inventoryAccountCode?: string\n\n @Field({ nullable: true })\n cogsAccountCode?: string\n\n @Field({ nullable: true })\n cuFlag?: 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,12 +244,12 @@ 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);
251
251
  tslib_1.__decorate([
252
- (0, typeorm_1.Column)({ default: 0 }),
252
+ (0, typeorm_1.Column)('float', { default: 0, transformer: shell_1.roundTransformer }),
253
253
  (0, type_graphql_1.Field)(),
254
254
  tslib_1.__metadata("design:type", Number)
255
255
  ], ProductDetail.prototype, "maxQty", 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);