@things-factory/product-base 8.0.13 → 8.0.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/product-base",
3
- "version": "8.0.13",
3
+ "version": "8.0.20",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -24,9 +24,9 @@
24
24
  "migration:create": "node ../../node_modules/typeorm/cli.js migration:create ./server/migrations/migration"
25
25
  },
26
26
  "dependencies": {
27
- "@things-factory/biz-base": "^8.0.13",
28
- "@things-factory/env": "^8.0.8",
29
- "@things-factory/routing-base": "^8.0.13"
27
+ "@things-factory/biz-base": "^8.0.20",
28
+ "@things-factory/env": "^8.0.15",
29
+ "@things-factory/routing-base": "^8.0.20"
30
30
  },
31
- "gitHead": "66c1356c18b5c9a21e8280460eb40020f7ea2b37"
31
+ "gitHead": "3f31152761b26593e0fc3223eeb86fc78e721824"
32
32
  }
@@ -229,6 +229,9 @@ export class NewProduct {
229
229
 
230
230
  @Field({ nullable: true })
231
231
  sellCurrency?: string
232
+
233
+ @Field({ nullable: true })
234
+ costCurrency?: string
232
235
  }
233
236
 
234
237
  @ObjectType()
@@ -471,6 +474,9 @@ export class ProductPatch {
471
474
  @Field({ nullable: true })
472
475
  sellCurrency?: string
473
476
 
477
+ @Field({ nullable: true })
478
+ costCurrency?: string
479
+
474
480
  @Field({ nullable: true })
475
481
  cuFlag?: string
476
482
  }
@@ -114,6 +114,11 @@ export class Product {
114
114
  @Field({ nullable: true })
115
115
  sellCurrency?: string
116
116
 
117
+ // 원가 통화
118
+ @Column({ nullable: true, default: 'KRW' })
119
+ @Field({ nullable: true })
120
+ costCurrency?: string
121
+
117
122
  // 바코드
118
123
  @Column({ nullable: true })
119
124
  @Field({ nullable: true })
@@ -563,6 +568,7 @@ export class Product {
563
568
  this.boxInQty = obj.product_box_in_qty
564
569
  this.isAuction = obj.product_is_auction
565
570
  this.sellCurrency = obj.product_sell_currency
571
+ this.costCurrency = obj.product_cost_currency
566
572
  }
567
573
  }
568
574
  }