@things-factory/tax-invoice 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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/tax-invoice",
3
- "version": "6.2.138",
3
+ "version": "6.2.142",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "dist-client/index.js",
6
6
  "things-factory": true,
@@ -29,10 +29,10 @@
29
29
  "dependencies": {
30
30
  "@operato/graphql": "^1.0.0",
31
31
  "@operato/shell": "^1.0.0",
32
- "@things-factory/auth-base": "^6.2.138",
33
- "@things-factory/env": "^6.2.122",
34
- "@things-factory/export-ui-excel": "^6.2.133",
35
- "@things-factory/shell": "^6.2.133"
32
+ "@things-factory/auth-base": "^6.2.139",
33
+ "@things-factory/env": "^6.2.139",
34
+ "@things-factory/export-ui-excel": "^6.2.139",
35
+ "@things-factory/shell": "^6.2.139"
36
36
  },
37
- "gitHead": "b3a06b97cb5c24cc44ea35f0dd3dde4971fa1a5a"
37
+ "gitHead": "78bb2ad1a9d851be0c6ea0e176ccbab61c3b6cc8"
38
38
  }
@@ -1,7 +1,7 @@
1
1
  import { CreateDateColumn, DeleteDateColumn, Entity, Index, Column, JoinColumn, RelationId, ManyToOne, PrimaryGeneratedColumn } from 'typeorm'
2
2
  import { ObjectType, Field, ID } from 'type-graphql'
3
3
 
4
- import { Domain } from '@things-factory/shell'
4
+ import { Domain, roundTransformer } from '@things-factory/shell'
5
5
  import { User } from '@things-factory/auth-base'
6
6
  import { TaxInvoice } from '../tax-invoice/tax-invoice'
7
7
 
@@ -44,11 +44,11 @@ export class TaxInvoiceItem {
44
44
  @Field({ nullable: false, description: '규격' })
45
45
  specification!: string
46
46
 
47
- @Column('float', { precision: 10, scale: 2, nullable: false, comment: '수량 (소수점 2자리까지 허용)' })
47
+ @Column('float', { precision: 10, scale: 2, nullable: false, comment: '수량 (소수점 2자리까지 허용)', transformer: roundTransformer })
48
48
  @Field({ nullable: false, description: '수량 (소수점 2자리까지 허용)' })
49
49
  quantity!: number
50
50
 
51
- @Column('float', { precision: 10, scale: 2, nullable: false, comment: '단가 (소수점 2자리까지 허용)' })
51
+ @Column('float', { precision: 10, scale: 2, nullable: false, comment: '단가 (소수점 2자리까지 허용)', transformer: roundTransformer })
52
52
  @Field({ nullable: false, description: '단가 (소수점 2자리까지 허용)' })
53
53
  unitPrice!: number
54
54